Docs/redis/Redis基础知识.md
2022-10-18 16:59:37 +08:00

3 lines
No EOL
369 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Redis 3.0集群一共有16284各槽位
Redis将每个键键名的有效部分使用CRC16算法计算出散列值然后对16384取余保证每个值都可以分配到16384个槽中进而分配到指定的节点中处理。槽分配即迁移使用redis-cli进行操作。操作过程中会用到槽的索引槽1~16384对应索引分别为0~16383