Skip to content

Commit

Permalink
dr-autosync: add configuration description (#17057) (#17105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Apr 10, 2024
1 parent a54d2ed commit 449238b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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"
pause-region-split = false
```

- Method 2: If you have deployed a cluster, use pd-ctl commands to modify the configurations of PD.
Expand All @@ -240,8 +241,9 @@ Descriptions of configuration items:
+ `replication-mode` is the replication mode to be enabled. In the preceding example, it is set to `dr-auto-sync`. By default, the majority protocol is used.
+ `label-key` is used to distinguish different AZs and needs to match Placement Rules. In this example, the primary AZ is "east" and the disaster recovery AZ is "west".
+ `primary-replicas` is the number of Voter replicas in the primary AZ.
+ `dr-replicas` is the number of Voter replicas in the disaster recovery 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.
+ `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 449238b

Please sign in to comment.