pingcap / pingcap/tidb

what benefits from deploying Tidb in multi-datacenter case

Open
#32,853 1 comment 0 reactions 0 assignees View on GitHub
type/question
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

when we deploy tidb in multi-datacenter case. it definitely provides the benefits of data disaster recovery. but it seems not able to promote write performance or read performance.
according to raft protocol. all writes and reads from client was always proposed to the leader node. followers only receive log entries from leader. it means all clients wherever they are sends request to the leader node. if the raft leader is in datacenter A and some clients in datacenter B, the network latency between datacenter A and datacenter B definitely leads to write latency and read latency.
If we read from followers but write to the leader. the reads from followers maybe follows behind far from the reads from leader. and the write latency across different datacenter still exists.
if we construct raft group separately for each datacenter, data-consistency couldn't be achieved among multi-datacenter.
It seems impossible to achieve strong consistency and high write/read performance when we need multi-datacenter for the business all over the world.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.