github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/downstream_diff_index/conf/dm-task.yaml (about)

     1  ---
     2  name: test
     3  task-mode: all
     4  is-sharding: true
     5  shard-mode: "pessimistic"
     6  meta-schema: "dm_meta"
     7  # enable-heartbeat: true
     8  heartbeat-update-interval: 1
     9  heartbeat-report-interval: 1
    10  
    11  target-database:
    12    host: "127.0.0.1"
    13    port: 4000
    14    user: "root"
    15    password: ""
    16  
    17  mysql-instances:
    18    - source-id: "mysql-replica-01"
    19      black-white-list:  "instance" # compatible with deprecated config
    20      route-rules: [ "downstream-table-rules","downstream-schema-rules" ]
    21      mydumper-config-name: "global"
    22      loader-config-name: "global"
    23      syncer-config-name: "global"
    24  
    25    - source-id: "mysql-replica-02"
    26      black-white-list:  "instance" # compatible with deprecated config
    27      route-rules: [ "downstream-table-rules","downstream-schema-rules" ]
    28      mydumper-config-name: "global"
    29      loader-config-name: "global"
    30      syncer-config-name: "global"
    31  
    32  black-white-list: # compatible with deprecated config
    33    instance:
    34      do-dbs: ["downstream_diff_index*"]
    35  
    36  routes:
    37    downstream-table-rules:
    38      schema-pattern: "downstream_diff_index*"
    39      target-schema: "downstream_diff_index"
    40      table-pattern: "t*"
    41      target-table: "t"
    42    downstream-schema-rules:
    43      schema-pattern: "downstream_diff_index*"
    44      target-schema: "downstream_diff_index"
    45  
    46  mydumpers:
    47    global:
    48      threads: 4
    49      chunk-filesize: 64
    50      skip-tz-utc: true
    51      extra-args: ""
    52  
    53  loaders:
    54    global:
    55      pool-size: 16
    56      dir: "./dumped_data"
    57  
    58  syncers:
    59    global:
    60      worker-count: 16
    61      batch: 100