Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 如果TiKV 中三个node 挂了两个,剩下的一个node中的数据还是全的吗?再添加两个新的node可以恢复可用吗?

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.0
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 如果TiKV 中三个node 挂了两个,剩下的一个node中的数据还是全的吗?再添加两个新的node可以恢复可用吗?
[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.0
Sure, refer to the documentation and operations for backup recovery:
It can be restored, but there is no guarantee that no data will be lost.
The Raft protocol considers a write committed once two out of three replicas have written it. Therefore, the third replica might or might not have written it, so if two replicas fail, there is a possibility of losing some data.
When two nodes in TiKV go down, the data in the remaining node may be affected.
According to the Raft theory, data might be lost. Is my understanding correct?
Refer to the first-floor document for lossy recovery. Hopefully, there will be no data loss.
RAFT consensus protocol might lose data. The person above is correct.
Raft logic: If 2 out of 3 Raft nodes receive the log, it can be committed. If 2 out of 3 nodes fail, there are two scenarios: one where some data might be lost, and one where no data is lost.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.