Using each and local consistencies here gives you some safety in the transient 
steps but also suggests you have control over when you move traffic 

Is all traffic going to the first DC while you add the second?
If so, set RF=3 and run repair before you move traffic

If you were using quorum instead of local, you’d:
- go from RF=0 to 1 in the new DC
- run rebuild, then run full or incremental repair (4.0+)
- go from rf=1 to 2, then rebuild then repair
- go from rf=2 to 3 then rebuild then repair

Tearing down a dc do the inverse

But again, using each and local here is pretty safe - you’re confining your 
reads to where you query and you can do a single rebuild 
 + repair after going to 3 


> On Nov 25, 2021, at 11:53 AM, Sam Kramer <sam.c.kra...@gmail.com> wrote:
> 
> 
> Hi both, thank you for your responses!
> 
> Yes Jeff, we expect strictly correct responses. Our starting / ending 
> topologies are near-identical (DC1: A/B/C, DC2: A/B/C), and reads are 
> performed at LOCAL_QUORUM, while writes are done at EACH_QUORUM or ALL.
> 
> Thanks,
> Sam
> 
>> On Thu, Nov 25, 2021 at 9:38 AM Jeff Jirsa <jji...@gmail.com> wrote:
>> The risk is not negligible if you expect strictly correct responses
>> 
>> The only way to do this correctly is very, very labor intensive at the 
>> moment, and it requires repair between rebuilds and incrementally adding 
>> replicas such that you don’t violate consistency 
>> 
>> If you give me the starting topology, ending topology, and what consistency 
>> level you use for reads and writes I’ll describe the changes you have to do 
>> to do this safely
>> 
>> 
>> 
>>>> On Nov 25, 2021, at 8:49 AM, Erick Ramirez <erick.rami...@datastax.com> 
>>>> wrote:
>>>> 
>>> 
>>> Yes, you are correct that the source may not necessarily be fully 
>>> consistent. But this risk is negligible if your cluster is sized-correctly 
>>> and nodes are not dropping mutations.
>>> 
>>> If your nodes are dropping mutations because they're overloaded and cannot 
>>> keep up with writes, rebuild is probably the least of your problems. Cheers!

Reply via email to