gpt4 book ai didi

Cassandra 代币分配

转载 作者:行者123 更新时间:2023-12-04 09:48:00 25 4
gpt4 key购买 nike

我正在阅读 cassandra 教程并遇到这张代表多节点 cassandra 集群的图片 -

enter image description here

token 总数(在上述 256 个中)不应该分布在所有三个节点上,每个节点大约 85 个 token 吗?

最佳答案

不,num_tokens参数指定每个节点将处理多少个 token 范围。来自 cassandra.yaml描述:

This defines the number of tokens randomly assigned to this node on the ring. The more tokens, relative to other nodes, the larger the proportion of data that this node will store. You probably want all nodes to have the same number of tokens assuming they have equal hardware capability.



否则,如果您有超过 256 个节点的集群会发生什么? ;-)

关于Cassandra 代币分配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62057139/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com