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

     1  ---
     2  name: pre_check
     3  task-mode: all
     4  is-sharding: true
     5  meta-schema: "dm_meta"
     6  enable-heartbeat: false
     7  online-ddl: true
     8  
     9  target-database:
    10    host: "127.0.0.1"
    11    port: 4000
    12    user: "root"
    13    password: ""
    14  
    15  mysql-instances:
    16    - source-id: "mysql-replica-01"
    17      block-allow-list:  "instance"
    18      route-rules: ["sharding-route-rules-table", "sharding-route-rules-schema"]
    19      mydumper-config-name: "global"
    20      loader-config-name: "global"
    21      syncer-config-name: "global"
    22  
    23    - source-id: "mysql-replica-02"
    24      block-allow-list:  "instance"
    25      route-rules: ["sharding-route-rules-table", "sharding-route-rules-schema"]
    26      mydumper-config-name: "global"
    27      loader-config-name: "global"
    28      syncer-config-name: "global"
    29  
    30  block-allow-list:
    31    instance:
    32      do-dbs: ["dmctl"]
    33      do-tables:
    34      -  db-name: "dmctl"
    35         tbl-name: "~^tb_[\\d]+"
    36  
    37  routes:
    38    sharding-route-rules-table:
    39      schema-pattern: dmctl
    40      table-pattern: tb_*
    41      target-schema: dmctl
    42      target-table: tb
    43  
    44    sharding-route-rules-schema:
    45      schema-pattern: dmctl
    46      target-schema: dmctl
    47  
    48  mydumpers:
    49    global:
    50      threads: 4
    51      chunk-filesize: 64
    52      skip-tz-utc: true
    53      extra-args: ""
    54  
    55  loaders:
    56    global:
    57      pool-size: 16
    58      dir: "./dumped_data"
    59  
    60  syncers:
    61    global:
    62      worker-count: 16
    63      batch: 100
    64      checkpoint-flush-interval: 1