Reputation: 1307
Can anyone explain the importance of using same ports across all nodes in Cassandra cluster. How the clustering established ? (Because of same port across the cluster or using a common seed names across the cluster) ?
Thanks in advance.
Upvotes: 0
Views: 354
Reputation: 8057
The clustering is established by the cluster_name
and seed setting in your Cassandra config file (cassandra.yaml
). You don't need to use the same ports across the cluster. In fact, you can run several cassandra nodes on the same vm with different ports. Cassandra uses Gossip for internode communication. You can read more about it here.
Upvotes: 2