foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

Multiple DCs: Do not make a DC primary if it is too far behind the other DC

Open etschannen opened this issue 8 years ago • 0 comments

When a DC goes from being remote to being primary, the transaction logs in that datacenter need to copy all of the data committed to the other datacenter that was not already copied over by previous generations of remote logs.

The transaction logs must finish this copying before accepting new commits, so if there is a lot of data to be copied the database will be unavailable for a long time. In scenarios where both primary and remote DCs are available, the cluster controller must bias against changing the desired primary if the lag between the DCs is too large.

etschannen avatar May 07 '18 18:05 etschannen