Apache Cassandra™ 2.0

Configuring gossip settings

When a node first starts up, it looks at its cassandra.yaml configuration file to determine the name of the Cassandra cluster it belongs to; which nodes (called seeds) to contact to obtain information about the other nodes in the cluster; and other parameters for determining port and range information.

Procedure

In the cassandra.yaml file, set the following parameters:
Property Description
cluster_name Name of the cluster that this node is joining. Must be the same for every node in the cluster.
listen_address The IP address or hostname that other Cassandra nodes use to connect to this node. Should be changed from localhost to the public address for the host.
seed_provider A -seeds list is comma-delimited list of hosts (IP addresses) that gossip uses to learn the topology of the ring. Every node should have the same list of seeds. In multiple data-center clusters, the seed list should include a node from each data center.
storage_port The intra-node communication port (default is 7000). Must be the same for every node in the cluster.
initial_token Used in the single-node-per-token architecture, where a node owns exactly one contiguous range in the ring space.
num_tokens Defines the number of tokens randomly assigned to this node on the ring when using virtual nodes (vnodes).
Show/hide