Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding an existing non-seed Cassandra node to the list of seeds

Tags:

cassandra

seed

I have an existing Cassandra cluster with the following setup:

  • DC1
    • Node1
    • Node2
    • Node3
  • DC2
    • Node4
    • Node5
    • Node6

Current seeds list in all nodes' yamls is "Node1, Node4"

I would like to add one more node from each datacenter to the seed list, i.e. I would like the seed list to be "Node1, Node2, Node4, Node5"

Is it just a matter of modifying the yaml file on each node to add the new seeds, then restarting each node? Or is there more to 'making' a node be a seed?

like image 287
CRCerr0r Avatar asked Jan 14 '15 14:01

CRCerr0r


1 Answers

Contrary to popular belief, there really isn't anything special about the seed nodes. They are basically designated points of contact that each node uses to help learn the topology of the ring. For this reason, it is advisable to start the seed nodes first when starting-up the nodes in your cluster. But other than that, they function just like any other node and are not given preference to handle (query) requests.

Is it just a matter of modifying the yaml file on each node to add the new seeds

Yes, simply alter each cassandra.yaml and restart each node.

like image 116
Aaron Avatar answered Sep 17 '22 19:09

Aaron