cassandra - JVM_OPTS="$JVM_OPTS -Dcassandra.consistent.rangemovement=false 有什么用

标签 cassandra datastax datastax-enterprise cassandra-2.1

谁能解释一下有什么用

-JVM_OPTS="$JVM_OPTS -Dcassandra.consistent.rangemovement=false"

默认设置是什么以及它如何影响加入集群的多个节点?

我与此相关的是Datastax doc for cassandra utility

最佳答案

根据 NEWS.txt

Bootstrapping now ensures that range movements are consistent, meaning the data for the new node is taken from the node that is no longer a responsible for that range of keys. If you want the old behavior (due to a lost node perhaps) you can set the following property (-Dcassandra.consistent.rangemovement=false).


并关注 official operating guide

After the tokens are allocated, the joining node will pick current replicas of the token ranges it will become responsible for to stream data from. By default it will stream from the primary replica of each token range in order to guarantee data in the new node will be consistent with the current state.

In the case of any unavailable replica, the consistent bootstrap process will fail. To override this behavior and potentially miss data from an unavailable replica, set the JVM flag -Dcassandra.consistent.rangemovement=false.

关于cassandra - JVM_OPTS="$JVM_OPTS -Dcassandra.consistent.rangemovement=false 有什么用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39355698/

相关文章:

linux - 如何将 Cassandra 快照恢复到较小的集群中

java - 查询包含集合(集合)的大行时,Cassandra 出现内存不足错误

c# - 通过 C# 更改 Cassandra 表的正确方法

solr - DSE SolR 查询结果不一致结果集不一致

cassandra - 如何在同一个分区中保留 2 个 Cassandra 表

ruby - cassandra cql 在 where 子句中使用日期过滤数据

Hadoop/Cassandra - 如何存储和分析来自数千个传感器的数据?

cassandra - 请求期间出现意外异常

cassandra - 对 cassandra 表执行范围查询

Cassandra 2.1 错误 - 检测到泄漏