当前位置:网站首页>TiCDC同步延迟问题处理
TiCDC同步延迟问题处理
2022-07-29 12:03:00 【InfoQ】
背景介绍

分析解决过程

$ tiup ctl:v5.0.3 cdc changefeed list --pd=http://10.xx.xx.xx:2379
Starting component `ctl`: /home/tidb/.tiup/components/ctl/v5.0.3/ctl cdc changefeed list --pd=http://10.xx.xx.xx:2379
[
{
"id": "xx-xx-task",
"summary": {
"state": "normal",
"tso": 434212451741859960,
"checkpoint": "2022-06-28 09:04:12.360",
"error": null
}
}
]

- Changefeed checkpoint lag:同步任务上下游数据的进度差(以时间计算)
- Changefeed checkpoint:同步任务同步到下游的进度,正常情况下绿柱应和黄线相接
- Sink write duration:TiCDC 将一个事务的更改写到下游的耗时直方图
第一波定位:在 CDC 或是 TiDB 集群层面并没有发现相关异常的情况;


mysql>show create table reXXX_20220627\G
*************************** 1. row ***************************
Table: reXXX20220627
Create Table: CREATE TABLE `reXXX20220627` (
`pid` int(10) unsigned NOT NULL,
`tid` int(10) unsigned NOT NULL,
....
PRIMARY KEY (`pid`,`mpid`,`mid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPRESSED;
1 row in set (0.00 sec)
mysql>show create table reXXX_20220628\G
*************************** 1. row ***************************
Table: reXXX20220628
Create Table: CREATE TABLE `reXXX20220628` (
`pid` int(10) unsigned NOT NULL,
`tid` int(10) unsigned NOT NULL,
....
PRIMARY KEY (`pid`,`mpid`,`mid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1 row in set (0.00 sec)
第二波定位:发现下游 MySQL 的表结构不一致问题;

第三波定位:下游 MySQL 的表结构不一致问题,通过将表行格式调整为 COMPRESSED 可以缓解下游在业务高峰时间的消费延迟问题,但是高峰时间延迟依旧存在;




总结
边栏推荐
猜你喜欢

AI cocoa AI frontier introduction (7.29)

JVM内存模型如何分配的?

【Unity3D】场景切换、退出全屏、退出游戏

MyCat中间件高可用、读写分离、分片、主从切换、ER分片

The interviewer training courseware (very practical in-house training courseware)

Proficient in audio and video development can really do whatever you want

2.3插入排序

小程序云函数实现微信支付如此简单

递归-八皇后问题

HMS Core音频编辑服务音源分离与空间音频渲染,助力快速进入3D音频的世界
随机推荐
WeChat red envelope test case
piglit_get_gl_enum_from_name 参数遍历
金仓数据库KingbaseES安全指南--6.8. SSPI身份验证
【一起学Rust | 基础篇】rust函数与流程控制详解
Paddle frame experience evaluation and exchange meeting, the use experience of the product is up to you!
【多线程】——Callable创建多线程
解决 Chrome 浏览器被毒霸篡改问题
JVM内存模型如何分配的?
Insights into the development of the enterprise live broadcast industry in 2022
路径依赖 - 偶然决策导致的依赖。
文件上传漏洞
Basic knowledge of redis database learning - basic, commonly used
SQL clock 】 【 daily DAY 21 丨 report the state of the system date of continuous difficulty difficult 】 【
通过递归的方式实现树形结构
Basic Concepts of Kubernetes
fastjson使用方法
【每日SQL打卡】DAY 27丨每次访问的交易次数【难度困难-提前放出来】
第二章总结
How much is the test environment, starting from the actual needs
Wu En 07 regularization of teacher machine learning course notes