forked from AstroProfundis/tiops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
topology.example.yaml
173 lines (160 loc) · 4.76 KB
/
topology.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# # Global variables are applied to all deployments and as the default value of
# # them if the specific deployment value missing.
global:
user: "tidb"
ssh_port: 22
deploy_dir: "deploy"
data_dir: "data"
# # Monitored variables are used to
# monitored:
# node_exporter_port: 9100
# blackbox_exporter_port: 9115
# deploy_dir: "deploy/monitored-9100"
# data_dir: "data/monitored-9100"
# log_dir: "deploy/monitored-9100/log"
# # 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/
# # All configuration items use points to represent the hierarchy, e.g:
# # readpool.storage.use-unified-pool
# # ^ ^
# # You can overwrite this configuration via instance-level `config` field
server_configs:
tidb:
binlog.enable: false
binlog.ignore-error: false
tikv:
readpool.storage.low-concurrency: 8
server.labels:
zone: sh
dc: sha
rack: rack1
host: host1
pd:
replication.enable-placement-rules: true
label-property:
reject-leader:
- key: "dc"
value: "bja"
pump:
gc: 7
pd_servers:
- host: 10.0.1.11
# ssh_port: 22
# name: "pd-1"
# client_port: 2379
# peer_port: 2380
# deploy_dir: "deploy/pd-2379"
# data_dir: "data/pd-2379"
# log_dir: "deploy/pd-2379/log"
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.pd` values
# config:
# schedule.max-merge-region-size: 20
# schedule.max-merge-region-keys: 200000
- host: 10.0.1.12
- host: 10.0.1.13
tidb_servers:
- host: 10.0.1.11
# ssh_port: 22
# port: 4000
# status_port: 10080
# deploy_dir: "deploy/tidb-4000"
# log_dir: "deploy/tidb-4000/log"
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.tidb` values
# config:
# log.level: warn
# log.slow-query-file: tidb-slow-overwrited.log
- host: 10.0.1.12
tikv_servers:
- host: 10.0.1.14
# ssh_port: 22
# port: 20160
# status_port: 20180
# deploy_dir: "deploy/tikv-20160"
# data_dir: "data/tikv-20160"
# log_dir: "deploy/tikv-20160/log"
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.tikv` values
# config:
# server.labels:
# zone: sh
# dc: sha
# rack: rack1
# host: host1
- host: 10.0.1.15
- host: 10.0.1.16
tiflash_servers:
- host: 10.0.1.14
# ssh_port: 22
# tcp_port: 9000
# http_port: 8123
# flash_service_port: 3930
# flash_proxy_port: 20170
# flash_proxy_status_port: 20292
# metrics_port: 8234
# deploy_dir: deploy/tiflash-9000
# data_dir: deploy/tiflash-9000/data
# log_dir: deploy/tiflash-9000/log
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.tiflash` values
# config:
# logger:
# level: "info"
# learner_config:
# log-level: "info"
- host: 10.0.1.15
- host: 10.0.1.16
# pump_servers:
# - host: 10.0.1.17
# ssh_port: 22
# port: 8250
# deploy_dir: "deploy/pump-8249"
# data_dir: "data/pump-8249"
# log_dir: "deploy/pump-8249/log"
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.drainer` values
# config:
# gc: 7
# - host: 10.0.1.18
# - host: 10.0.1.19
# drainer_servers:
# - host: 10.0.1.17
# port: 8249
# data_dir: "data/drainer-8249"
# # if drainer doesn't have checkpoint, use initial commitTS to initial checkpoint
# # will get a latest timestamp from pd if setting to be -1 (default -1)
# commit_ts: -1
# deploy_dir: "deploy/drainer-8249"
# log_dir: "deploy/drainer-8249/log"
# numa_node: "0,1"
# # Config is used to overwrite the `server_configs.drainer` values
# config:
# syncer.db-type: "mysql"
# syncer.to.host: "127.0.0.1"
# syncer.to.user: "root"
# syncer.to.password: ""
# syncer.to.port: 3306
# - host: 10.0.1.19
# monitoring_servers:
# - host: 10.0.1.11
# ssh_port: 22
# port: 9090
# deploy_dir: "deploy/prometheus-8249"
# data_dir: "data/prometheus-8249"
# log_dir: "deploy/prometheus-8249/log"
# grafana_servers:
# - host: 10.0.1.11
# port: 3000
# deploy_dir: deploy/grafana-3000
# alertmanager_servers:
# - host: 10.0.1.11
# ssh_port: 22
# web_port: 9093
# cluster_port: 9094
# deploy_dir: "deploy/alertmanager-9093"
# data_dir: "data/alertmanager-9093"
# log_dir: "deploy/alertmanager-9093/log"