-
Notifications
You must be signed in to change notification settings - Fork 63
zh,en: make the description clearer on how to use the configs #819
zh,en: make the description clearer on how to use the configs #819
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
zh/task-configuration-guide.md
Outdated
| ## ********* 任务信息配置 ********* | ||
| name: test # 任务名称,需要全局唯一 | ||
| shard-mode: "pessimistic" # 如果为分库分表合并任务则需要配置该项。默认使用悲观协调模式 "pessimistic",在深入了解乐观协调模式的原理和使用限制后,也可以设置为乐观协调模式 "optimistic" | ||
| is-sharding: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we should add the config item like this (as mentioned in the related issue #733). If we do, should I add it in all the DM task configuration files? Please help to review it, thx! @lance6716
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is-sharding is a deprecated config field and its meaning is cover by shard-mode. So we needn't explicitly set it. This field is only used for the compatibility of legacy configs.
hfxsd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
glorv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
zh/key-features.md
Outdated
| ### 参数配置 | ||
|
|
||
| 在 task 的配置文件中设置: | ||
| 在 task 的配置文件中将 `is-sharding` 设置为 `true`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is-sharding 不推荐再显示申明了,建议新的示例配置里面都不要提这个字段
glorv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
en/feature-online-ddl.md
Outdated
| name: test # The name of the task. Should be globally unique. | ||
| task-mode: all # The task mode. Can be set to `full`/`incremental`/`all`. | ||
| shard-mode: "pessimistic" # You need to configure this if it is a shard merge task. The "pessimistic" mode is used by default. After understanding the principles and restrictions of the "optimistic" mode, you can set it to the "optimistic" mode. | ||
| shard-mode: "pessimistic" # The shard merge mode. Optional modes are ""/"pessimistic"/"optimistic". The "" mode is used by default which means no specific mode is required. If the task is a shard merge task, set it to the "pessimistic" mode. After understanding the principles and restrictions of the "optimistic" mode, you can set it to the "optimistic" mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| shard-mode: "pessimistic" # The shard merge mode. Optional modes are ""/"pessimistic"/"optimistic". The "" mode is used by default which means no specific mode is required. If the task is a shard merge task, set it to the "pessimistic" mode. After understanding the principles and restrictions of the "optimistic" mode, you can set it to the "optimistic" mode. | |
| shard-mode: "pessimistic" # The shard merge mode. Optional modes are ""/"pessimistic"/"optimistic". The "" mode is used by default which means sharding DDL merge is disabled. If the task is a shard merge task, set it to the "pessimistic" mode. After understanding the principles and restrictions of the "optimistic" mode, you can set it to the "optimistic" mode. |
zh/faq.md
Outdated
| ## DM v2.0.0 启动任务时出现 `fail to initial unit Sync of subtask`,报错信息的 `RawCause` 显示 `context deadline exceeded` | ||
|
|
||
| 该问题是 DM v2.0.0 版本的已知问题,在同步任务的表数目较多时触发,将在 v2.0.1 修复。使用 TiUP 部署的用户可以升级到开发版 nightly 解决该问题,或者访问 GitHub 上 [DM 仓库的 release 页面](https://github.com/pingcap/ticdc/releases)下载 v2.0.0-hotfix 版本手动替换可执行文件。 | ||
| 该问题是 DM v2.0.0 的已知问题,在同步任务的表数目较多时触发,将在 v2.0.1 修复。使用 TiUP 部署的用户可以升级到开发版 nightly 解决该问题,或者访问 GitHub 上 [DM 仓库的 release 页面](https://github.com/pingcap/dm/releases)下载 v2.0.0-hotfix 版本手动替换可执行文件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dm 合并到 cdc 之后,最新的 release 也会在 cdc 仓库,我们这里是不是还是放 cdc release 的链接比较合理,用户看到的就是最新版本的 release 了。(v2.x 的 release 将不会包含在里面)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
喔喔谢谢提醒!这里解决冲突的时候搞错了
|
/remove-status LGT1 |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 3291bf8 |
|
In response to a cherrypick label: new pull request created: #844. |
|
In response to a cherrypick label: new pull request created: #845. |
First-time contributors' checklist
What is changed, added, or deleted? (Required)
Make the description clearer to close #733.
Which DM version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?