ticdc: add more faq#3882
Merged
Merged
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
overvenus
commented
Jul 3, 2020
Comment on lines
+170
to
+173
| * message.max.bytes | ||
| * replica.fetch.max.bytes | ||
| * fetch.message.max.bytes | ||
| * socket.request.max.bytes |
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
TomShawn
reviewed
Jul 6, 2020
18 tasks
amyangfei
reviewed
Jul 7, 2020
| cdc cli changefeed query --pd=http://10.0.10.25:2379 --changefeed-id 28c43ffc-2316-4f4f-a70b-d1a7c59ba79f | ||
| ``` | ||
|
|
||
| 上述命令的输出中 `admin-job-type` 标志这个同步的任务的状态: |
Contributor
There was a problem hiding this comment.
不推荐用户看这个状态,建议使用最新的 cdc cli changefeed list / cdc cli changefeed query --simple 查看
ref: pingcap/ticdc#721
ps: v4.0.3 引入
Signed-off-by: Neil Shen <overvenus@gmail.com>
amyangfei
reviewed
Jul 9, 2020
| [{ | ||
| "id": "4e24dde6-53c1-40b6-badf-63620e4940dc", | ||
| "summary": { | ||
| "state": "normal", |
Contributor
There was a problem hiding this comment.
可以增加一下对 state 的解释
normal: 正常同步
stopped: 停止同步(手动暂停或出错)
removed: 已删除任务
amyangfei
reviewed
Jul 9, 2020
Comment on lines
+185
to
+187
| * `message.max.bytes`,将 Kafka 的 server.properties 中该参数调大到 33554432 (32 MB)。 | ||
| * `replica.fetch.max.bytes`,将 Kafka 的 server.properties 中该参数调大到 33554432 (32 MB)。 | ||
| * `fetch.message.max.bytes`,适当调大 comsumer.properties 中该参数,确保大于 `message.max.bytes`。 |
Contributor
There was a problem hiding this comment.
这 3 个值都建议大一点,可以调到 1G (1073741824)
amyangfei
reviewed
Jul 9, 2020
|
|
||
| ## TiCDC 把数据同步到 Kafka 时,能在 TiDB 中控制单条消息大小的上限吗? | ||
|
|
||
| 不能,目前 TiCDC 控制了消息大小 4MB |
Contributor
There was a problem hiding this comment.
4 MB 是单个 key-value 消息的最大大小;实际每次向 kafka broker 发送的批量消息最大是 512MB
Signed-off-by: Neil Shen <overvenus@gmail.com>
Contributor
|
@amyangfei PTAL again |
Contributor
|
@amyangfei,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: docs(slack). |
Contributor
|
/run-all-tests |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 14, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Contributor
|
cherry pick to release-4.0 in PR #3966 |
TomShawn
pushed a commit
that referenced
this pull request
Jul 14, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
9 tasks
9 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added or deleted? (Required)
Add more FAQ about TiCDC.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?