Skip to content

Commit

Permalink
drainer: update config template (#8615) (#10892)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Aug 15, 2022
1 parent 2c224bd commit de35fa7
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion config-templates/complex-tidb-binlog.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 @@ -128,6 +128,29 @@ drainer_servers:
syncer.to.user: "root"
syncer.to.password: ""
syncer.to.port: 4000
syncer.to.checkpoint:
schema: "tidb_binlog"
type: "tidb"
host: "10.0.1.14"
user: "root"
password: "123"
port: 4000
- host: 10.0.1.13
port: 8249
deploy_dir: "/tidb-deploy/drainer-8249"
data_dir: "/tidb-data/drainer-8249"
# If Drainer does not have a checkpoint, use the initial commitTS as the initial checkpoint.
# If commit_ts is set to -1 (the default value), you will get a latest timestamp from PD.
commit_ts: -1
# The following configurations are used to overwrite the `server_configs.drainer` values.
config:
syncer.db-type: "kafka"
syncer.replicate-do-db:
- db1
- db2
syncer.to.kafka-addrs: "10.0.1.20:9092,10.0.1.21:9092,10.0.1.22:9092"
syncer.to.kafka-version: "2.4.0"
syncer.to.topic-name: "asyouwish"

monitoring_servers:
- host: 10.0.1.10
Expand Down

0 comments on commit de35fa7

Please sign in to comment.