Skip to content

Commit

Permalink
docs: fix format for TiKV and PD configuration file template invalid. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Aug 20, 2021
1 parent 0c10e29 commit d645b6d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,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:
Expand All @@ -79,13 +79,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 <cluster-name>`. Because the parameter configuration of `global` and `server_configs` is inherited by `scale-out.yaml` and thus also takes effect in `scale-out.yaml`.
Expand Down

0 comments on commit d645b6d

Please sign in to comment.