Cosmin Ioniță
Cosmin Ioniță

Reputation: 4045

Why redis cluster resharding is not automatically?

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

Answers (3)

hechen0
hechen0

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

John
John

Reputation: 56

As you can see here, redis supports now automatic partitioning.

Upvotes: 4

Volodymyr Kostin
Volodymyr Kostin

Reputation: 79

The process of adding a node consists of two steps:

  1. Introduce the node to other nodes via CLUSTER MEET so that all the nodes start to communicate via cluster bus
  2. Make the node to act as Master via CLUSTER 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

Related Questions