How to effectively start / restart Cassandra node using auto_bootstrap property

My understanding at auto_bootstrap

Below is my understanding of the property auto_bootstrap. First, please correct me if I am mistaken at any time.

Initially, the property auto_bootstrapwill not be available in the file cassandra.yaml. This means that the default value was "true".

true - this means that the bootstrap / data stream to the corresponding node from all other nodes at startup / restart
false - do not transmit data at startup / restart

Where do we need "auto_bootstrap: true

1) When a new new node needs to be added to an existing cluster, for this it is necessary to set 'true to automatically load data from all other nodes of the cluster. Getting a new node added to the cluster will take some considerable amount of time (based on the current load of the cluster). But this will automatically make the load balance in the cluster.

Where do we need "auto_bootstrap: false

1) When a new node needs to be quickly added to an existing cluster without data self-loading, it is necessary to set the value to 'false . The new node will be added quickly, regardless of the current cluster load. Later, we need to manually transfer the data to the new node in order to balance the load on the cluster.

2) 'false. , node, / , "false".

Cassandra 2.0.3 ( 3 ). Cassandra ( ). cassandra.yaml node. , cassandra.ymal node, . .

node
node node,

$ cd install_location 
$ bin/cassandra 

, node auto_bootstrap ( ).

'true'

1) node, , . node .
2) , node .

'false'

. , 3) auto_bootstrap: false node, .
4) auto_bootstrap. ?

Else 5) node ip-, , node , , , node , , auto_bootstrap true cassandra.yaml?

+4
2

node ip, , auto_bootstrap. node, - . , 5 .

0

,

nodetool drain

node , Cassandra, / .

, node "" "": Cassandra, node , . , , , . , , , node . , , , . .

auto_bootstrap false, node .

node node, , , , , . IP- , node.

0

Source: https://habr.com/ru/post/1627297/


All Articles