<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TiDB 故障排查 on DBA学习笔记</title><link>https://blog.zhangjt.fun/series/tidb-%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5/</link><description>Recent content in TiDB 故障排查 on DBA学习笔记</description><generator>Hugo</generator><language>zh-CN</language><managingEditor>281304173@qq.com (张天师)</managingEditor><webMaster>281304173@qq.com (张天师)</webMaster><lastBuildDate>Wed, 21 Oct 2026 16:28:23 +0800</lastBuildDate><atom:link href="https://blog.zhangjt.fun/series/tidb-%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5/index.xml" rel="self" type="application/rss+xml"/><item><title>记一起 Schedule 卡住的问题</title><link>https://blog.zhangjt.fun/remember-the-problem-of-schedule-getting-stuck-z20fpdx/</link><pubDate>Thu, 28 Nov 2024 11:25:06 +0800</pubDate><author>281304173@qq.com (张天师)</author><guid>https://blog.zhangjt.fun/remember-the-problem-of-schedule-getting-stuck-z20fpdx/</guid><description>&lt;h2 id="1-现象"&gt;1 现象&#10;&lt;/h2&gt;&#10;&lt;p&gt;业务反馈查询 TiFlash 报错：&lt;code&gt;No access path for table 'dwd_id_mapping' is found with 'tidb_isolation_read_engines' = 'tiflash,tidb', valid values can be 'tikv'.&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;到集群中查看了一下，确实这个表的副本一直处于同步状态，但是进度一直没有发生变化。&lt;/p&gt;</description></item><item><title>TiDB抖动排查路径</title><link>https://blog.zhangjt.fun/tidb-jitter-troubleshooting-path-byxrq/</link><pubDate>Tue, 23 Jan 2024 15:24:54 +0800</pubDate><author>281304173@qq.com (张天师)</author><guid>https://blog.zhangjt.fun/tidb-jitter-troubleshooting-path-byxrq/</guid><description>&lt;h2 id="1-select执行流程"&gt;1 select执行流程&#10;&lt;/h2&gt;&#10;&lt;img class="td-image" src="https://blog.zhangjt.fun/images/Pasted-image-20220321114021-20261020175823-n2i1ljj.png" alt="Pasted image 20220321114021" loading="lazy" decoding="async"&gt;&lt;h2 id="2-insert流程"&gt;2 INSERT流程&#10;&lt;/h2&gt;&#10;&lt;img class="td-image" src="https://blog.zhangjt.fun/images/Pasted-image-20220321114035-20261020175841-wya4xan.png" alt="Pasted image 20220321114035" loading="lazy" decoding="async"&gt;&lt;h3 id="21-落盘步骤"&gt;2.1 落盘步骤&#10;&lt;/h3&gt;&#10;&lt;img class="td-image" src="https://blog.zhangjt.fun/images/Pasted-image-20220321115327-20261020175853-05iw1hq.png" alt="Pasted image 20220321115327" loading="lazy" decoding="async"&gt;&lt;p&gt;‍&lt;/p&gt;</description></item><item><title>一次TiDB负载搞排查</title><link>https://blog.zhangjt.fun/tidb-high-cpu-usage/</link><pubDate>Tue, 24 May 2022 16:11:36 +0800</pubDate><author>281304173@qq.com (张天师)</author><guid>https://blog.zhangjt.fun/tidb-high-cpu-usage/</guid><description>&lt;h2 id="背景"&gt;背景&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;TiDB Server两个节点CPU使用率都比较高&#10;&lt;img src="https://blog.zhangjt.fun/images/posts/tidb-high-cpu-usage/cpu-usage-nodes.svg" alt="TiDB Server 两个节点 CPU 使用率" loading="lazy" decoding="async"&gt;&lt;/li&gt;&#10;&lt;li&gt;查看QPS指标，可以看到14点到19点之间是基本没有流量的&#10;&lt;img src="https://blog.zhangjt.fun/images/posts/tidb-high-cpu-usage/qps-metrics.svg" alt="QPS 指标，14 点到 19 点基本无流量" loading="lazy" decoding="async"&gt;&lt;/li&gt;&#10;&lt;li&gt;登陆机器可以发现，有很多连接其实已经失效，但是还残留服务器上：&#10;&lt;img src="https://blog.zhangjt.fun/images/posts/tidb-high-cpu-usage/stale-connections.svg" alt="服务器上残留的失效连接" loading="lazy" decoding="async"&gt;&lt;/li&gt;&#10;&lt;li&gt;怀疑Server负载高和这些诡异的SQL有关系，即便没有释放，也没办法KILL，但是还是占用了一个核的CPU&#10;&lt;img src="https://blog.zhangjt.fun/images/posts/tidb-high-cpu-usage/2022-05-29-mxWOpSfh5PwAsbL.png" alt="20220529204849" loading="lazy" decoding="async"&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/pingcap/tidb/pull/29212"&gt;https://github.com/pingcap/tidb/pull/29212&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/pingcap/tidb/issues/24031"&gt;https://github.com/pingcap/tidb/issues/24031&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="解决方案"&gt;解决方案&#10;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;将流量转移到其他机器，可选途径有：&lt;/p&gt;</description></item></channel></rss>