From 09bf75a0e81811ef38dfad3475f58d385e623213 Mon Sep 17 00:00:00 2001 From: Hangjie Mo Date: Fri, 20 Aug 2021 17:06:02 +0800 Subject: [PATCH] docs: fix format for TiKV and PD configuration file template invalid. (#6145) --- scale-tidb-using-tiup.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scale-tidb-using-tiup.md b/scale-tidb-using-tiup.md index 967dd44fbc7c0..9e0651c7ac009 100644 --- a/scale-tidb-using-tiup.md +++ b/scale-tidb-using-tiup.md @@ -65,12 +65,12 @@ If you want to add a TiDB node to the `10.0.1.5` host, take the following steps. ```ini tikv_servers: - host: 10.0.1.5 - ssh_port: 22 - port: 20160 - status_port: 20180 - deploy_dir: /data/deploy/install/deploy/tikv-20160 - data_dir: /data/deploy/install/data/tikv-20160 - log_dir: /data/deploy/install/log/tikv-20160 + ssh_port: 22 + port: 20160 + status_port: 20180 + deploy_dir: /data/deploy/install/deploy/tikv-20160 + data_dir: /data/deploy/install/data/tikv-20160 + log_dir: /data/deploy/install/log/tikv-20160 ``` Here is a PD configuration file template: @@ -80,13 +80,13 @@ If you want to add a TiDB node to the `10.0.1.5` host, take the following steps. ```ini pd_servers: - host: 10.0.1.5 - ssh_port: 22 - name: pd-1 - client_port: 2379 - peer_port: 2380 - deploy_dir: /data/deploy/install/deploy/pd-2379 - data_dir: /data/deploy/install/data/pd-2379 - log_dir: /data/deploy/install/log/pd-2379 + ssh_port: 22 + name: pd-1 + client_port: 2379 + peer_port: 2380 + deploy_dir: /data/deploy/install/deploy/pd-2379 + data_dir: /data/deploy/install/data/pd-2379 + log_dir: /data/deploy/install/log/pd-2379 ``` To view the configuration of the current cluster, run `tiup cluster edit-config `. Because the parameter configuration of `global` and `server_configs` is inherited by `scale-out.yaml` and thus also takes effect in `scale-out.yaml`.