---
name: test_relay
task-mode: all
is-sharding: false
meta-schema: "dm_meta"
# enable-heartbeat: true
heartbeat-update-interval: 1
heartbeat-report-interval: 1
clean-dump-file: false

target-database:
  host: "127.0.0.1"
  port: 4000
  user: "root"
  password: ""

mysql-instances:
  - source-id: "mysql-replica-02"
    block-allow-list:  "instance"
    mydumper-config-name: "global"
    loader-config-name: "global"
    syncer-config-name: "global"
    route-rules: ["global-schema", "global-table"]

block-allow-list:
  instance:
    do-dbs: ["dup_event"]

routes:
  global-table:
    schema-pattern: "dup_event"
    table-pattern: "t1"
    target-schema: "dup_event_relay"
    target-table: "t1"
  global-schema:
    schema-pattern: "dup_event"
    target-schema: "dup_event_relay"

mydumpers:
  global:
    threads: 4
    chunk-filesize: 64
    skip-tz-utc: true
    extra-args: ""

loaders:
  global:
    pool-size: 16
    dir: "./dumped_data"

syncers:
  global:
    worker-count: 16
    batch: 100
    checkpoint-flush-interval: 1
