Building ClickHouse Cloud on Microsoft Azure
ClickHouse Cloud's Azure data plane reuses its CSP-neutral design (AKS, Blob Storage, VNETs, Entra ID, managed Cilium) but had to adapt to several Azure-specific constraints. To avoid per-subscription limits such as 980 resource groups and 500 storage accounts, customer services are randomly placed in a pool of subscriptions, each getting its own resource group. Cells (independent VNET plus AKS environments routed via DNS) handle Kubernetes and cloud scaling limits. Because Azure NAT Gateway is zonal and AKS doesn't support application security groups, the team uses per-AZ subnets, three AKS node groups per cluster, and Network Security Groups for inter-cluster isolation.
Related posts
- Building ClickHouse Cloud From Scratch in a Year
ClickHouse mediumAdept
ClickHouse Cloud was built in about a year on a "shared everything" architecture: compute and storage are separated, object storage (S3/GCS) is the primary store, and local SSDs handle caching and metadata. Control Plane and Data Plane are decoupled by a REST API façade plus SQS/PubSub for async events. Key infrastructure choices were managed Kubernetes (EKS) over kOps, Cilium over Calico for eBPF-based network isolation, Istio/Envoy SNI routing to get around per-account NLB limits, and shared S3 buckets with per-service subpaths to avoid bucket limits. Auto-scaling uses a Knative-style idler that suspends idle pods and a custom scaler with disruption budgets suited to stateful services. Object storage forced extra work on caching, prefetching and write-cost optimization.
- PlanetScale is now available on Azure
PlanetScale mediumAdeptPlanetScale Postgres and Neki databases can now run in three Azure regions (centralus, eastus2, westeurope), with the same HA across three availability zones, Query Insights, backups and NVMe-backed Metal clusters as on AWS and GCP. Vitess is not yet supported. The main engineering detail is pod networking. Instead of allocating one Azure VNet IP per Kubernetes pod, each node receives /28 prefix blocks that count as a single address toward Azure's 65,536-IP cap, giving more than a million pod IPs per network. A per-node service and lightweight CNI plugin assign pod IPs locally, without calling the API server, and fetch a new block when a node drops to 8 free addresses.
- Building ClickHouse BYOC (Bring Your Own Cloud) on AWS
ClickHouse mediumAdept
ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane. Support access is approved, audited, time-bound and routed through Tailscale. Engineers authenticate with temporary certificates tied to a ClickHouse user profile that can read only system tables such as query_log, never customer data. Custom Profiles with node-group labels and node selectors replaced the default scheduler plus cluster autoscaler, which had wasted resources because of DaemonSet overhead and poor scale-in behaviour on m7gd node pools. Customers choose maintenance windows for upgrades, and ClickHouse handles EKS version maintenance.
- Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)
OpenAI mediumAdept
OpenAI's Habitat storage platform went from one shared Azure Cosmos DB container, to per-use-case dedicated containers, and back to a shared multi-tenant container. Shared containers suffered from logical partition key collisions, noisy neighbors on physical partitions, and "weak partitions" whose throughput shrank as storage-driven splits divided fixed RU/s. Dedicated containers fixed isolation but lost the smoothing effect of aggregate load, which pushed capacity planning onto every product team and caused launch-day SEVs. Hot-key throttling, QoS request tiering and a new serverless mode built with Azure (10K RU/s per physical partition, plus RU-usage-based splits) made shared tenancy work. Failover and failback outages at 20M+ QPS scale also led to co-managed operations with Azure, including joint monitoring and production-sized test accounts.
- Migrating to ClickHouse Cloud in just three months with no downtime: A 120 terabyte data journey and its benefits
ClickHouse easyNovice
Azur Games moved a 120 TB self-managed ClickHouse 21.3 analytics deployment (45 servers, MinIO, old Airflow) to ClickHouse Cloud on AWS in three months with no analytics downtime. The approach was full duplication, verification, then an atomic switchover. ClickHouse Cloud won over self-managed AWS or bare metal mainly because S3-backed storage with zero-copy replication avoids paying for two full copies of the data. Total cost rose only slightly, but queries ran as fast or faster, Airflow shrank to 24–40 autoscaling vCPUs, and roughly 60% of an admin's and 40% of an ETL engineer's time was freed. Lessons include engineers being pulled onto business work, merge issues found late, and two query-behaviour bugs at cutover.