~/talk

Finding Bottlenecks in ClickHouse: Profiling, Heatmaps & Flamegraphs

links:none on file
slides:none on file

Practical checklist for finding ClickHouse bottlenecks: enable telemetry and trace logs and use internal system tables plus the embedded Prometheus exporter to visualize CPU/IO/memory patterns; for ~10 TB compressed per server aim for 64–128 GB RAM, ≥32 cores and 10 Gbps; build heatmaps from system.query_log to spot queries that read ~1 GB or spikes up to ~100 GB and show most queries use ~16 MB while some hit ~1 GB; generate flamegraphs from system.trace_log (sampling ~50 Hz) and use explain modes and timeline to find bad partitions, small inserts (use ~1e6 row batches), and memory/thread tuning.

AI-written summary · about

  1. 0:00Introduction
  2. 2:33Workload patterns and hardware
  3. 7:14Telemetry and monitoring
  4. 19:15Query bottlenecks with heatmaps
  5. 26:28Profiling with flame graphs
  6. 31:13Memory limits and execution
  7. 34:53EXPLAIN query analysis
  8. 37:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.