Introduction to Redis Sentinel

Redis SentinelIt is a distributed architecture, including several Sentinelnodes and Redisdata nodes. Each Sentinelnode monitors the data node and other Sentinelnodes. 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 Sentinelto "negotiate" with other nodes. When most Sentinelnodes think that the master node is unreachable, they will elect a Sentinelnode to complete the automatic failover work, and at the same time change this change. Notify the Redisapplication side.

The whole process is completely automatic and does not require manual intervention, so it can be Redisa high-availability problem that can be solved very well.

Next, we will Redis Sentinelunderstand the overall framework by deploying an example.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325462393&siteId=291194637