From d41cd904c75941e50475141304f5fbed8010b47c Mon Sep 17 00:00:00 2001 From: Enwei Date: Wed, 9 Mar 2022 13:41:49 +0800 Subject: [PATCH] 2dc: add config descriptions (#7796) --- two-data-centers-in-one-city-deployment.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/two-data-centers-in-one-city-deployment.md b/two-data-centers-in-one-city-deployment.md index e92eff67bdeb2..5ced6853c113b 100644 --- a/two-data-centers-in-one-city-deployment.md +++ b/two-data-centers-in-one-city-deployment.md @@ -155,6 +155,14 @@ cat rule.json ] ``` +To use the configurations in `rule.json`, override the existing configurations by running the following command: + +{{< copyable "shell-regular" >}} + +```bash +pd-ctl config placement-rules rule-bundle save --in="rule.json" +``` + ### Enable the DR Auto-Sync mode The replication mode is controlled by PD. When deploying a cluster, you can configure the replication mode in the PD configuration file. For example: