Reputation: 4045
When I add a node in a redis cluster, it has 0 hash slots. Why redis cluster doesn't automatically does a resharding operation in order to make the new node fully functional?
Upvotes: 9
Views: 5182
Reputation: 324
regard of my expirence, automatic reshard is not i want.
the case i was dealing with is that some node has high read throughput(100k qps), so i add new nodes to reshard only these high load node for the purpose of decreasing the pressure.
you may ask why the load is different? Cause we use hash tag (eg. {user}123456 )to ensure the same kind data stored on the same node.
so automatic reshard is useless.
Upvotes: -1
Reputation: 79
The process of adding a node consists of two steps:
CLUSTER MEET
so that all the nodes start to communicate via cluster busCLUSTER ADDSLOTS
or as a slave via CLUSTER REPLICATE
The separation helps to keep the commands simple.
Automatic resharding is part of the Redis 4.2 roadmap
Upvotes: 1