4节点Cassandra群集,每个群集有50.00%
我在Windows平台内置的Cassandra群集上运行4节点。当我跑的时候 nodetool-h本地主机环 在seed节点上的命令,我看到每个节点处于启动状态、正常状态和自己的50.00%,我希望看到25.00%。看到每个节点拥有50.00%是正常的吗 下面是每个节点的配置 1。节点4节点Cassandra群集,每个群集有50.00%,cassandra,Cassandra,我在Windows平台内置的Cassandra群集上运行4节点。当我跑的时候 nodetool-h本地主机环 在seed节点上的命令,我看到每个节点处于启动状态、正常状态和自己的50.00%,我希望看到25.00%。看到每个节点拥有50.00%是正常的吗 下面是每个节点的配置 1。节点 rpc_address: 0.0.0.0 initial_token: -9223372036854775808 listen_address: [IP Addres of the machine] seeds:
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)]"
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)]"
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)]"
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。节点
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)]"
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)]"
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)]"
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: -9223372036854775808
listen_address: [IP Addres of the machine]
seeds: "[IP Addres of the seed machine (1. Node)]"
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)]"
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)]"
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)]"
4。节点
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)]"
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)]"
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)]"
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%值吗?是您的复制系数2吗
这就可以解释了——您的数据在环中有两次。在设置复制因子并创建密钥空间之前,您无法真正说出每个节点拥有多少数据。创建一个复制系数为1的KS,每个节点将拥有25%。我刚刚配置了节点,等待节点负载相等,然后通过选择复制策略创建密钥空间。因此,目前只有系统键空间。