cassandra cluster banlance

  • 新集群,要事先规划好initial_token并在每台设好cassandra.yaml,计算工具有很多比如 this
# initial_token allows you to specify tokens manually.  While you can use # it with
# vnodes (num_tokens > 1, above) -- in which case you should provide a
# comma-separated list -- it's primarily used when adding nodes # to legacy clusters
# that do not have vnodes enabled.
initial_token: -9223372036854775808

 

  • 已有集群添加节点

需要在新节点执行nodetool repair  之后在其他老节点执行nodetool cleanup

 

posted @ 2018-01-03 15:12  Els0n  阅读(203)  评论(0编辑  收藏  举报