-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add description of can't mix multiple backend #8333
Add description of can't mix multiple backend #8333
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. Reviewer can indicate their review by submitting an approval review. |
@@ -31,6 +31,10 @@ TiDB Lightning 的[后端](/tidb-lightning/tidb-lightning-glossary.md#backend) | |||
| 支持 TiDB 集群版本 | >= v4.0.0 | 全部 | 全部 | | |||
| 是否影响 TiDB 对外提供服务 | 是 | 是 | 否 | | |||
|
|||
> **注意:** | |||
> | |||
> 严禁使用多个 Lightning 进程向同一目标导入时混用不同的 backend,例如同时使用 local-backend 和 tidb-backend 导入同一 TiDB 集群是不允许的。 |
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.
我感觉这里应该说明一下,在默认情况下,不应该启动多个 TiDB Lightning 向同一个下游集群导入数据,如果需要的话,应该参考 并行导入 章节的内容。
> 并行导入只支持初始化 TiDB 的空表,不支持导入数据到已有业务写入的数据表,否则可能会导致数据不一致的情况。 | ||
> 1. 并行导入只支持初始化 TiDB 的空表,不支持导入数据到已有业务写入的数据表,否则可能会导致数据不一致的情况。 | ||
> | ||
> 2. 并行导入一般用于 local-backend 模式,虽然在 tidb-backend 模式下也可以工作,但并无太大意义。 |
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.
tidb-backend 在某些情况下可能是有意义的,如果确认下游 tidb 不是瓶颈的话,我倾向于把 tidb backend 和 local backend 对于并行导入的支持区分开。不过考虑到 tidb backend 需要并行的场景应该有限,我们可以在一个小的章节里面简单提一下就好。tidb backend 的 并行依然需要满足部署限制里面的要求。
@@ -31,6 +31,10 @@ TiDB Lightning 的[后端](/tidb-lightning/tidb-lightning-glossary.md#backend) | |||
| 支持 TiDB 集群版本 | >= v4.0.0 | 全部 | 全部 | | |||
| 是否影响 TiDB 对外提供服务 | 是 | 是 | 否 | | |||
|
|||
> **注意:** | |||
> | |||
> 严禁使用多个 Lightning 进程向同一目标导入时混用不同的 backend,例如同时使用 local-backend 和 tidb-backend 导入同一 TiDB 集群是不允许的。 |
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.
> 严禁使用多个 Lightning 进程向同一目标导入时混用不同的 backend,例如同时使用 local-backend 和 tidb-backend 导入同一 TiDB 集群是不允许的。 | |
> 默认情况下,不使用多个 TiDB Lightning 向同一个下游集群导入数据,如果特殊情况需要,可参考[并行导入](/tidb-lightning/tidb-lightning-distributed-import.md)。 | |
> 使用多个 TiDB Lightning 向同一目标导入时,禁止混用不同的 backend,例如,不可同时使用 Local-backend 和 TiDB-backend 导入同一 TiDB 集群。 |
> | ||
> 2. 并行导入一般用于 local-backend 模式,虽然在 tidb-backend 模式下也可以工作,但并无太大意义。 | ||
> | ||
> 3. 严禁使用多个 Lightning 进程向同一目标导入时混用不同的 backend,例如同时使用 local-backend 和 tidb-backend 导入同一 TiDB 集群是不允许的。 |
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.
> 3. 严禁使用多个 Lightning 进程向同一目标导入时混用不同的 backend,例如同时使用 local-backend 和 tidb-backend 导入同一 TiDB 集群是不允许的。 | |
> 3. 使用多个 TiDB Lightning 向同一目标导入时,禁止混用不同的 backend,例如,不可同时使用 Local-backend 和 TiDB-backend 导入同一 TiDB 集群。 |
Co-authored-by: shichun-0415 <89768198+shichun-0415@users.noreply.github.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8b66304
|
In response to a cherrypick label: new pull request created: #8585. |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?