Hey everyone!
I have set up 3 Sentinel Redis servers where I have one main Redis instance and 2 secondary Redis instances. Sentinel enables Redis secondary instance to get promoted to main on when the main instance goes down. I have two questions around this setup:
- My application should always be communicating with the main instance right?
- All three Redis servers have different IP addresses. If my main redis server goes down, I will need to do several checks:
a. The first one will acknowledge that the redis server is down and can’t process requests (i.e my request will fail)
b. I will need to hit one of the other two servers to check which one is the main one.
c. Send the request to the main redis instance
Is there a simpler way around this?