What is Redis Sentinel?
Redis Sentinel provides high availability for Redis. In practical terms this means that using Sentinel you can create a Redis deployment that resists without human intervention to certain kind of failures.
Redis Sentinel also provides other collateral tasks such as monitoring, notifications and acts as a configuration provider for clients.
This is the full list of Sentinel capabilities at a macroscopical level (i.e. the big picture):
- Monitoring. Sentinel constantly checks if your master and slave instances are working as expected.
- Notification. Sentinel can notify the system administrator, another computer programs, via an API, that something is wrong with one of the monitored Redis instances.
- Automatic failover. If a master is not working as expected, Sentinel can start a failover process where a slave is promoted to master, the other additional slaves are reconfigured to use the new master, and the applications using the Redis server informed about the new address to use when connecting.
- Configuration provider. Sentinel acts as a source of authority for clients service discovery: clients connect to Sentinels in order to ask for the address of the current Redis master responsible for a given service. If a failover occurs, Sentinels will report the new address
Setup of Redis Master slave instances with sentinel monitoring
There are 3 zip files attached which has documentation and scripts to install redis master slave instances with sentinel monitoring. This can be used to setup 3 redis sentinel instances, 1 redis master and 2 redis slave instances, all on a single windows server or distributed across 2, 3 or 4 windows servers.
Thank you , this saved my day, brilliant documentation.
September 15, 2021 at 2:09 pmVery helpful
September 15, 2021 at 2:10 pm