github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/sharding/conf/diff_config.toml (about)

     1  # diff Configuration.
     2  
     3  check-thread-count = 4
     4  
     5  export-fix-sql = true
     6  
     7  [task]
     8      output-dir = "/tmp/ticdc_dm_test/output"
     9  
    10      source-instances = ["mysql1", "mysql2"]
    11  
    12      target-instance = "tidb0"
    13  
    14      target-check-tables = ["db_target.t_target"]
    15  
    16      target-configs= ["config1"]
    17  
    18  [routes.rule1]
    19  schema-pattern = "sharding1"#pattern1
    20  table-pattern = "t?*"
    21  target-schema = "db_target"
    22  target-table = "t_target"
    23  
    24  [routes.rule2]
    25  schema-pattern = "sharding1"#pattern2
    26  table-pattern = "t?*"
    27  target-schema = "db_target"
    28  target-table = "t_target"
    29  
    30  
    31  [table-configs]
    32  [table-configs.config1]
    33  target-tables = ["db_target.t_target"]
    34  # currently sync_diff does not support json fields well
    35  ignore-columns = ["info_json"]
    36  index-fields = ["uid"]
    37  # range-placeholder
    38  
    39  
    40  [data-sources]
    41  [data-sources.mysql1]
    42  host = "127.0.0.1"
    43  port = 3306
    44  user = "root"
    45  password = "123456"
    46  route-rules = ["rule1"]
    47  
    48  [data-sources.mysql2]
    49  host = "127.0.0.1"
    50  port = 3307
    51  user = "root"
    52  password = "123456"
    53  route-rules = ["rule2"]
    54  
    55  [data-sources.tidb0]
    56  host = "127.0.0.1"
    57  port = 4000
    58  user = "test"
    59  password = "123456"