-
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
ticdc: add more faq #3882
ticdc: add more faq #3882
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
ticdc/troubleshoot-ticdc.md
Outdated
* message.max.bytes | ||
* replica.fetch.max.bytes | ||
* fetch.message.max.bytes | ||
* socket.request.max.bytes |
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.
@amyangfei PTAL, how to tweak these params?
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
cdc cli changefeed query --pd=http://10.0.10.25:2379 --changefeed-id 28c43ffc-2316-4f4f-a70b-d1a7c59ba79f | ||
``` | ||
|
||
上述命令的输出中 `admin-job-type` 标志这个同步的任务的状态: |
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.
不推荐用户看这个状态,建议使用最新的 cdc cli changefeed list / cdc cli changefeed query --simple 查看
ref: https://github.com/pingcap/ticdc/pull/721
ps: v4.0.3 引入
Signed-off-by: Neil Shen <overvenus@gmail.com>
[{ | ||
"id": "4e24dde6-53c1-40b6-badf-63620e4940dc", | ||
"summary": { | ||
"state": "normal", |
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.
可以增加一下对 state 的解释
normal: 正常同步
stopped: 停止同步(手动暂停或出错)
removed: 已删除任务
ticdc/troubleshoot-ticdc.md
Outdated
* `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`。 |
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 个值都建议大一点,可以调到 1G (1073741824)
ticdc/troubleshoot-ticdc.md
Outdated
|
||
## TiCDC 把数据同步到 Kafka 时,能在 TiDB 中控制单条消息大小的上限吗? | ||
|
||
不能,目前 TiCDC 控制了消息大小 4MB |
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.
4 MB 是单个 key-value 消息的最大大小;实际每次向 kafka broker 发送的批量消息最大是 512MB
Signed-off-by: Neil Shen <overvenus@gmail.com>
@amyangfei PTAL again |
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
@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). |
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
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #3966 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
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)?