Skip to content

Commit

Permalink
dr-autosync: add configuration description (#17106) (#17120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Apr 10, 2024
1 parent f1e75da commit a928707
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions two-data-centers-in-one-city-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,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
```

Expand All @@ -243,6 +244,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:
Expand Down

0 comments on commit a928707

Please sign in to comment.