Hi; I have to apologise: my direct support for sentinel in SE.Redis is... minimal. Largely because I'm *not really a sentinel user* (we're limping along with something hone-baked until redis-cluster is a viable option for us, and that includes failover etc internally), so I don't feel massive familiar / comfortable - and partly because of time / resource constraints. I did receive a PR the other day that I need to look through, although my initial thoughts is "it would be nice if this was moved further in to be automatic".
The only support SE.Redis offers at the moment for failover is related to our home-baked "sentinel lite", which largely involves some pub/sub to trigger rediscovery. The options for that are exposed via MakeMaster.
Marc (SE.Redis author)
I think I am almost to the point that I understand the Redis server with sentinels failover process but I am a little shaky on what is available the the StackExchange.Redis library to handle such a case. My initial attempt would be to have a ConnectionMultiplexer for the sentinels and for the master/save servers. I would start out by getting the master server from the master/slave ConnectionMultiplexer as well as an IDatabase instance and do the normal read/writes to the database. I would also subscribe to the "+odown" message from the centinels and when/if it is received then change the master/slave ConnectionMultiplexer so that the next time a database instance is requested the newly promoted master will be used. What am I missing? What facilities are there to make this "failover" easier and more reliable with the StackExchange library?Thank you.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/sf0oIO-CIa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/sf0oIO-CIa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.