Redis Sentinel
It is a distributed architecture, including several Sentinel
nodes and Redis
data nodes. Each Sentinel
node monitors the data node and other Sentinel
nodes. When the node is found to be unreachable, it will mark the node offline.
If it is identified as the master node, he will also choose Sentinel
to "negotiate" with other nodes. When most Sentinel
nodes think that the master node is unreachable, they will elect a Sentinel
node to complete the automatic failover work, and at the same time change this change. Notify the Redis
application side.
The whole process is completely automatic and does not require manual intervention, so it can be Redis
a high-availability problem that can be solved very well.
Next, we will Redis Sentinel
understand the overall framework by deploying an example.