当前位置:网站首页>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 可以缓解下游在业务高峰时间的消费延迟问题,但是高峰时间延迟依旧存在;




总结
边栏推荐
- 【每日SQL打卡】DAY 21丨每个帖子的评论数【难度中等】
- SQL clock in daily DAY 23 丨 】 the number of students have different subjects to test difficulty simple 】 【
- The interviewer training courseware (very practical in-house training courseware)
- 2.2选择排序
- Chapter 2 Summary
- MyCat中间件高可用、读写分离、分片、主从切换、ER分片
- 【每日SQL打卡】DAY 27丨每次访问的交易次数【难度困难-提前放出来】
- 【day04】IDEA、方法
- 峰米V10、极米Rs Pro2及当贝X3 Pro究竟孰优孰劣?
- DAY 24 daily SQL clock 】 【 丨 weather types in different countries [difficult simple]
猜你喜欢
随机推荐
SQL clock in daily DAY 21 丨 】 each post comments difficulty moderate 】 【
2.1冒泡排序(Bubble Sorting)
XSS漏洞分析
365天挑战LeetCode1000题——Day 043 有效的正方形 数学
金仓数据库KingbaseES客户端编程接口指南-ODBC(6. KingbaseES ODBC 的扩展属性)
路径依赖 - 偶然决策导致的依赖。
【Untitled】
DAY 20 daily SQL clock 】 【 丨 query difficulty moderate 】 【 team integral
力扣sql刷题(四)
峰米V10、极米Rs Pro2及当贝X3 Pro究竟孰优孰劣?
Js array commonly used API
金仓数据库KingbaseES安全指南--6.6. SSL客户端证书认证
“祁东黄花菜”是国家地理标志保护产品吗? 蚂蚁新村7月29日答案
宝塔快速搭建自适应咖啡网站模板与管理系统源码实测
【每日SQL打卡】DAY 25丨求团队人数【难度中等】
2.3插入排序
WordPress 常规设置
【每日SQL打卡】DAY 21丨报告系统状态的连续日期【难度困难】
DAY 24 daily SQL clock 】 【 丨 find the beginning and end of the continuum digital difficulty moderate 】 【
The company has a new product, do you want to hire an agent?









