【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
背景是我的一个TIDB集群v6.1.0,系统是CentOS 7,PD和TIDB-SERVER是复用的配置在三台的虚拟机(共享虚拟化宿主机非ssd磁盘),TIKV-SERVER是配置在三台物理机(ssd磁盘)上面,TICDC集群也是复用在TIKV三台机器上的
上游是TIDB-6.1.0,下游是MYSQL-Percona Server5.7
TICDC某个节点的日志如下:
[2023/07/18 09:32:10.889 +08:00] [ERROR] [processor.go:546] ["error on running processor"] [capture=10.116.172.206:8300] [changefeed=simple-replication-task] [error="[CDC:ErrFlowControllerEventLargerThanQuota]event is larger than the total memory quota, size: 12602807,
quota: 10485760"] [errorVerbose="[CDC:ErrFlowControllerEventLargerThanQuota]event is larger than the total memory quota, size: 12602807, quota: 10485760\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\
ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/cdc/sink/flowcontrol.(*tableMemoryQuota).consumeWithBlocking\n\tgithub.com/pingcap/tiflow/cdc/sink/flowc
ontrol/table_memory_quota.go:59\ngithub.com/pingcap/tiflow/cdc/sink/flowcontrol.(*TableFlowController).Consume\n\tgithub.com/pingcap/tiflow/cdc/sink/flowcontrol/flow_control.go:133\ngithub.com/pingcap/tiflow/cdc/processor/pipeline.(*sorterNode).start.func3\n\tgithub.com
/pingcap/tiflow/cdc/processor/pipeline/sorter.go:250\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20220513210516-0976fa681c29/errgroup/errgroup.go:74\nruntime.goexit\n\truntime/asm_amd64.s:1571"]
[2023/07/18 09:32:10.890 +08:00] [ERROR] [processor.go:355] ["run processor failed"] [changefeed=simple-replication-task] [capture=10.116.172.206:8300] [error="[CDC:ErrFlowControllerEventLargerThanQuota]event is larger than the total memory quota, size: 12602807, quota:
10485760"] [errorVerbose="[CDC:ErrFlowControllerEventLargerThanQuota]event is larger than the total memory quota, size: 12602807, quota: 10485760\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithu
b.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/cdc/sink/flowcontrol.(*tableMemoryQuota).consumeWithBlocking\n\tgithub.com/pingcap/tiflow/cdc/sink/flowcontrol
/table_memory_quota.go:59\ngithub.com/pingcap/tiflow/cdc/sink/flowcontrol.(*TableFlowController).Consume\n\tgithub.com/pingcap/tiflow/cdc/sink/flowcontrol/flow_control.go:133\ngithub.com/pingcap/tiflow/cdc/processor/pipeline.(*sorterNode).start.func3\n\tgithub.com/pingc
ap/tiflow/cdc/processor/pipeline/sorter.go:250\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20220513210516-0976fa681c29/errgroup/errgroup.go:74\nruntime.goexit\n\truntime/asm_amd64.s:1571"]
使用TIUP工具看报错如下:
# tiup cdc cli changefeed list --pd x.x.x.x:2379
Starting component `cdc`: /home/tidb/.tiup/components/cdc/v6.1.1/cdc cli changefeed list --pd x.x.x.x:2379
[
{
"id": "simple-replication-task",
"summary": {
"state": "failed",
"tso": 442929853387243521,
"checkpoint": "2023-07-18 09:21:40.580",
"error": {
"addr": "x.x.x.x:8300",
"code": "CDC:ErrFlowControllerEventLargerThanQuota",
"message": "[CDC:ErrFlowControllerEventLargerThanQuota]event is larger than the total memory quota, size: 12602807, quota: 10485760"
}
}
}
]
我该如何解决这个问题呢?看报错是内存占用大于配额了嘛?是TICDC的内存占用吗?
【资源配置】
【附件:截图/日志/监控】