---
title: "Fixed cadence to seconds: making ClickHouse Cloud autoscaling more reactive"
description: "ClickHouse Cloud's vertical autoscaling recommender moved from a fixed timer loop to a controller-runtime based design, so services that hit memory pressure get a recommendation in seconds instead of waiting for the next scheduled pass."
url: "https://swe.quest/articles/fixed-cadence-to-seconds-making-clickhouse-cloud-autoscaling-more-reactive-1b4745e879b2e9ce"
canonical: "https://clickhouse.com/blog/making-clickhouse-cloud-autoscaling-more-reactive"
source: "ClickHouse"
published: "2026-08-04"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["kubernetes","capacity-planning","go","analytics","event-driven"]
---

# Fixed cadence to seconds: making ClickHouse Cloud autoscaling more reactive

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-08-04, 13 min read, Case study. Original: [https://clickhouse.com/blog/making-clickhouse-cloud-autoscaling-more-reactive](https://clickhouse.com/blog/making-clickhouse-cloud-autoscaling-more-reactive)

## Summary

ClickHouse Cloud's vertical autoscaling recommender moved from a fixed timer loop to a controller-runtime based design, so services that hit memory pressure get a recommendation in seconds instead of waiting for the next scheduled pass. Two sources, a slotted periodic sweep and a reactive poller, feed one rate-limited work queue. The queue provides deduplication, exponential backoff, bounded concurrency and leader election without custom code. The reactive signals live in ClickHouse: a materialized view filters breach rows such as soft memory rejections out of the Prometheus metrics firehose into a small TTL'd table ordered by timestamp, which is polled every few seconds with a cheap five-minute window query.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)

## Prerequisites

- Kubernetes controllers ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Go basics ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- ClickHouse materialized views ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse Cloud, controller-runtime, SharedMergeTree, Prometheus, workqueue

## Related posts

- [Smarter Auto-Scaling for ClickHouse: The Two-Window Approach](https://swe.quest/articles/smarter-auto-scaling-for-clickhouse-the-two-window-approach-5a9450c56fbc9543.md): ClickHouse · 2026-03-24 · Medium · 9 min read · Capacity planning, Cost optimization, Cloud platforms, Analytics & OLAP
  ClickHouse Cloud replaced its single 30-hour lookback window for vertical auto-scaling with a two-window recommender.
- [Enhanced ClickHouse Cloud Monitoring with Prometheus](https://swe.quest/articles/enhanced-clickhouse-cloud-monitoring-with-prometheus-685ab688b94dfba3.md): ClickHouse · 2024-07-16 · Medium · 7 min read · Observability, Analytics & OLAP, Cloud platforms
  ClickHouse Cloud now exposes a Prometheus metrics endpoint through its Cloud API, authenticated with organization-level Developer API keys.
- [What's new in clickhousectl v0.4.0](https://swe.quest/articles/what-s-new-in-clickhousectl-v0-4-0-48a57f2710e4f6e3.md): ClickHouse · 2026-07-31 · Medium · 4 min read · Developer tools, Analytics & OLAP, Data pipelines, Cloud platforms
  clickhousectl v0.4.0 adds horizontal autoscaling flags for ClickHouse Cloud services (min/max replicas, mutually exclusive with vertical memory-range flags), beta ClickPipe schema discovery for Kafka and Kinesis sources, and new ingestion controls such as --skip-initial-load, --start-after for continuous object-storage pipes and --server-id for MySQL CDC pipes.
- [How Modal uses ClickHouse to power real-time observability for AI workloads](https://swe.quest/articles/how-modal-uses-clickhouse-to-power-real-time-observability-for-ai-workloads-a1efae326a0a9591.md): ClickHouse · 2025-11-05 · Medium · 6 min read · Analytics & OLAP, Observability, Stream processing, Scaling
  Modal powers three customer-facing observability dashboards (function scaling, per-call timeline, latency percentiles) from a single ClickHouse Cloud table ingesting 1–2 million events per minute and holding ~500 billion logs.
- [Building ClickCannon - a tool for benchmarking ClickHouse](https://swe.quest/articles/building-clickcannon-a-tool-for-benchmarking-clickhouse-15503a1f117264f6.md): ClickHouse · 2026-06-11 · Medium · 16 min read · Performance engineering, Go, Analytics & OLAP, Observability, Concurrency
  ClickCannon is an open-source Go tool for benchmarking ClickHouse insert and query workloads, built to produce hardware sizing recommendations for ClickStack observability deployments.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
