Re: Benefit of LOCAL_SERIAL consistency

2016-12-08 Thread Sylvain Lebresne
On Fri, Dec 9, 2016 at 1:35 AM, Edward Capriolo wrote: > > I copied the wrong issue: > > The core issue was this: https://issues.apache. > org/jira/browse/CASSANDRA-6123 > Well, my previous remark applies equally well to this ticket so let me just copy-paste: "That ticket

Re: Benefit of LOCAL_SERIAL consistency

2016-12-08 Thread Edward Capriolo
On Thu, Dec 8, 2016 at 5:10 AM, Sylvain Lebresne wrote: > > The reason you don't want to use SERIAL in multi-DC clusters > > I'm not a fan of blanket statements like that. There is a high cost to > SERIAL > consistency in multi-DC setups, but if you *need* global

Re: Benefit of LOCAL_SERIAL consistency

2016-12-08 Thread Sylvain Lebresne
> The reason you don't want to use SERIAL in multi-DC clusters I'm not a fan of blanket statements like that. There is a high cost to SERIAL consistency in multi-DC setups, but if you *need* global linearizability, then you have no choice and the latency may be acceptable for your use case. Take

Re: Benefit of LOCAL_SERIAL consistency

2016-12-07 Thread Hiroyuki Yamada
Hi DuyHai, Thank you for the comments. Yes, that's exactly what I mean. (Your comment is very helpful to support my opinion.) As you said, SERIAL with multi-DCs incurs latency increase, but it's a trade-off between latency and high availability bacause one DC can be down from a disaster. I don't

Re: Benefit of LOCAL_SERIAL consistency

2016-12-07 Thread Edward Capriolo
On Wed, Dec 7, 2016 at 8:25 AM, DuyHai Doan wrote: > The reason you don't want to use SERIAL in multi-DC clusters is the > prohibitive cost of lightweight transaction (in term of latency), > especially if your data centers are separated by continents. A ping from > London

Re: Benefit of LOCAL_SERIAL consistency

2016-12-07 Thread DuyHai Doan
The reason you don't want to use SERIAL in multi-DC clusters is the prohibitive cost of lightweight transaction (in term of latency), especially if your data centers are separated by continents. A ping from London to New York takes 52ms just by speed of light in optic cable. Since LightWeight