Skip to content

Commit 5971959

Browse files
authoredJul 23, 2021
Add kafka downstream example (#6005)
1 parent b30afa5 commit 5971959

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed
 

‎config-templates/complex-tidb-binlog.yaml

+24-8
Original file line numberDiff line numberDiff line change
@@ -92,43 +92,59 @@ pump_servers:
9292
- host: 10.0.1.1
9393
ssh_port: 22
9494
port: 8250
95-
deploy_dir: "/tidb-deploy/pump-8249"
96-
data_dir: "/tidb-data/pump-8249"
95+
deploy_dir: "/tidb-deploy/pump-8250"
96+
data_dir: "/tidb-data/pump-8250"
9797
# The following configs are used to overwrite the `server_configs.pump` values.
9898
config:
9999
gc: 7
100100
- host: 10.0.1.2
101101
ssh_port: 22
102102
port: 8250
103-
deploy_dir: "/tidb-deploy/pump-8249"
104-
data_dir: "/tidb-data/pump-8249"
103+
deploy_dir: "/tidb-deploy/pump-8250"
104+
data_dir: "/tidb-data/pump-8250"
105105
# The following configs are used to overwrite the `server_configs.pump` values.
106106
config:
107107
gc: 7
108108
- host: 10.0.1.3
109109
ssh_port: 22
110110
port: 8250
111-
deploy_dir: "/tidb-deploy/pump-8249"
112-
data_dir: "/tidb-data/pump-8249"
111+
deploy_dir: "/tidb-deploy/pump-8250"
112+
data_dir: "/tidb-data/pump-8250"
113113
# The following configs are used to overwrite the `server_configs.pump` values.
114114
config:
115115
gc: 7
116116
drainer_servers:
117117
- host: 10.0.1.12
118118
port: 8249
119+
deploy_dir: "/tidb-deploy/drainer-8249"
119120
data_dir: "/tidb-data/drainer-8249"
120121
# If drainer doesn't have a checkpoint, use initial commitTS as the initial checkpoint.
121122
# Will get a latest timestamp from pd if commit_ts is set to -1 (the default value).
122123
commit_ts: -1
123-
deploy_dir: "/tidb-deploy/drainer-8249"
124124
# The following configs are used to overwrite the `server_configs.drainer` values.
125125
config:
126126
syncer.db-type: "tidb"
127127
syncer.to.host: "10.0.1.12"
128128
syncer.to.user: "root"
129129
syncer.to.password: ""
130130
syncer.to.port: 4000
131-
131+
- host: 10.0.1.13
132+
port: 8249
133+
deploy_dir: "/tidb-deploy/drainer-8249"
134+
data_dir: "/tidb-data/drainer-8249"
135+
# If Drainer does not have a checkpoint, use the initial commitTS as the initial checkpoint.
136+
# If commit_ts is set to -1 (the default value), you will get a latest timestamp from PD.
137+
commit_ts: -1
138+
# The following configurations are used to overwrite the `server_configs.drainer` values.
139+
config:
140+
syncer.db-type: "kafka"
141+
syncer.replicate-do-db:
142+
- db1
143+
- db2
144+
syncer.to.kafka-addrs: "10.0.1.20:9092,10.0.1.21:9092,10.0.1.22:9092"
145+
syncer.to.kafka-version: "0.10.0.0"
146+
syncer.to.topic-name: "asyouwish"
147+
132148
monitoring_servers:
133149
- host: 10.0.1.10
134150
# ssh_port: 22

0 commit comments

Comments
 (0)