Loading...
Loading...
Analyze ClickHouse cache systems including mark cache, uncompressed cache, and query cache. Use for cache hit ratio issues and cache tuning.
npx skill4agent add altinity/skills altinity-expert-clickhouse-caches| Cache | Typical Size | Notes |
|---|---|---|
| Mark Cache | 5-10% of RAM | Higher if random access patterns |
| Uncompressed | 0 (disabled) or 5-10% | Enable only for specific workloads |
| Query Cache | 1-5GB | For repeated identical queries |
| Compiled Expression | 128MB-1GB | Higher for complex expressions |
index_granularitymark_cache_size| Finding | Load Module | Reason |
|---|---|---|
| Cache using too much RAM | | Overall memory analysis |
| Poor hit ratio + high disk IO | | Disk bottleneck |
| Many marks per table | | Consider index_granularity tuning |
| Query cache misses | | Query pattern analysis |
| Setting | Scope | Notes |
|---|---|---|
| Server | Global mark cache limit |
| Server | Set to 0 to disable |
| Query | Enable per-query |
| Server | Query result cache |
| Query | Enable per-query |