TiDB Cluster Network Disconnection Test

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

Original topic: TIDB集群断网测试

| username: lutong

In a TiDB cluster with four servers, 209 is the master control, and servers 201, 202, and 203 all have PD, TiKV, TiFlash, and TiDB installed. During a network disconnection test, the cluster operates normally when 201 and 203 are disconnected, but the cluster becomes unusable when 202 is disconnected.

| username: wuxiangdong | Original post link

The MySQL client failed to connect to 201:4000 and 203:4000.

| username: lutong | Original post link

201:4000 and 203:4000 can be connected, but not through haproxy load balancing. After the other two machines are powered off, haproxy load balancing works.

| username: 数据小黑 | Original post link

What error is reported in the haproxy-related logs?