How to Achieve Automatic Failover for Multiple TiDB Services?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 多个tidb service如何完成灾容自动切换功能?

| username: TiDBer_evEvCK4C

How can the TiDB service achieve automatic disaster recovery switching when deploying the cluster on three servers in a two-site three-center manner?

| username: 裤衩儿飞上天 | Original post link

Try using HAProxy.

| username: 我是咖啡哥 | Original post link

The TiDB server is stateless, so load balancers like LVS and F5 can be used.

| username: Raymond | Original post link

The TiDB server itself does not have high availability features. Generally, F5 and HAProxy are used for load balancing. The application connects to the IP of F5 or HAProxy, and then forwards the request to the backend TiDB. If one of the backend TiDBs goes down, F5 or HAProxy will not forward requests to the downed TiDB.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.