Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dm: add description about mysql-instance.meta #11096

Merged
merged 2 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion dm/task-configuration-file-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ validators:
mysql-instances:
-
source-id: "mysql-replica-01" # The `source-id` in source.toml.
meta: # The position where the binlog replication starts when `task-mode` is `incremental` and the downstream database checkpoint does not exist. If the checkpoint exists, the checkpoint is used.
meta: # The position where the binlog replication starts when `task-mode` is `incremental` and the downstream database checkpoint does not exist. If the checkpoint exists, the checkpoint is used. If neither `checkpoint` nor `meta` exists, the migration starts from the latest binlog position of the upstream.
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved

binlog-name: binlog.000001
binlog-pos: 4
Expand Down
2 changes: 1 addition & 1 deletion migrate-aurora-to-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ mysql-instances:
- source-id: "mysql-01" # Data source ID, i.e., source-id in source1.yaml
block-allow-list: "listA" # References the block-allow-list configuration above.
# syncer-config-name: "global" # References the syncers incremental data configuration.
meta: # When task-mode is "incremental" and the downstream database does not have a checkpoint, DM uses the binlog position as the starting point. If the downstream database has a checkpoint, DM uses the checkpoint as the starting point.
meta: # The position where the binlog replication starts when `task-mode` is `incremental` and the downstream database checkpoint does not exist. If the checkpoint exists, the checkpoint is used. If neither `checkpoint` nor `meta` exists, the migration starts from the latest binlog position of the upstream.
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
binlog-name: "mysql-bin.000004" # The binlog position recorded in "Step 1. Export an Aurora snapshot to Amazon S3". When the upstream database has source-replica switching, GTID mode is required.
binlog-pos: 109227
# binlog-gtid: "09bec856-ba95-11ea-850a-58f2b4af5188:1-9"
Expand Down
2 changes: 1 addition & 1 deletion migrate-large-mysql-shards-to-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ mysql-instances:
block-allow-list: "bw-rule-1" # Use the block and allow list configuration above. Replicate `my_db1` in instance 1.
route-rules: ["route-rule-1"] # Use the configured routing rule above to merge upstream tables.
# syncer-config-name: "global" # Use the syncers configuration below.
meta: # The migration starting point of binlog when task-mode is incremental and there is no checkpoint in the downstream database. If there is a checkpoint, the checkpoint will be used.
meta: # The position where the binlog replication starts when `task-mode` is `incremental` and the downstream database checkpoint does not exist. If the checkpoint exists, the checkpoint is used. If neither `checkpoint` nor `meta` exists, the migration starts from the latest binlog position of the upstream.
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
binlog-name: "${binlog-name}" # The log location recorded in ${data-path}/my_db1/metadata in Step 1. You can either specify binlog-name + binlog-pos or binlog-gtid. When the upstream database service is configured to switch master between different nodes automatically, use binlog GTID here.
binlog-pos: ${binlog-position}
# binlog-gtid: " For example: 09bec856-ba95-11ea-850a-58f2b4af5188:1-9"
Expand Down
2 changes: 1 addition & 1 deletion migrate-large-mysql-to-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ If the import fails, refer to [TiDB Lightning FAQ](/tidb-lightning/tidb-lightnin
- source-id: "mysql-01" # Data source ID, i.e., source-id in source1.yaml
block-allow-list: "bw-rule-1" # You can use the block-allow-list configuration above.
# syncer-config-name: "global" # You can use the syncers incremental data configuration below.
meta: # When task-mode is "incremental" and the target database does not have a checkpoint, DM uses the binlog position as the starting point. If the target database has a checkpoint, DM uses the checkpoint as the starting point.
meta: # The position where the binlog replication starts when `task-mode` is `incremental` and the downstream database checkpoint does not exist. If the checkpoint exists, the checkpoint is used. If neither `checkpoint` nor `meta` exists, the migration starts from the latest binlog position of the upstream.
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
# binlog-name: "mysql-bin.000004" # The binlog position recorded in "Step 1. Export all data from MySQL". If the upstream database service is configured to switch master between different nodes automatically, GTID mode is required.
# binlog-pos: 109227
binlog-gtid: "09bec856-ba95-11ea-850a-58f2b4af5188:1-9"
Expand Down