Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb 集群region 是怎么迁移的
|
username: Raymond
Excuse me,
For example, if I expand my TiDB cluster with several TiKVs, it will inevitably migrate regions to these new TiKVs. I think the migration process is:
- First, take a snapshot of the corresponding region at a certain point in time, move this snapshot to the new TiKV, the new TiKV imports the snapshot of the corresponding region, and then the incremental data is synchronized through the Raft log.
My question is how this snapshot is formed. Is it formed by logically scanning the key-value pairs in this region or by other means? Are there any relevant technical articles for reference? Thank you.