暂无图片
redis集群是只能放16384个槽吗?满了就放不了?
我来答
分享
QIU飞
2021-09-26
redis集群是只能放16384个槽吗?满了就放不了?

redis集群是只能放16384个槽吗?满了就放不了?

我来答
添加附件
收藏
分享
问题补充
4条回答
默认
最新
cqiwen

个人觉得能存储多少数据这个和槽的多少无关。你有考虑过为什么单机redis没有槽的说法?你把槽理解成oracle的表分区就行了。redis集群感觉像是做了一个分布式存储。

暂无图片 评论
暂无图片 有用 0
暂无图片
Uncopyrightable

Normal heartbeat packets carry the full configuration of a node, that can be replaced in an idempotent way with the old in order to update an old config. This means they contain the slots configuration for a node, in raw form, that uses 2k of space with16k slots, but would use a prohibitive 8k of space using 65k slots.
At the same time it is unlikely that Redis Cluster would scale to more than 1000 mater nodes because of other design tradeoffs.
So 16k was in the right range to ensure enough slots per master with a max of 1000 maters, but a small enough number to propagate the slot configuration as a raw bitmap easily. Note that in small clusters the bitmap would be hard to compress because when N is small the bitmap would have slots/N bits set that is a large percentage of bits set.

控制传输的数据包大小,提升性能;

暂无图片 评论
暂无图片 有用 0
QIU飞

明白了,谢谢各位专家解答

暂无图片 评论
暂无图片 有用 0
Sun

16384个槽, 这个槽是hash槽,  而hash有概率会发生hash碰撞, 所以楼主你知道了吧 其实一个hash槽里会有多个值的呢

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏