Skip to main content

MostAllocated k8s Scheduling Strategy Saves Millions of Dollars For ClickHouse

β€” Bibin Wilson

ClickHouse is an open-source columnar database designed for online analytical processing (OLAP).

ClickHouse Cloud (serverless version of ClickHouse) is a fully managed cloud service. It runs ClickHouse clusters on managed Kubernetes clusters (EKS , GKE and AKS) faced rapidly rising infrastructure costs due to underutilized worker nodes.

Like many companies using Kubernetes, they initially used the default Kubernetes scheduler policy, which spreads pods across nodes using a LeastAllocated approach.

This method resulted in inefficient resource utilization, where many nodes had low CPU and memory usage, yet costs remained high because EC2 instances are billed by the hour.