Re: 5 node cluster - Recommended seed configuration.
Thanks Samal From: samal sa...@wakya.in To: user@cassandra.apache.org; Selva Kumar wwgse...@yahoo.com Sent: Tuesday, August 9, 2011 12:23 AM Subject: Re: 5 node cluster - Recommended seed configuration. It is recommended that seed list should be same in all server so all server on same state. It should be Lan IP not Loopback IP. In seed node, auto bootstrap should be false 2 seed should be enough. In your case it should be like: node1: seeds: node1, autobootstrap=false node2: seeds: node1,autobootstrap=true node3: seeds: node1, autobootstrap=true node4: seeds: node1, autobootstrap=true node5: seeds: node1, autobootstrap=true or node1: seeds: node1,node2, autobootstrap=false node2:seeds: node1,node2,autobootstrap=false (set it false after bootstrap)node3: seeds: node1,node2, autobootstrap=true node4: seeds: node1, node2,autobootstrap=true node5: seeds: node1,node2, autobootstrap=true /Samal On Tue, Aug 9, 2011 at 9:16 AM, Selva Kumar wwgse...@yahoo.com wrote: We have a 5 node Cassandra cluster. We use version 0.7.4. What is the recommended seed configuration. Here are some configurations, i have noticed. Example 1: --- One node being seed to itself. node1: seeds: node1, autobootstrap=false node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Example 2: --- node1: seeds: node5,node2, autobootstrap=true node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Thanks Selva
Re: 5 node cluster - Recommended seed configuration.
Rule of thumb, you should identify two servers in the cluster to be your seed nodes. Is this rule same for N node cluster? Any common practice/formula for seed number? Going to use about 10 nodes and extend it in a future. -- Evgeniy Ryabitskiy
Re: 5 node cluster - Recommended seed configuration.
On Tue, Aug 9, 2011 at 10:07 AM, Evgeniy Ryabitskiy evgeniy.ryabits...@wikimart.ru wrote: Rule of thumb, you should identify two servers in the cluster to be your seed nodes. Is this rule same for N node cluster? Any common practice/formula for seed number? Going to use about 10 nodes and extend it in a future. -- Evgeniy Ryabitskiy This comes up a lot. All you really need to know is: 1) pick two (or more) nodes per data center as seed nodes. Having more does not hurt anything 2) sync the seed list to all your nodes Other things that are helpful. 3) seeds are used during startup to discover the cluster 4) newer versions of cassandra persist the cluster topology making seeds less important then they were in the 0.6.X series, where they were used every startup 5) You can make a seed a node at any time. There is nothing special about seed nodes. If you list the node in seed list it is a seed 6) seeds do not auto bootstrap (ie if a node has itself in its seed list it will not automatically transfer data to itself) If you want a node to do that bootstrap it first and then add it to seeds later. If you have no data (new install) you do not have to worry about bootstrap or autobootstrap at all.
Re: 5 node cluster - Recommended seed configuration.
Thanks a lot! Maybe this should be placed at Cassandra FAQ. http://wiki.apache.org/cassandra/FAQ#seed has less information. -- Evgeniy Ryabitskiy
Re: 5 node cluster - Recommended seed configuration.
Also, don't use 0.7.4 use the most recent version of 0.7 or 0.8. Amongst all the other fixes this one is definitely good to have around https://github.com/apache/cassandra/blob/cassandra-0.7.8/CHANGES.txt#L58 cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 10 Aug 2011, at 02:37, Evgeniy Ryabitskiy wrote: Thanks a lot! Maybe this should be placed at Cassandra FAQ. http://wiki.apache.org/cassandra/FAQ#seed has less information. -- Evgeniy Ryabitskiy
5 node cluster - Recommended seed configuration.
We have a 5 node Cassandra cluster. We use version 0.7.4. What is the recommended seed configuration. Here are some configurations, i have noticed. Example 1: --- One node being seed to itself. node1: seeds: node1, autobootstrap=false node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Example 2: --- node1: seeds: node5,node2, autobootstrap=true node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Thanks Selva
Re: 5 node cluster - Recommended seed configuration.
It is recommended that seed list should be same in all server so all server on same state. It should be Lan IP not Loopback IP. In seed node, auto bootstrap should be false 2 seed should be enough. In your case it should be like: node1: seeds: node1, autobootstrap=false node2: seeds: node1,autobootstrap=true node3: seeds: node1, autobootstrap=true node4: seeds: node1, autobootstrap=true node5: seeds: node1, autobootstrap=true or node1: seeds: node1,node2, autobootstrap=false node2: seeds: node1,node2,autobootstrap=false (set it false after bootstrap) node3: seeds: node1,node2, autobootstrap=true node4: seeds: node1, node2,autobootstrap=true node5: seeds: node1,node2, autobootstrap=true /Samal On Tue, Aug 9, 2011 at 9:16 AM, Selva Kumar wwgse...@yahoo.com wrote: We have a 5 node Cassandra cluster. We use version 0.7.4. What is the recommended seed configuration. Here are some configurations, i have noticed. Example 1: --- One node being seed to itself. node1: seeds: node1, autobootstrap=false node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Example 2: --- node1: seeds: node5,node2, autobootstrap=true node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Thanks Selva
Re: 5 node cluster - Recommended seed configuration.
Hi, Rule of thumb, you should identify two servers in the cluster to be your seed nodes. And all the servers should point to these two seeds.. You should bring up the seed nodes first with autobootstrap set to false.. All other nodes should be added to the ring with autobootstrap=true and pointing to the same seed nodes. -indra On Mon, Aug 8, 2011 at 8:46 PM, Selva Kumar wwgse...@yahoo.com wrote: We have a 5 node Cassandra cluster. We use version 0.7.4. What is the recommended seed configuration. Here are some configurations, i have noticed. Example 1: --- One node being seed to itself. node1: seeds: node1, autobootstrap=false node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Example 2: --- node1: seeds: node5,node2, autobootstrap=true node2: seeds: node1, node3, autobootstrap=true node3: seeds: node2, node4, autobootstrap=true node4: seeds: node3, node5, autobootstrap=true node5: seeds: node1, node2, autobootstrap=true Thanks Selva -- *Indranath Ghosh Phone: 408-813-9207*