Henley Wing Chiu
Henley Wing Chiu

Reputation: 22535

1 Redis sentinel vs multiple redis sentinels?

I've been reading about the use of Redis sentinel for failover. I plan to have 1 master + 1 slave, and turn the slave into a master if the master goes down for more than 1 minute. I know this is 100% possible with Sentinel.

However, I've seen documentation mention the use of multiple Sentinels. Let's assume this is not possible (ie. budget or technical constraints). I assume I can have this configuration:

What's the benefit of having multiple sentinels as opposed to 1? My app can only connect to 1 sentinel at a time, and even if there were 2 sentinels, my app can't rotate or switch between either of them if one goes down w/o some complicated logic in my app layer.

Upvotes: 3

Views: 2038

Answers (1)

c ccx
c ccx

Reputation: 46

This configuration is possible only if servers in different locations. In that case, it hasn't SPOF, because of very low chances that 2 servers failed at the same time. If Sentinel failed, you can quickly notice it and repair/start new with Ansible.

This configuration worked for me 2 years, HA and FO worked perfectly.

Upvotes: 0

Related Questions