<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>运维 on 海风自语 · 技术与教育笔记</title><link>https://www.szlanmin.com/tags/%E8%BF%90%E7%BB%B4/</link><description>Recent content in 运维 on 海风自语 · 技术与教育笔记</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 05 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.szlanmin.com/tags/%E8%BF%90%E7%BB%B4/index.xml" rel="self" type="application/rss+xml"/><item><title>Langfuse ClickHouse CPU 打满事件复盘</title><link>https://www.szlanmin.com/tech/ops/langfuse-clickhouse-cpu-postmortem/</link><pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate><guid>https://www.szlanmin.com/tech/ops/langfuse-clickhouse-cpu-postmortem/</guid><description>2026-09-04，81.71.xx.xx 上的 Langfuse 栈 ClickHouse CPU 长期打满（实测 350%）。排查发现活跃 merge 全落在系统日志表而非业务表，err.log 记录 57,937 次 merge 失败。根因是 `max_server_memory_usage` 只给 700MB、低于真实工作集 1GB+，导致每次合并因内存不足失败并无限重试，失败又写 part_log 生成新 part，形成正反馈死循环。解法：内存上调至 1000MB、后台池 32→8、缓存收敛、关闭 5 张自监控日志表并清理历史垃圾 5.35GB。修复后 CPU 稳定 2~3%，磁盘回收至 81MB。核心教训：内存上限不可拍脑袋压低，ClickHouse 异常先看挂载出来的 err.log，`docker logs` 不全。</description></item></channel></rss>