altinity-expert-clickhouse-part-log
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePart Log Based Diagnostics
基于Part Log的诊断
Run all queries from (cluster-wide) and interpret the top offenders by rate (events/min), volume (rows/bytes), and errors.
checks.sqlNotes:
- Default timeframes are relative (e.g., last 1h/6h/24h). Only switch to an explicit time range when the user provides one in the prompt.
- Replace with your ClickHouse cluster name (DataGrip).
{cluster} - Keep queries time-bounded () and use
event_time > now() - INTERVAL ....LIMIT - If a query fails due to schema differences, run and drop only missing fields.
DESCRIBE TABLE system.part_log
Cross-module triggers:
- High rate / micro-batches → load
NewPart+altinity-expert-clickhouse-ingestionaltinity-expert-clickhouse-merges - High rate → load
MutatePartaltinity-expert-clickhouse-mutations - Many → load
DownloadPartaltinity-expert-clickhouse-replication - Merge saturation / slow merges → load +
altinity-expert-clickhouse-mergesaltinity-expert-clickhouse-storage
执行中的所有查询(集群范围),并通过速率(事件/分钟)、数量(行数/字节)和错误来分析主要问题点。
checks.sql注意事项:
- 默认时间范围为相对时间(例如,最近1小时/6小时/24小时)。仅当用户在提示中提供明确时间范围时才切换为该范围。
- 将替换为你的ClickHouse集群名称(DataGrip中)。
{cluster} - 保持查询有时间限制()并使用
event_time > now() - INTERVAL ...。LIMIT - 如果查询因架构差异失败,执行并仅删除缺失的字段。
DESCRIBE TABLE system.part_log
跨模块触发条件:
- 高速率/微批量 → 加载
NewPart+altinity-expert-clickhouse-ingestionaltinity-expert-clickhouse-merges - 高速率 → 加载
MutatePartaltinity-expert-clickhouse-mutations - 大量→ 加载
DownloadPartaltinity-expert-clickhouse-replication - 合并饱和/合并缓慢 → 加载+
altinity-expert-clickhouse-mergesaltinity-expert-clickhouse-storage