我在Windows平台内置的Cassandra集群上运行4个节点。我跑的时候
nodetool -h localhost ring
种子节点上的命令,我看到每个节点处于up状态,正常状态并且拥有 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)* [NodeIndex] - 2 ^ 63
每个节点都安装了Cassandra 1.2.1。有关每个节点50.00%值的想法吗?
答案 0 :(得分:1)
在设置复制因子并创建键空间之前,您无法确切知道每个节点拥有多少。使用replication_factor = 1创建KS,每个节点将拥有25%。
答案 1 :(得分:0)
你的复制因子是2吗?
这可以解释它 - 你在环中有两次数据。