Clickhouse Architecture Advisor

作者 ClickHouse2f6ec4b17a81Apache-2.0544 个星标收录于 2026年10月8日更新于 2026年10月8日仓库9天前更新

MUST USE when designing ClickHouse architectures, selecting between ingestion or modeling patterns, or translating best practices into workload-specific system designs. Complements clickhouse-best-practices with decision frameworks and explicit provenance labels.

仅含说明Data & Analytics
AI 生成的概览

针对特定工作负载指导 ClickHouse 架构决策,并将每条建议标注为官方、推导或经验。

功能
该技能为设计 ClickHouse 架构提供工作负载感知的决策框架,涵盖摄取策略、实时预聚合、时间序列分区、连接补充和迟到更新。它要求代理识别工作负载形态、阅读相关规则文件、附上官方文档链接,并按来源对每条建议进行分类。输出采用结构化格式,包含工作负载摘要、关键决策和建议,并附有置信度、来源和验证步骤。
适用场景
适用于设计 ClickHouse 架构、在摄取或建模模式之间选择,或将最佳实践转化为特定工作负载的系统设计。适合可观测性、SIEM、产品分析、IoT 遥测和金融市场数据等场景。
运行要求
无需脚本,仅为说明性内容。它引用随附的规则文件、映射文件和示例,并期望能访问 ClickHouse 官方文档。

ClickHouse Architecture Advisor

This skill adds workload-aware architecture decisioning on top of clickhouse-best-practices.

Official docs remain the source of truth. This skill must always prefer official ClickHouse documentation when available.

Required behavior

Before producing recommendations:

  1. Identify the workload shape
    • observability
    • security / SIEM
    • product analytics
    • IoT / telemetry
    • market data / financial services
    • mixed OLAP with point-lookups
  2. Read the relevant decision rule files in rules/
  3. Use mappings/doc_links.yaml to attach official documentation
  4. Classify every recommendation as:
    • official
    • derived
    • field
  5. Never present field guidance as official guidance
  6. If a recommendation is uncertain, say so explicitly

Provenance rules

official

Use this when the recommendation is directly backed by official docs.

derived

Use this when the recommendation is not stated verbatim in docs but follows logically from documented ClickHouse behavior.

field

Use this only for experience-based guidance that may be situational. When using field, include:

  • a disclaimer that the advice is heuristic
  • a relevant official doc if one partially applies
  • the reason the advice depends on workload context

Read these rule files by scenario

Real-time ingestion design

  1. rules/decision-ingestion-strategy.md
  2. rules/decision-real-time-preaggregation.md
  3. Relevant best-practices insert rules

Time-series and retention design

  1. rules/decision-partitioning-timeseries.md
  2. Relevant best-practices schema partition rules

Enrichment and dimension lookups

  1. rules/decision-join-enrichment.md
  2. Relevant best-practices query join rules

Mutable state / late-arriving events

  1. rules/decision-late-arriving-upserts.md
  2. Relevant best-practices mutation avoidance rules

Output format

Structure responses like this:

markdown
## Workload Summary- workload:- latency target:- data shape:- primary query patterns:- operational constraints:
## Key Decisions- ...- ...
## Recommendations
### <Recommendation title>
**What**...
**Why**...
**How**...
**Category**official | derived | field
**Confidence**high | medium | heuristic
**Source**- doc link(s)
**Validation**- concrete SQL, metric, or smoke test

Architecture-specific guidance

Prefer decision frameworks over generic advice. Good responses should:

  • explain tradeoffs
  • identify the likely operating bottleneck
  • separate immediate actions from structural redesign
  • provide target architecture patterns, not just isolated settings

Full reference

See AGENTS.md for the compiled version and examples/ for sample outputs.

来源与署名

来源:ClickHouse/agent-skills位于skills/clickhouse-architecture-advisor提交2f6ec4b

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 ClickHouse/agent-skills 的技能

Clickhouse Managed Postgres Rca

ClickHouse

针对 ClickHouse 托管 Postgres 实例性能问题的基于证据的根因分析工作流。

DevOps & Cloud5449天前更新

Clickhouse Js Node Troubleshooting

ClickHouse

排查并解决 ClickHouse Node.js 客户端(@clickhouse/client)的常见错误与配置问题。

Software Development5449天前更新

Clickhouse Best Practices

ClickHouse

依据 31 条最佳实践规则审查 ClickHouse 的模式、查询与写入策略。

Data & Analytics5449天前更新

Chdb Sql

ClickHouse

Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for stateful multi-step pipelines, parametrized queries, and cross-source joins via `s3()`, `mysql()`, `postgresql()`, `iceberg()`, `deltaLake()`, `remoteSecure()` table functions. TRIGGER when: user wants SQL on parquet/csv/files or across remote analytical sources; uses ClickHouse SQL features (window functions, windowFunnel, geoToH3, JSON path ops, Session, parametrized queries); imports `chdb` or calls `chdb.query()`. SKIP this skill for pandas-style DataFrame method-chaining (use chdb-datastore instead) or ClickHouse server administration.

包含脚本
待分类5449天前更新

Chdb Datastore

ClickHouse

使用 chdb DataStore 作为 pandas 的替代方案,基于 ClickHouse 查询、连接和聚合表格数据。

包含脚本
Data & Analytics5449天前更新