carmine icon indicating copy to clipboard operation
carmine copied to clipboard

Redis Sentinel support

Open ptaoussanis opened this issue 12 years ago • 13 comments

STATUS: Design is basically done, currently awaiting release of new Redis commands.json (https://github.com/antirez/redis-doc/blob/master/commands.json).

ptaoussanis avatar Mar 15 '13 07:03 ptaoussanis

Looking good!! Any idea when this might be merged into master?

adamneilson avatar Apr 12 '13 21:04 adamneilson

Hi Adam,

Just waiting on the addition of Sentinel commands to the json spec: https://github.com/antirez/redis-doc/blob/master/commands.json. Not sure what the ETA is on that (I'm guessing once the Sentinel spec itself is finalized).

In the meantime, I'd be happy to take a PR that manually updates the json spec if you or someone else would like to get this in ASAP.

Cheers!

ptaoussanis avatar Apr 14 '13 08:04 ptaoussanis

This may be further off than expected, the Sentinel design still seems to be under pretty aggressive development: https://groups.google.com/forum/?fromgroups#!topic/redis-db/nb4o78CkhFk

So am waiting on 2 things at this stage:

  1. Spec itself to become concrete.
  2. Updated commands.json file.

Neither of these have an ETA, but I'll keep my ear to the ground and update when there's something to update about.

ptaoussanis avatar May 04 '13 11:05 ptaoussanis

@ptaoussanis It's been a year since this issue has been updated -- any new info on this?

trevorbernard avatar Apr 16 '14 12:04 trevorbernard

Hi Trevor,

That's mostly to do with the route Redis's development ended up going. I think Salvatore decided to prioritise Redis Cluster for a while, and development there ended up taking longer than expected.

For Carmine's part, I'm waiting on stabilisation of clear client specs. Haven't been following Sentinel developments much lately, so not sure how far off that still is.

In any event I'll be tied up with high-priority work for a few months at least - so PRs would likely be the best way of getting this in soon.

Cheers! :-)

ptaoussanis avatar Apr 16 '14 13:04 ptaoussanis

I'll take a crack at it -- any pointers?

trevorbernard avatar Apr 16 '14 22:04 trevorbernard

Hi Trevor,

Sure - first step would probably be the sentinel docs: http://redis.io/topics/sentinel http://redis.io/topics/sentinel-clients

The Sentinel branch here has absolutely gone stale but there may or may not be useful ideas in it still.

The Carmine code base as of 2.6 should be pretty easy to navigate since it just got an overhaul for upcoming Cluster support. Feel free to ping me if you've got any questions though!

Cheers :-)

ptaoussanis avatar Apr 17 '14 08:04 ptaoussanis

@ptaoussanis What's still blocking this? It's a bummer that the main Redis client for Clojure only works with standalone instances. Let me know how I might help out.

neverfox avatar Apr 18 '16 14:04 neverfox

@neverfox What's still blocking this?

Hey Roman, nothing in particular - just lack of interest. When I first looked at implementing this, the implementation spec kept changing. Actually only became stable semi recently, afaik.

At the moment don't have any need of Sentinel or Cluster myself though, and have my hands very full with other priorities - so support will need to come from a PR if anyone else is interested.

Hope that helps, cheers! :-)

ptaoussanis avatar Apr 18 '16 15:04 ptaoussanis

+1 for this. We are moving one of our redis to Sentinel managed group. I wish Carmine could support it.

sunng87 avatar Jul 20 '16 10:07 sunng87

PRs welcome, otherwise happy to implement if someone wants to fund my time on this. Otherwise don't need Sentinel myself so unfortunately no other plans atm, sorry.

ptaoussanis avatar Jul 20 '16 10:07 ptaoussanis

I wrote a library to make carmine support sentinel:

https://github.com/killme2008/carmine-sentinel

Someone may want to try it if you are interested. Feedback is welcome.

killme2008 avatar Oct 13 '16 11:10 killme2008

@killme2008 Thanks Dennis, will try take a look at the weekend. Cheers! :-)

ptaoussanis avatar Oct 13 '16 11:10 ptaoussanis

Closing, a new implementation is on the v4 branch 👍

ptaoussanis avatar Dec 03 '22 09:12 ptaoussanis