-
Notifications
You must be signed in to change notification settings - Fork 286
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
Single table with 30k regions, two changefeeds sync this table, upstream insert tps: 8k, checkpoint moves only 5s after 1+hour #2055
Comments
The replication becomes normal after restart cdc servers. region initialization rate 20 by minutes in TiKV on server
This is not a bug, it is caused by the region scan limit in TiKV, where is 4 concurrent workers, and 6 concurrent tasks by default, and we should also take the server load of TiKV into consideration, since it can be easily observed that region initialization rate changed a lot What do you think of it when the region count of a single table is extremely large, whether there exists any key metric to determine why the region initialization rate changed a lot @overvenus Besides, TiCDC has a flaw, when replicating the same table with N different sinks, the same data will be pushed from TiKV to TiCDC for N times. |
Besides https://github.com/pingcap/ticdc/pull/2078 can also cause this |
Change severity to major because it's cdc current ability, but latency is so large in this scenario is unmatch common sense. |
There are some optimization (tikv/tikv#11385) in TiKV in the next release, it should help mitigate this issue. Change severity to severity/moderate |
/close |
@nongfushanquan: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):Edition: Community
Git Commit Hash: 47f0f15b14ed54fc2222f3e304e29df7b05e6805
Git Branch: heads/refs/tags/v5.1.0-20210608
UTC Build Time: 2021-06-08 07:21:52
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
The text was updated successfully, but these errors were encountered: