--
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 https://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/p98BE3FyJy8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Iam planning to have 2 redis servers in one data center and other 2 in other datacenter. One shuld be master. How many sentinels do u suggest for this structure ? Also is it gud to have one master and one slave in one datacenter and remaining 2 slaves in other datacenter or do we need to have seperate masters in 2 datacenters ? I need the master from one Datacenter to replicate to the slaves in other datacenter?
Thanks Bill.Here is my plan.Lets DC1 have 3 redis sentinels, C1 as master and c2 as slave. DC2 have 3 redis sentinels, C3 and C4 as slaves. The app always conect to C1 master. So C3 and C4 need to replicate from C1 as a backup to the DC2.I will make C3 and C4 slave priority as 0. So it never become a master when the app is connecting from DC1. When we need to switch to DC2 during maintenance or during DC1 got completely down, a manual failover will be triggerred and it will invoke the reconfig script in sentinel to change slave priority in c3 and c4 and make one as master.
So Iam planning to use 6 sentinels amd quorum value as 3. So if one Datacenter completely goes down also there will be 3 quorum to manually promote the DC2 server as a slave. Is this fine ?
The app in DC1 will be connecting to the haproxy. Ha proxy will be in front of the redis servers so to make sure it write only to master.
Pls tell me this is a goof method ? We use c3 and c4 in datacenter 2 as a DR to replicate from datacenter 1 master. We need a master in DC2 only when the entire DC1 goes down or we do a maintenance.
Also could you please explain your 4th step:>> Update the clients>> a) Remove the old IP Sentinel address(es)>> b) add the IP address(es) of the "new" SentinelsWhy I need to update sentinel IPs since initially all sentinels are monitoring the primary datacenter master C1. Sentinel will take care of these automatically. Right ?
Also please explain what should be the quorum for datacenter 1 and if sentinels in datacenter 2 is not doing anything then what it need to monitor in the sentinel.conf ?Why cant use 6 sentinels and quorum as 3 so that even if all the servers in datacenter 1 goes down it have the quorum majority to elect a master in datacenter2.
Also I have noticed one more thing.
When the redis master got halted or shutdown and when it comes back, it is coming up as a master due to which all other servers reconfigured this master and data will get lost. How can I prevent this situation so that once the server comes after reboot then it need to be a slave and not a master? Pls help
--
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.
That 3rd service works like this: The client application connects to Sentinel and sends a query to find out the master of the group, and sends another query to find out the slaves. Automatic failover to the new master is not done through a load balancer, but through asking Sentinel for the new master and then connecting to it.
--
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/p98BE3FyJy8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
if I dont use haproxy then how will the app find the new master when the current master goes down?
Hi Bill,
Hi Bill,See the below link. HAProxy 1.5+ comes with a new built-in TCP health check feature for Redis to perform an automatic failover. To avoid having to change Redis IP/Port in the front-end client application after each failover, setup HAProxy with the TCP health check to test if a Redis instance is a master or slave.So it will work fine. right ?
My concern now is how to configure sentinel in DC2. I configure normally sentinel conf to monitor mastername <ipofcurrentmaster> port
I can manually point the app to connect to haproxy 2 if DC1 goes down.Is there any other way to do that in sentinel conf of dc2?