Adding nodes to a Cassandra cluster

In order to add a node to a Cassandra cluster, you should consider the following configuration options in the Cassandra.yaml file:

  • auto_bootstrap: Set this configuration option to true so that a newly joining node can collect data from other nodes.
  • listen_address: Set this to the appropriate IP address of the node.
  • endpoint_snitch: Ensure that the new node is using the same snitch as that being used by the other nodes.
  • seed_provider: This lists the nodes that are in the seed node list in the existing cluster. Since this new node is bootstrapping, it can't be in the seed node list right now.
  • cluster_name: Ensure that the cluster name is the same as that of the other nodes in the cluster.

In the Cassandra-rackdc.properties ...

Get Apache Cassandra Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.