-1

我在 Windows 平台构建的 Cassandra 集群上运行 4 个节点。当我跑

nodetool -h 本地主机环

种子节点上的命令,我看到每个节点处于启动状态,正常状态并拥有50.00%我希望看到25.00%。看到每个节点拥有 50.00% 是否正常?

这里是每个节点的配置;

1. 节点

rpc_address: 0.0.0.0
initial_token: -9223372036854775808
listen_address: [IP Addres of the machine]
seeds: "[IP Addres of the seed machine (1. Node)]"

2.节点

rpc_address: 0.0.0.0
initial_token: -4611686018427387904
listen_address: [IP Addres of the machine]
seeds: "[IP Addres of the seed machine (1. Node)]"

3. 节点

rpc_address: 0.0.0.0
initial_token: 0
listen_address: [IP Addres of the machine]
seeds: "[IP Addres of the seed machine (1. Node)]"

4.节点

rpc_address: 0.0.0.0
initial_token: 4611686018427387904
listen_address: [IP Addres of the machine]
seeds: "[IP Addres of the seed machine (1. Node)]"

使用此公式计算的初始代币;(2^64 / 4) * [节点索引] - 2^63

Cassandra 1.2.1 安装在每个节点上。关于每个节点的 50.00% 值的任何想法?

4

2 回答 2

1

在您设置复制因子并创建密钥空间之前,您无法真正说出每个节点拥有多少。创建一个具有 replication_factor=1 的 KS,每个节点将拥有 25%。

于 2013-05-03T14:13:55.710 回答
0

你的复制因子是 2 吗?

这可以解释它 - 你的数据在环中有两次。

于 2013-02-06T21:20:21.807 回答