Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

altinity-expert-clickhouse-mergesAltinity 专家 clickhouse 合并

Agent Skill

altinity-expert-clickhouse-merges 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,298

周安装

52

GitHub Stars

5

下载量

420
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:altinity-expert-clickhouse-merges(Altinity 专家 clickhouse 合并)
来源仓库:https://github.com/altinity/skills
仓库路径:skills/altinity-expert-clickhouse-merges
安装命令:
npx skills add https://github.com/altinity/skills --skill altinity-expert-clickhouse-merges
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/altinity/skills --skill altinity-expert-clickhouse-merges

简介

监控 ClickHouse 后台合并任务的状态与性能表现。

  • 适用于识别合并失败、资源争抢及进度停滞等问题。
  • 提供 part-count 异常检测与 RAM 使用趋势分析方法。
  • 需按 triage 顺序依次检查 merges、part_log 等关键表。
  • 操作前应确保对 system.merges 和 system.part_log 的查询权限。

SKILL.md

Diagnostics

Run all queries from checks.sql (cluster-wide) one by one and produce a decision-ready report.

Triage Order (Mandatory)

  1. Check current active merges from system.merges.
  2. Check merge success/failure trend from system.part_log.
  3. Check table-level status (merge_ok, merge_failed, last success/failure).
  4. Check merge reason + algorithm (merge_reason, merge_algorithm).
  5. Check merge RAM now + historical peak RAM (system.merges.memory_usage, system.part_log.peak_memory_usage).
  6. Check part-count offenders with split:

- database = 'system' - database!= 'system'

  1. Check relevant settings, including TTL merge concurrency.

Decision Rules

Use one of these final verdicts explicitly:

  • PROVED: cluster-wide merge stop (no successful merges in the selected window).
  • DECLINED: cluster-wide stop is false.
  • PARTIAL: merges are blocked for specific table(s) while others still merge.

Additional rules:

  • If some tables still have successful merges in same timeframe, do not report global merge stop.
  • If a target table has merge_ok = 0 with repeated MEMORY_LIMIT_EXCEEDED, report table-level block.
  • If merges are 100% Horizontal, state that planner selected horizontal merges (do not say vertical is disabled unless settings prove it).
  • If max part count is driven by system.* tables, call out alert-source mismatch to avoid misattribution to business tables.

Problem-Specific Investigation

"Too Many Parts" Investigation

For a specific table, run ad-hoc checks (time-bound and limited):

select
    toStartOfMinute(event_time) as minute,
    countIf(event_type = 'NewPart') as new_parts,
    countIf(event_type = 'MergeParts') as merges,
    countIf(event_type = 'MergeParts') - countIf(event_type = 'NewPart') as net_reduction
from system.part_log
where database = '{database}'
  and table = '{table}'
  and event_time > now() - interval 1 hour
group by minute
order by minute desc
limit 60

If net_reduction is negative consistently, inserts outpace merges.

TTL merge pressure and merge-size settings snapshot

Check system.merge_tree_settings if modified Suggest changing (reducing or increasing) in case of a problem as remediation.

  • max_parts_to_merge_at_once
  • max_bytes_to_merge_at_max_space_in_pool
  • max_bytes_to_merge_at_min_space_in_pool
  • enable_vertical_merge_algorithm
  • vertical_merge_algorithm_min_rows_to_activate
  • vertical_merge_algorithm_min_columns_to_activate
  • max_number_of_merges_with_ttl_in_pool
  • max_replicated_merges_with_ttl_in_queue
  • parts_to_delay_insert
  • parts_to_throw_insert

Structural Fix Guidance (When Settings Are Not Enough)

Call out anti-patterns explicitly:

  • Single hot partition (partition_id='all')
  • Heavy TTL... GROUP BY... SET... on a hot ingestion table
  • Persistent large horizontal merge attempts with OOM failures

Recommended long-term direction:

  • Add time-based partitioning
  • Move heavy rollup logic from TTL path to MV/batch table
  • Keep base-table TTL simple (delete-oriented)

Ad-Hoc Query Guidelines

Required Safeguards

-- Always include LIMIT
limit 100

-- Always time-bound historical queries
where event_time >= now() - interval 24 hour

-- For part_log, always filter event_type
where event_type in ('NewPart', 'MergeParts', 'MutatePart')

Avoid

  • select * from system.part_log
  • Unbounded scans on *_log tables
  • Large joins in-context (aggregate in SQL)

Cross-Module Triggers

FindingLoad ModuleReason
High memory during merges / OOMaltinity-expert-clickhouse-memoryMemory limits and pressure
Slow merges + normal diskaltinity-expert-clickhouse-schemaORDER BY/partitioning anti-patterns
Slow merges + high disk IOaltinity-expert-clickhouse-storageStorage bottleneck
Merges blocked by mutationsaltinity-expert-clickhouse-mutationsMutation backlog
Replication lag + merge issuesaltinity-expert-clickhouse-replicationQueue/replica bottlenecks

Final Report Sections (Mandatory)

  1. Environment header
  2. Global vs table-specific merge status
  3. Current and peak merge RAM
  4. Merge reason and merge algorithm findings
  5. Max-part offenders (system vs non-system)
  6. Current settings and recommended deltas
  7. Immediate mitigation and structural remediation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

28.48%
按下载量换算120

Claude Code

23.02%
按下载量换算97

Gemini CLI

16.64%
按下载量换算70

Antigravity

13.27%
按下载量换算56

cline

7.47%
按下载量换算31

OpenCode

3.75%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills