Redis: Cluster Environment & Fail-over

39 views
Skip to first unread message

sreeram.r...@outlook.com

unread,
Nov 27, 2015, 8:12:40 AM11/27/15
to Redis DB
Hi All,

I'm new to Redis, I'm trying configure Redis environment for high-availablity as below,

Machine 1 : Redis Master & a Sentinel (monitoring Redis master)
Machine 2 : Redis Slave & a Sentinel (monitoring Redis master)
Machine 3 : Redis Slave & a Sentinel (monitoring Redis master)

From application client (StackExchange.Redis), I'm able to connect Redis Master with below config

<redisCacheClient allowAdmin="true" ssl="false" connectTimeout="5000" database="0">
<hosts>
<add host="<Machine 1_IP>" cachePort="6379" />
</hosts>

Now, When my Machine 1 goes down, Sentinels switches the master to either Machine 2 or Machine 3.

1. How will my Application client know that Redis master has been switched?
2. Should I provide all Redis-server IP in Application client's app.config section? 

Please advise.

Thanks.



Jan-Erik Rediger

unread,
Nov 27, 2015, 8:46:28 AM11/27/15
to redi...@googlegroups.com
At best you have a Sentinel-aware Client.
Then you only let it know about the Sentinel IPs and it will
automatically figure out the rest.
> --
> 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.

sreeram.r...@outlook.com

unread,
Nov 27, 2015, 9:12:58 AM11/27/15
to Redis DB, jan...@fnordig.de
Thanks janerik for your quick reply. Can you please provide me a code sample or online link reference on how do that ?
Reply all
Reply to author
Forward
0 new messages