Reputation: 1538
We have healthy running 3 nodes cassandra cluster but we need to swap all 3 nodes IP address due to some issue.
So basically, we want to swap old cassandra server IP address from to new cassandra server IP address. My question is :-
1) Is there any specific procedure we need to follow to avoid any issue?
2) Or Just modify rpc_address, listen_address, seeds, peers table etc. and start the cassandra nodes?
Please help, Thanks
Upvotes: 2
Views: 2891
Reputation: 2283
You have already identified most of the steps to take. Also, ensure to follow the steps one node at a time:
cassandra.yaml
update rpc_address, listen_address, seeds, and any reference to the previous IP address. Also, ensure that auto_bootstrap
is set to false (by default the directive is omitted and the default value is true).cassandra-topology.properties
and cassandra-rackdc.properties
cassandra-env.sh
include the following directive with the previous IP address:
JVM_OPTS="$JVM_OPTS -Dcassandra.replace_address=previous_ip_address
nodetool status
reports it as UN
, you should notice that the new IP address is reportedauto_bootstrap
directive in cassandra.yml
, remove it\cassandra.replace_address
directive from cassandra-env.sh
Upvotes: 3