Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.28 KB

high-availability-faq.md

File metadata and controls

18 lines (11 loc) · 1.28 KB
title summary
High Availability FAQs
Learn about the FAQs related to high availability of TiDB.

High Availability FAQs

This document summarizes the FAQs related to high availability of TiDB.

How is TiDB strongly consistent?

Data is redundantly copied between TiKV nodes using the Raft consensus algorithm to ensure recoverability should a node failure occur.

At the bottom layer, TiKV uses a model of replication log + State Machine to replicate data. For the write requests, the data is written to a Leader and the Leader then replicates the command to its Followers in the form of log. When the majority of nodes in the cluster receive this log, this log is committed and can be applied into the State Machine.

What's the recommended solution for the deployment of three geo-distributed data centers?

The architecture of TiDB guarantees that it fully supports geo-distribution and multi-activeness. Your data and applications are always-on. All the outages are transparent to your applications and your data can recover automatically. The operation depends on the network latency and stability. It is recommended to keep the latency within 5ms. Currently, we already have similar use cases. For details, contact info@pingcap.com.