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 wrote: > On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral > wrote: > > Hi All, > > I am testing network topology strategy in cassandra I am > using > > two nodes , one node each in different data cen

Re: network topology issue

2011-05-12 Thread Sylvain Lebresne
On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral 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 added both the nodes a

Re: network topology issue

2011-05-11 Thread aaron morton
When creating a multi DC deployment tokens should be evenly distributed in *each* dc, see this recent discussion for an example http://www.mail-archive.com/user@cassandra.apache.org/msg12975.html (I'll also update the wiki when I get time, making a note now) But no two nodes in the global ring c

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 wri

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 Anurag Gujral
Thanks Sameer for your answer. I am using two DCs DC1 , DC2 with both having one node each, my straegy_options values are DC1:1,DC2:1 I am not sure what my RF should be , should it be 1 or 2? Please Advise Thanks Anurag On Wed, May 11, 2011 at 5:27 PM, Sameer Farooqui wrote: > Anurag, > > The Ca

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 C

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