Re: network topology issue

2011-05-12 Thread Sylvain Lebresne
On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral anurag.guj...@gmail.com wrote: Hi All, I am testing network topology strategy in cassandra I am using two nodes , one node each in different data center. Since the nodes are in different dc I assigned token 0 to both the nodes. I

Re: network topology issue

2011-05-12 Thread Anurag Gujral
Thanks everyone for your responses. On Thu, May 12, 2011 at 1:18 AM, Sylvain Lebresne sylv...@datastax.comwrote: On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral anurag.guj...@gmail.com wrote: Hi All, I am testing network topology strategy in cassandra I am using two nodes ,

network topology issue

2011-05-11 Thread Anurag Gujral
Hi All, I am testing network topology strategy in cassandra I am using two nodes , one node each in different data center. Since the nodes are in different dc I assigned token 0 to both the nodes. I added both the nodes as seeds in the cassandra.yaml and I am using properyfilesnitch

Re: network topology issue

2011-05-11 Thread Sameer Farooqui
Anurag, The Cassandra ring spans datacenters, so you can't use token 0 on both nodes. Cassandra’s ring is from 0 to 2**127 in size. Try assigning one node the token of 0 and the second node 8.50705917 × 10^37 (input this as a single long number). To add a new keyspace in 0.8, run this from the

Re: network topology issue

2011-05-11 Thread Narendra Sharma
My understanding is that the replication factor is for the entire ring. Even if you have 2 DCs the nodes are part of the same ring. What you get additionally from NTS is that you can specify how many replicas to place in each DC. So RF = 1 and DC1:1, DC2:1 looks incorrect to me. What is possible

Re: network topology issue

2011-05-11 Thread Sameer Farooqui
Yeah, Narendra is correct. If you have 2 nodes, one in each data center, use RF=2 and do reads and writes with either level ONE or QUORUM (which means 2 in this case). However, if you had 2 nodes in DC1 and 1 node in DC2, then you could use RF=3 and use LOCAL_QUORUM for reads and writes. For