Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Oleksandr Shulgin
On Thu, Jan 16, 2020 at 3:18 PM Laxmikant Upadhyay wrote: > > You are right, that will solve the problem. but unfortunately i won't be > able to meet my sla with write each quorum . I am using local quorum for > both read and write. > Any other way ? > Is you read SLO more sensitive than write S

Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Jean Carlo
Hello Laxmiant, your application has to deal with eventually consistency if you are using cassandra. Ensure to have R + W > RF And have the repairs runing periodically. This is the best way to be the most cosistent and coherent Jean Carlo "The best way to predict the future is to invent it" Al

Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Laxmikant Upadhyay
Hi Alex, You are right, that will solve the problem. but unfortunately i won't be able to meet my sla with write each quorum . I am using local quorum for both read and write. Any other way ? On Thu, Jan 16, 2020, 5:45 PM Oleksandr Shulgin < oleksandr.shul...@zalando.de> wrote: > On Thu, Jan 16

Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Oleksandr Shulgin
On Thu, Jan 16, 2020 at 1:04 PM Laxmikant Upadhyay wrote: > Hi, > What I meant fromActive/standby model is that even though data is being > replicated (asynchronously) to standby DC , client will only access the > data from active DC (let's say using local_quorum). > > you have "to switch" your

Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Laxmikant Upadhyay
Hi, What I meant fromActive/standby model is that even though data is being replicated (asynchronously) to standby DC , client will only access the data from active DC (let's say using local_quorum). you have "to switch" your clients without any issues since your writes are replicated on all DC.

Re: How to assure data consistency in switch over to standby dc

2020-01-16 Thread Ahmed Eljami
Hello, What do you mean by active/standby model ? Cassandra is designed to be active/active inter DC. So you have "to switch" your clients without any issues since your writes are replicated on all DC. Unless you would mean by active/standby that the keyspace is not replicated on the second DC ?

How to assure data consistency in switch over to standby dc

2020-01-16 Thread Laxmikant Upadhyay
We have 2 dc in active/standby model. At any given point if we want to switch to standby dc, how will we make sure that data is consistent with active site? Note that repair runs at its scheduled time. I am thinking of below approaches : 1.Before switching run the repair (although it assure cons