@Faraaz check out the comment by Aaron morton here : http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Seed-Nodes-td6077958.html Having same nodes is a good idea but it is not necessary. > In your case, sure the nodes will be in the cluster for 10 > minutes but what about sporadic failures that cause them to leave the ring and > then re-enter it? At that point, you might reach the network fragmentation > issue.
I am not sure I understand this completely, if a node leaves the ring and re enters it would use its seed nodes to know about the ring and these nodes would be the ones which are part of ring so I don't see any information lag happening here. On Jun 3, 2013, at 5:06 PM, Faraaz Sareshwala <[email protected]> wrote: > All the documentation that I have read about cassanrda always says to keep the > same list of seeds on every node in the cluster. Without this, you can end up > with fragmentation within your cluster where nodes don't know about other > nodes > in the cluster. In your case, sure the nodes will be in the cluster for 10 > minutes but what about sporadic failures that cause them to leave the ring and > then re-enter it? At that point, you might reach the network fragmentation > issue. > > I also use puppet to push out the cassandra.yaml file. I've defined the list > of > seeds in my puppet class and have puppet generate the cassandra.yaml file from > an erb template. > > Hopefully that helps a bit :). > > Faraaz > > On Mon, Jun 03, 2013 at 04:59:23PM -0700, Aiman Parvaiz wrote: >> Hi all >> I am using puppet to push cassandra.yaml file which has seeds node >> hardcoded, going forward I don't want to hard code the seed nodes and I plan >> to maintain a list of seed nodes. Since I have a cluster in place I would >> populate this list for now to start with and next time when I add a node >> this list would be referred and three nodes would be read and populated as >> seeds in the yaml file. >> >> This implementation can lead to different nodes running different seeds I >> know that this is not a ideal situation but I believe that if a node has >> been in the ring for long enough(say 10 minutes, it knows about other nodes >> in the ring) then it can be used as a seed node. >> >> What do you guys think of populating seeds this way and also please throw >> some light on why running different seeds is not a best practice(assuming >> that all potential seed candidates have been in ring long enough) >> >> Thanks
