From ee170265606ca8f29faffed0cb85612b19efc68c Mon Sep 17 00:00:00 2001 From: disksing Date: Wed, 10 Apr 2024 17:13:53 +0800 Subject: [PATCH] dr-autosync: add configuration description (#17106) --- two-data-centers-in-one-city-deployment.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/two-data-centers-in-one-city-deployment.md b/two-data-centers-in-one-city-deployment.md index 1c6d71fc5df6e..6f8268b6e2beb 100644 --- a/two-data-centers-in-one-city-deployment.md +++ b/two-data-centers-in-one-city-deployment.md @@ -221,6 +221,7 @@ The replication mode is controlled by PD. You can configure the replication mode primary-replicas = 3 dr-replicas = 2 wait-store-timeout = "1m" + wait-recover-timeout = "0s" pause-region-split = false ``` @@ -244,6 +245,7 @@ Descriptions of configuration items: + `primary-replicas` is the number of Voter replicas in the primary AZ. + `dr-replicas` is the number of Voter replicas in the disaster recovery (DR) AZ. + `wait-store-timeout` is the waiting time for switching to asynchronous replication mode when network isolation or failure occurs. If the time of network failure exceeds the waiting time, asynchronous replication mode is enabled. The default waiting time is 60 seconds. ++ `wait-recover-timeout` is the waiting time for switching back to the `sync-recover` status after the network recovers. The default value is 0 seconds. + `pause-region-split` controls whether to pause Region split operations in the `async_wait` and `async` statuses. Pausing Region split can prevent temporary partial data loss in the DR AZ when synchronizing data in the `sync-recover` status. The default value is `false`. To check the current replication status of the cluster, use the following API: