Does redis cluster need to stop when adding or deleting nodes?

what will happen if the data is read and written during reshard without downtime?


No downtime is required. Redis introduces the concept of hash slot . The data is associated with the hash slot, and the hash slot is associated with the master node, thus ensuring that the data is not directly bound to the node. Based on this rule:
1. After adding the master node, you must manually assign hash slots to the new node before you can store data normally;
2. Before deleting the master node, you should manually migrate the data on the master node to ensure that the master node has no data before it can be deleted.

A brief description. For more information, please refer to redis Cluster

.
Menu