Re: Multiple data center performance

2013-06-12 Thread Alain RODRIGUEZ
counter will replicate to all replicas during write regardless the consistency level I that the normal behavior or a bug ? 2013/6/11 Daning Wang dan...@netseer.com It is counter caused the problem. counter will replicate to all replicas during write regardless the consistency level. In our

Re: Multiple data center performance

2013-06-12 Thread Sylvain Lebresne
It is the normal behavior, but that's true of any update, not only of counters. The consistency level does *not* influence which replica are written to. Cassandra always write to all replicas. The consistency level only decides how replica acknowledgement are waited for. -- Sylvain On Wed, Jun

Re: Multiple data center performance

2013-06-12 Thread Alain RODRIGUEZ
The consistency level does *not* influence which replica are written to. Cassandra always write to all replicas. I am aware of this. My understanding of what Daning said was that client waited for all nodes to acknowledge the write before considering it successful (inducing extra latency) for

Re: Multiple data center performance

2013-06-12 Thread Sylvain Lebresne
Is there something special of this kind regarding counters over multiDC ? No. Counters behave exactly as other writes as far the consistency level is concerned. Technically, the counter write path is different from the normal write path in the sense that a counter write will be written to one

Re: Multiple data center performance

2013-06-12 Thread Alain RODRIGUEZ
Crystal clear, we use a lot of counters and I am always happy to learn this kind of things. Thanks a lot. Alain 2013/6/12 Sylvain Lebresne sylv...@datastax.com Is there something special of this kind regarding counters over multiDC ? No. Counters behave exactly as other writes as far the

Re: Multiple data center performance

2013-06-12 Thread Daning Wang
Sorry for the confusion. Sylvain - Do you think what could cause the client higher latency in multiDC(CL=one for read and write) ? clients only connect to nodes in the same DC. we did see the performance greatly improved after changing the replication factor for counters, but still slower than

Re: Multiple data center performance

2013-06-11 Thread Daning Wang
It is counter caused the problem. counter will replicate to all replicas during write regardless the consistency level. In our case. we don't need to sync the counter across the center. so moving counter to new keyspace and all the replica in one center solved problem. There is option

Re: Multiple data center performance

2013-06-08 Thread srmore
I am seeing the similar behavior, in my case I have 2 nodes in each datacenter and one node always has high latency (equal to the latency between the two datacenters). When one of the datacenters is shutdown the latency drops. I am curious to know whether anyone else has these issues and if yes