Debugging ClickHouse lock contention at petabyte scale
A Cloudflare billing outage traced to ClickHouse query-planner lock contention produced upstream patches for a petabyte-scale cluster
When a partitioning change to our petabyte-scale ClickHouse cluster caused critical billing jobs to stall, standard metrics showed no obvious errors. Here's how we identified severe lock contention in ClickHouse's query planner and built up