As I know from Redis cluster tutorial, cluster has only 16384 slots (0 - 16383). The hashslots are calculated by following command: CRC16 (KEY) mod 16384
. So for example CRC16 of some key equals 16385
and hash slot will be 1
. For another key CRC16 equals 32769
and hash slot will be again 1
. Is it cause some conflict? Or first one will be rewritten by second one?
Asked
Active
Viewed 1,587 times
0
1 Answers
4
If i understand your question, no this is not a conflict. Each key belogns to one hashsolt but each hashslot can have many keys.
CLUSTER GETKEYSINSLOT slot count
: https://redis.io/commands/cluster-keyslot

e7lT2P
- 1,635
- 5
- 31
- 57