Skip to content

Commit

Permalink
TiUP cluster: update data_dir (#6009)
Browse files Browse the repository at this point in the history
  • Loading branch information
en-jin19 authored Jul 23, 2021
1 parent 10e060b commit b30afa5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config-templates/complex-cdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ monitored:
# # - PD: https://pingcap.com/docs/stable/reference/configuration/pd-server/configuration-file/
# # All configuration items use points to represent the hierarchy, e.g:
# # readpool.storage.use-unified-pool
# #
# #
# # You can overwrite this configuration via the instance-level `config` field.

server_configs:
Expand Down Expand Up @@ -96,14 +96,17 @@ cdc_servers:
- host: 10.0.1.1
port: 8300
deploy_dir: "/tidb-deploy/cdc-8300"
data_dir: "/tidb-data/cdc-8300"
log_dir: "/tidb-deploy/cdc-8300/log"
- host: 10.0.1.2
port: 8300
deploy_dir: "/tidb-deploy/cdc-8300"
data_dir: "/tidb-data/cdc-8300"
log_dir: "/tidb-deploy/cdc-8300/log"
- host: 10.0.1.3
port: 8300
deploy_dir: "/tidb-deploy/cdc-8300"
data_dir: "/tidb-data/cdc-8300"
log_dir: "/tidb-deploy/cdc-8300/log"

monitoring_servers:
Expand Down
3 changes: 3 additions & 0 deletions tiup/tiup-cluster-topology-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ drainer_servers:

- `deploy_dir`: Specifies the deployment directory. If it is not specified or specified as a relative directory, the directory is generated according to the `deploy_dir` directory configured in `global`.

- `data_dir`:Specifies the data directory. If it is not specified or specified as a relative directory, the directory is generated according to the `data_dir` directory configured in `global`.

- `log_dir`: Specifies the log directory. If it is not specified or specified as a relative directory, the log is generated according to the `log_dir` directory configured in `global`.

- `gc-ttl`: The Time To Live (TTL) duration of the service level GC safepoint set by TiCDC in PD, in seconds. The default value is `86400`, which is 24 hours.
Expand All @@ -514,6 +516,7 @@ For the above fields, you cannot modify these configured fields after the deploy
- `host`
- `port`
- `deploy_dir`
- `data_dir`
- `log_dir`
- `gc-ttl`
- `tz`
Expand Down

0 comments on commit b30afa5

Please sign in to comment.