|
|
|
|
|
by taf2
4583 days ago
|
|
I would definitely take slower write speed to have this extra assurance of high availability with data consistency... as it is today - it's pretty hard operate redis in a HA way even with sentinel... I'm sure others have figured it out but for me the best I have is a 30 second window when sentinel is switching the backup slave to master and either writes are lost haproxy can hold but it works sometimes... I can imagine with synchronous replication we'd have slower write speed but at least failover could be sub-second and possibly zero downtime... using a vip/keepalived - Still redis is such a good datastore, it's difficult to imagine a world/service without it. for what it's worth this looks to be the best setup i've found: http://failshell.io/sensu/high-availability-sensu/ would be interested if others have other setups that possibly work better... |
|
EDIT: to clarify:
1) Sentinels will tell clients master is A.
2) A fails.
3) Sentinels will still tell it is A before failover.
4) Failover happens.
5) Sentinels will finally tell master is B.