Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[close #211] add config templates #212

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cdc/deployments/tikv-cdc/config-templates/scale-out.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tikv-cdc_servers:
- host: 10.0.1.20
# # SSH port of the server.
# ssh_port: 22
# # TiKV-CDC Server communication port.
# port: 8600
# # TiKV-CDC Server data storage directory.
# data_dir: "/data1/tidb-data/tikv-cdc-8600"
# # TiKV-CDC Server log file storage directory.
# log_dir: "/data1/tidb-deploy/tikv-cdc-8600/log"
- host: 10.0.1.21
- host: 10.0.1.22
87 changes: 87 additions & 0 deletions cdc/deployments/tikv-cdc/config-templates/topology.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# # Global variables are applied to all deployments and used as the default value of
# # the deployments if a specific deployment value is missing.
global:
# # The user who runs the tidb cluster.
user: "tidb"
# # group is used to specify the group name the user belong to,if it's not the same as user.
# group: "tidb"
# # SSH port of servers in the managed cluster.
ssh_port: 22
# # Storage directory for cluster deployment files, startup scripts, and configuration files.
deploy_dir: "/tidb-deploy"
# # TiDB Cluster data storage directory
data_dir: "/tidb-data"
# # Supported values: "amd64", "arm64" (default: "amd64")
arch: "amd64"

# # Monitored variables are applied to all the machines.
monitored:
# # The communication port for reporting system information of each node in the TiDB cluster.
node_exporter_port: 9100
# # Blackbox_exporter communication port, used for TiDB cluster port monitoring.
blackbox_exporter_port: 9115

# # Server configs are used to specify the runtime configuration of TiDB components.
# # All configuration items can be found in TiDB docs:
# # - TiDB: https://pingcap.com/docs/stable/reference/configuration/tidb-server/configuration-file/
# # - TiKV: https://pingcap.com/docs/stable/reference/configuration/tikv-server/configuration-file/
# # - PD: https://pingcap.com/docs/stable/reference/configuration/pd-server/configuration-file/
# # - TiKV-CDC: https://github.com/tikv/migration/blob/main/cdc/README.md
# #
# # All configuration items use points to represent the hierarchy, e.g:
# # readpool.storage.use-unified-pool
# # ^ ^
# # - example: https://github.com/pingcap/tiup/blob/master/embed/examples/cluster/topology.example.yaml
# # You can overwrite this configuration via the instance-level `config` field.
server_configs:
# tidb:
tikv:
storage.api-version: 2
storage.enable-ttl: true
# pd:
# tikv-cdc:
# gc-ttl: 86400 # The TTL (Time To Live) of the service level `GC safepoint` in PD set by TiKV-CDC

# # Server configs are used to specify the configuration of PD Servers.
pd_servers:
- host: 10.0.1.11
- host: 10.0.1.12
- host: 10.0.1.13

# # Server configs are used to specify the configuration of TiDB Servers.
tidb_servers:
- host: 10.0.1.14
- host: 10.0.1.14

# # Server configs are used to specify the configuration of TiKV Servers.
tikv_servers:
- host: 10.0.1.16
- host: 10.0.1.16
- host: 10.0.1.17
- host: 10.0.1.17

# # Server configs are used to specify the configuration of TiKV-CDC Servers.
tikv-cdc_servers:
- host: 10.0.1.20
# # SSH port of the server.
# ssh_port: 22
# # TiKV-CDC Server communication port.
# port: 8600
# # TiKV-CDC Server data storage directory.
# data_dir: "/data1/tidb-data/tikv-cdc-8600"
# # TiKV-CDC Server log file storage directory.
# log_dir: "/data1/tidb-deploy/tikv-cdc-8600/log"
- host: 10.0.1.21
- host: 10.0.1.22

# # Server configs are used to specify the configuration of Prometheus Server.
monitoring_servers:
- host: 10.0.1.21

# # Server configs are used to specify the configuration of Grafana Servers.
grafana_servers:
- host: 10.0.1.21

# # Server configs are used to specify the configuration of Alertmanager Servers.
alertmanager_servers:
- host: 10.0.1.21