February 2018
Intermediate to advanced
382 pages
11h 33m
English
It is worth mentioning that client-side support is needed to utilize Redis Sentinel. When we introduced Redis Java/Python clients in Chapter 4, Developing with Redis, we passed the master server's address to the API. However, with Redis Sentinel enabled, the master server's address will change when master failover happens. To get the latest master information, the client needs to query from the Sentinel. This can be done by the command sentinel get-master-addr-by-name <master-name>. The actual process is more complicated and we are not going to cover it here. Fortunately, both the Jedis and redis-py libraries have Sentinel support.
Read now
Unlock full access