altinity-expert-clickhouse-logs

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Diagnostics

诊断

Run all queries from the file checks.sql and analyze the results.
运行checks.sql文件中的所有查询并分析结果。

TTL Recommendations

TTL建议

Log TableRecommended TTLNotes
query_log7-30 daysBalance debugging vs disk
query_thread_logDisable or 3 daysVery verbose
part_log14-30 daysImportant for RCA
trace_log3-7 daysLarge, mostly for debugging
text_log7-14 daysImportant for debugging
metric_log7-14 daysUseful for trending
asynchronous_metric_log7-14 daysLow volume
crash_log90+ daysRare, keep longer
日志表推荐TTL说明
query_log7-30天在调试需求与磁盘占用间取得平衡
query_thread_log禁用或保留3天日志内容非常详细
part_log14-30天对根本原因分析(RCA)至关重要
trace_log3-7天数据量大,主要用于调试
text_log7-14天对调试至关重要
metric_log7-14天适用于趋势分析
asynchronous_metric_log7-14天数据量小
crash_log90天以上出现频率低,建议保留更长时间

KB articles

知识库文章