altinity-expert-clickhouse-caches

Cache Analysis and Tuning

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "altinity-expert-clickhouse-caches" with this command: npx skills add altinity/skills/altinity-skills-altinity-expert-clickhouse-caches

Cache Analysis and Tuning

Analyze ClickHouse cache systems: mark cache, uncompressed cache, query cache, and compiled expression cache.

Diagnostics

Run all queries from the file checks.sql and analyze the results.

Cache Sizing Recommendations

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

Problem Investigation

Poor Mark Cache Hit Ratio

Possible causes:

  • Cache too small for working set

  • Queries scan many different tables

  • Many small queries to cold data

Cache Too Large

If mark cache > 15% RAM:

Solutions:

  • Reduce index_granularity for tables with excessive marks

  • Drop unused tables

  • Reduce mark_cache_size setting

Cross-Module Triggers

Finding Load Module Reason

Cache using too much RAM altinity-expert-clickhouse-memory

Overall memory analysis

Poor hit ratio + high disk IO altinity-expert-clickhouse-storage

Disk bottleneck

Many marks per table altinity-expert-clickhouse-schema

Consider index_granularity tuning

Query cache misses altinity-expert-clickhouse-reporting

Query pattern analysis

Settings Reference

Setting Scope Notes

mark_cache_size

Server Global mark cache limit

uncompressed_cache_size

Server Set to 0 to disable

use_uncompressed_cache

Query Enable per-query

query_cache_max_size

Server Query result cache

use_query_cache

Query Enable per-query

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

altinity-expert-clickhouse-schema

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

altinity-expert-clickhouse-ingestion

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

altinity-expert-clickhouse-logs

No summary provided by upstream source.

Repository SourceNeeds Review