github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/master/task_basic.yaml (about) 1 --- 2 name: test # global unique 3 task-mode: all # full/incremental/all 4 5 target-database: 6 host: "192.168.0.1" 7 port: 4000 8 user: "root" 9 password: "" 10 11 mysql-instances: # one or more source database, config more source database for sharding merge 12 - 13 source-id: "instance118-4306" # unique in all instances, used as id when save checkpoints, configs, etc. 14 block-allow-list: "instance" 15 16 # number of threads to use for dump data 17 mydumper-thread: 4 18 19 # number of threads to use for load data 20 loader-thread: 16 21 22 # number of threads to use for replicate binlog 23 syncer-thread: 16 24 25 - 26 source-id: "instance118-5306" 27 block-allow-list: "instance" 28 29 # number of threads to use for dump data 30 mydumper-thread: 4 31 32 # number of threads to use for load data 33 loader-thread: 16 34 35 # number of threads to use for replicate binlog 36 syncer-thread: 16 37 38 block-allow-list: 39 instance: 40 do-dbs: ["~^test.*", "do"] # allow list of upstream schemas needs to be replicated, regular expression (starts with ~) is supported 41 do-tables: # allow list of upstream tables needs to be replicated, (db-name, tbl-name) regular expression (starts with ~) is supported 42 - db-name: "~^test.*" 43 tbl-name: "~^t.*" 44 - db-name: "do" 45 tbl-name: "do" 46