Configuring gossip settings
When a node first starts up, it looks at its cassandra.yaml configuration file to determine the name of the 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.
In the cassandra.yaml file, set the following parameters.
The location of the cassandra.yaml file depends on the type of installation:
-
Package installations and Installer-Services installations:
/etc/dse/cassandra/cassandra.yaml -
Tarball installations and Installer-No Services installations:
<installation_location>/resources/cassandra/conf/cassandra.yaml
| Property | Description | ||
|---|---|---|---|
Name of the cluster that this node is joining. Must be the same for every node in the cluster. |
|||
The IP address or hostname that the database binds to for connecting this node to other nodes. |
|||
Use this option instead of listen_address to specify the network interface by name, rather than address/hostname |
|||
(Optional) |
The public IP address this node uses to broadcast to other nodes outside the network or across regions in multiple-region EC2 deployments.
If this property is commented out, the node uses the same IP address or hostname as |
||
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.
|
|||
The inter-node communication port (default is 7000). Must be the same for every node in the cluster. |
|||
For legacy clusters. Set this property for single-node-per-token architecture, in which a node owns exactly one contiguous range in the ring space. |
|||
For new clusters. The number of tokens randomly assigned to this node in a cluster that uses virtual nodes (vnodes). |