You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Etcd and TiKV use a simple implementation for membership change(adding/removing one peer one time when applying the raft log).
This works well most of the time, but sometime it may still have risk, especially when PD does balance.
Eg, three racks 1, 2, and 3, each rack has 2 machines (we use h11, h12 for machines in rack1, and so on). PD first schedules three peers p1, p2, p3 to h11, h21, and h31, then it finds that h11 has a high load, so it decides to add a new peer p4 to h12 and remove p1 in h11.
If rack 1 is down after adding p4, the region can't supply service. especially if this region is a very important region, it may affect high availability. To avoid this, we must add p4 and remove p1 atomically, but now, we can't support it.
Activity
zhangjinpeng87 commentedon Jun 17, 2020
/assign
solotzg commentedon Sep 28, 2020
TiFlash has supported joint consensus in pingcap/tiflash#1122