Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
zh: add description of task config ignore-checking-items (#177)
Browse files Browse the repository at this point in the history
* Update config-overview.md

* Update task-configuration-file-full.md

* Update precheck.md

* Update config-overview.md

* Update task-configuration-file-full.md

* Update task-configuration-file-full.md

* Update config-overview.md

* Update zh/task-configuration-file-full.md

Co-authored-by: toutdesuite <guizhiluo2014@163.com>

* Update zh/precheck.md

Co-authored-by: toutdesuite <guizhiluo2014@163.com>

* Update zh/precheck.md

Co-authored-by: toutdesuite <guizhiluo2014@163.com>

Co-authored-by: toutdesuite <guizhiluo2014@163.com>
  • Loading branch information
lance6716 and toutdesuite authored Jul 27, 2020
1 parent ff8dde9 commit a02dc90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions zh/precheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,20 @@ aliases: ['/docs-cn/dev/reference/tools/data-migration/precheck/','/docs-cn/v3.1
- 分表存在自增主键,自增主键 column 类型为 bigint,但没有为其配置列值转换

- 其他情况下检查将成功

### 关闭检查项

DM 会根据任务类型进行相应检查,用户可以在任务配置文件中使用 `ignore-checking-items` 配置关闭检查。`ignore-checking-items` 是一个列表,其中可能的取值包括:

| 取值 | 含义 |
| :---- | :-----|
| all | 关闭所有检查 |
| dump_privilege | 关闭检查上游 MySQL 实例用户的 dump 相关权限 |
| replication_privilege | 关闭检查上游 MySQL 实例用户的 replication 相关权限 |
| version | 关闭检查上游数据库版本 |
| binlog_enable | 关闭检查上游数据库是否已启用 binlog |
| binlog_format | 关闭检查上游数据库 binlog 格式是否为 ROW |
| binlog_row_image | 关闭检查上游数据库 binlog_row_image 是否为 FULL|
| table_schema | 关闭检查上游 MySQL 表结构的兼容性 |
| schema_of_shard_tables | 关闭检查上游 MySQL 多实例分库分表的表结构一致性 |
| auto_increment_ID | 关闭检查上游 MySQL 多实例分库分表的自增主键冲突 |
5 changes: 5 additions & 0 deletions zh/task-configuration-file-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ aliases: ['/docs-cn/dev/reference/tools/data-migration/configure/task-configurat

关于包括 `source-id` 和 DM-worker ID 在内的关键概念的介绍,请参阅[关键概念](config-overview.md#关键概念)

## 关闭检查项

DM 会根据任务类型进行相应检查。可以参考[关闭检查项](precheck.md#关闭检查项),在任务配置文件中使用 `ignore-checking-items` 配置关闭相应检查。

## 完整配置文件示例

下面是一个完整的配置文件示例,通过该示例可以完成复杂的数据同步功能。
Expand All @@ -30,6 +34,7 @@ remove-meta: false # 是否在任务同步开始前移除该任务
enable-heartbeat: false # 是否开启 `heartbeat` 功能
online-ddl-scheme: "gh-ost" # 目前仅支持 "gh-ost" 、"pt"
case-sensitive: false # schema/table 是否大小写敏感
ignore-checking-items: [] # 不关闭任何检查项
clean-dump-file: true # 是否清理 dump 阶段产生的文件,包括 metadata 文件、建库建表 SQL 文件以及数据导入 SQL 文件。v1.0.7 新增

target-database: # 下游数据库实例配置
Expand Down

0 comments on commit a02dc90

Please sign in to comment.