-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tidb-tools dependency (#1084)
- Loading branch information
Showing
6 changed files
with
63 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
# diff Configuration. | ||
|
||
log-level = "debug" | ||
|
||
# for example, the whole data is [1...100] | ||
# we can split these data to [1...10], [11...20], ..., [91...100] | ||
# the [1...10] is a chunk, and it's chunk size is 10 | ||
# size of the split chunk | ||
chunk-size = 100 | ||
######################### Global config ######################### | ||
|
||
# how many goroutines are created to check data | ||
check-thread-count = 1 | ||
|
||
# sampling check percent, for example 10 means only check 10% data | ||
sample-percent = 100 | ||
|
||
# the name of the file which saves sqls used to fix different data | ||
fix-sql-file = "/tmp/tidb_binlog_test/fix.sql" | ||
|
||
use-checksum=true | ||
# set false if just want compare data by checksum, will skip select data when checksum is not equal. | ||
# set true if want compare all different rows, will slow down the total compare time. | ||
export-fix-sql = true | ||
|
||
[[check-tables]] | ||
schema = "reparo-test" | ||
tables = ["~.*"] | ||
# ignore check table's data | ||
check-struct-only = false | ||
|
||
[target-db] | ||
######################### Databases config ######################### | ||
[data-sources] | ||
[data-sources.source1] | ||
host = "127.0.0.1" | ||
port = 3306 | ||
port = 4000 | ||
user = "root" | ||
password = "" | ||
|
||
[[source-db]] | ||
[data-sources.target] | ||
host = "127.0.0.1" | ||
port = 4000 | ||
port = 3306 | ||
user = "root" | ||
password = "" | ||
instance-id = "source-1" | ||
|
||
######################### Task config ######################### | ||
[task] | ||
# 1 fix sql: fix-target-TIDB1.sql | ||
# 2 log: sync-diff.log | ||
# 3 summary: summary.txt | ||
# 4 checkpoint: a dir | ||
output-dir = "/tmp/tidb_binlog_test/sync_diff_test-name-placeholder" | ||
|
||
source-instances = ["source1"] | ||
|
||
target-instance = "target" | ||
|
||
# tables need to check. *Include `schema` and `table`. Use `.` to split* | ||
target-check-tables = ["/^reparo-test$/.*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
# diff Configuration. | ||
|
||
log-level = "debug" | ||
|
||
# for example, the whole data is [1...100] | ||
# we can split these data to [1...10], [11...20], ..., [91...100] | ||
# the [1...10] is a chunk, and it's chunk size is 10 | ||
# size of the split chunk | ||
chunk-size = 100 | ||
######################### Global config ######################### | ||
|
||
# how many goroutines are created to check data | ||
check-thread-count = 1 | ||
|
||
# sampling check percent, for example 10 means only check 10% data | ||
sample-percent = 100 | ||
|
||
# the name of the file which saves sqls used to fix different data | ||
fix-sql-file = "/tmp/tidb_binlog_test/fix.sql" | ||
|
||
use-checksum=true | ||
# set false if just want compare data by checksum, will skip select data when checksum is not equal. | ||
# set true if want compare all different rows, will slow down the total compare time. | ||
export-fix-sql = true | ||
|
||
[[check-tables]] | ||
schema = "RESTART_TEST" | ||
tables = ["TEST"] | ||
# ignore check table's data | ||
check-struct-only = false | ||
|
||
[target-db] | ||
######################### Databases config ######################### | ||
[data-sources] | ||
[data-sources.source1] | ||
host = "127.0.0.1" | ||
port = 3306 | ||
port = 4000 | ||
user = "root" | ||
password = "" | ||
|
||
[[source-db]] | ||
[data-sources.target] | ||
host = "127.0.0.1" | ||
port = 4000 | ||
port = 3306 | ||
user = "root" | ||
password = "" | ||
instance-id = "source-1" | ||
|
||
######################### Task config ######################### | ||
[task] | ||
# 1 fix sql: fix-target-TIDB1.sql | ||
# 2 log: sync-diff.log | ||
# 3 summary: summary.txt | ||
# 4 checkpoint: a dir | ||
output-dir = "/tmp/tidb_binlog_test/sync_diff_test-name-placeholder" | ||
|
||
source-instances = ["source1"] | ||
|
||
target-instance = "target" | ||
|
||
# tables need to check. *Include `schema` and `table`. Use `.` to split* | ||
target-check-tables = ["RESTART_TEST.TEST"] |