Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GMHDBJD authored and ti-chi-bot committed Dec 14, 2023
1 parent d161bf9 commit ff336bd
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 1 deletion.
87 changes: 87 additions & 0 deletions dm/tests/lightning_mode/conf/task.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"task": {
"name": "test",
"task_mode": "all",
"shard_mode": "pessimistic",
"meta_schema": "dm-meta",
"enhance_online_schema_change": true,
"on_duplicate": "error",
"ignore_checking_items": [
"version"
],
"target_config": {
"host": "127.0.0.1",
"port": 4000,
"user": "root",
"password": ""
},
"table_migrate_rule": [
{
"source": {
"source_name": "mysql-replica-01",
"schema": "lightning_mode",
"table": "*"
},
"target": {
"schema": "lightning_mode",
"table": "*"
},
"binlog_filter_rule": [
"rule-1"
]
},
{
"source": {
"source_name": "mysql-replica-02",
"schema": "lightning_mode",
"table": ""
},
"target": {
"schema": "lightning_mode",
"table": ""
},
"binlog_filter_rule": [
"rule-1"
]
}
],
"source_config": {
"full_migrate_conf": {
"export_threads": 4,
"import_threads": 16,
"data_dir": "./exported_data",
"consistency": "auto",
"import_mode": "physical",
"sorting_dir": "./sort_dir",
"disk_quota": "80G",
"checksum": "required",
"analyze": "optional",
"range_concurrency": 0,
"compress-kv-pairs": "",
"pd_addr": "",
"on_duplicate_logical": "error",
"on_duplicate_physical": "manual"
},
"incr_migrate_conf": {
"repl_threads": 16,
"repl_batch": 100
},
"source_conf": [
{
"source_name": "mysql-replica-01"
},
{
"source_name": "mysql-replica-02"
}
]
},
"binlog_filter_rule": {
"rule-1": {
"ignore_event": [
"truncate table",
"drop table"
]
}
}
}
}
2 changes: 1 addition & 1 deletion dm/tests/lightning_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function run() {
run_sql_tidb "drop database if exists lightning_mode;"
run_sql_tidb "drop database if exists dm_meta;"

task_conf=`cat $cur/conf/task.json`
task_conf=$(cat $cur/conf/task.json)
curl -X POST http://127.0.0.1:8261/api/v1/tasks -H "Content-Type: application/json" -d "$task_conf"

# use sync_diff_inspector to check full dump loader
Expand Down

0 comments on commit ff336bd

Please sign in to comment.