If the node corresponding slot Numbers for 1-5000, node 2 corresponding slot number is 5001-10000, node 3 corresponding slot number is 10001-15000,
I add a record, the key corresponding to the slot for 2000, the default to node 1 above, but I want to send him to node 2, how should do?
online, glad, thank you!
(no scores, the embarrassed)
CodePudding user response:
Why do you want to do that?? The requirements?CodePudding user response:
This will need to amend the redis source code, modify the cluster. The c fileCodePudding user response:
Swap the chamfer nodes 1 and 2, for the node 2 1-5000 trough, assign node 1 tank of 5000-1000CodePudding user response:
Lua script to add a curly braces can achieve a key or similar key falls on one machine {}