---
name: test
task-mode: all
is-sharding: false
meta-schema: "dm_meta"

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

mysql-instances:
  - source-id: "mysql-replica-01"
    black-white-list:  "instance" # compatible with deprecated config
    mydumper-config-name: "global"
    loader-config-name: "global"
    syncer-config-name: "global"
    filter-rules: ["user-filter-1"]

black-white-list: # compatible with deprecated config
  instance:
    do-dbs: ["tracker_ignored_ddl"]

filters:                     # filter rules, mysql instance can ref rules in it
  user-filter-1:
    schema-pattern: "*"    # pattern of the upstream schema name, wildcard characters (*?) are supported
    table-pattern: "*"        # pattern of the upstream table name, wildcard characters (*?) are supported
    events: ["alter table"]  # ignore alter table ddl
    action: Ignore

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
    enable-ansi-quotes: false  # compatible with deprecated config
    checkpoint-flush-interval: 1
