---
name: test2
task-mode: all
is-sharding: false
meta-schema: "dm_meta"
# enable-heartbeat: true

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

mysql-instances:
  - source-id: "mysql-replica-01"
    block-allow-list:  "instance"
    mydumper-config-name: "global"
    loader-config-name: "global"
    syncer-config-name: "global"
    route-rules: [ "route-rule-1", "route-rule-2" ]

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

routes:
  route-rule-1:
    schema-pattern: "many_tables_db"
    table-pattern: "t*"
    target-schema: "merge_many_tables_db"
    target-table: "t"
  route-rule-2:
    schema-pattern: "many_tables_db"
    target-schema: "merge_many_tables_db"

mydumpers:
  global:
    threads: 4
    chunk-filesize: 0
    skip-tz-utc: true
    statement-size: 100
    extra-args: ""

loaders:
  global:
    pool-size: 16
    dir: "./dumped_data"
    import-mode: "physical"
    disk-quota-physical: 1GB

syncers:
  global:
    worker-count: 16
    batch: 100
