Re: Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-17 Thread aaron morton
See the bug report, implementations of IPartitioner.describeOwnership() Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 18/08/2011, at 2:58 AM, Oleg Tsvinev wrote: > Aaron, > > Can you point to a line in Cassandra sources where y

Re: Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-17 Thread Oleg Tsvinev
Aaron, Can you point to a line in Cassandra sources where you believe it does not understand the "multi ring" approach? I'm not sure about Cassandra team but Hector team likes pull requests with patches. Anyways, I believe I should run a test to see if data is indeed replicated between datacenters

Re: Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-17 Thread aaron morton
The calculation for ownership does not understand the "multi ring" approach to assigning tokens. I've created https://issues.apache.org/jira/browse/CASSANDRA-3047 for you. Otherwise your tokens look good to me. Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton

Re: Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-16 Thread Oleg Tsvinev
Hi all, I followed instructions here: http://wiki.apache.org/cassandra/Operations#Token_selection to create a Cassandra cluster spanning two datacenters. Now I see that nodes belonging to DC2 datacenter own 0% of the ring. I would expect them to own 50%. Does anyone have an idea what's going on h

Re: Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-15 Thread Jeremiah Jordan
Assign the tokens like they are two separate rings, just make sure you don't have any duplicate tokens. http://wiki.apache.org/cassandra/Operations#Token_selection The two datacenters are treated as separate rings, LOCAL_QUORUM will only delay the client as long as it takes to write the data to

Cassandra in Multiple Datacenters Active - Standby configuration

2011-08-15 Thread Oleg Tsvinev
Hi all, I have a question that documentation has not clear answer for. I have the following requirements: 1. Synchronously store data in datacenter DC1 on 2+ nodes 2. Asynchronously replicate the same data to DC2 and store it on 2+ nodes to act as a hot standby Now, I have configured keyspaces w