Kubernetes Cluster Cost Optimization Without Breaking the Bank

by Stefano Doni

January 14, 2022

Share this post

Kubernetes Cluster Cost Optimization Without Breaking the Bank

Kubernetes packs containers densely to keep infrastructure cheap, yet the wrong resource settings quietly inflate the bill. Kubernetes cluster cost optimization is the practice of tuning pod requests, limits, and cluster sizing together so cost falls without hurting performance. In a joint Akamas and Dynatrace benchmark on Google Online Boutique, autonomous AI optimization improved cost efficiency by 77% in about 24 hours, while also raising throughput and cutting latency.

Organizations worldwide are adopting Kubernetes fast, and for good reason. Dense container scheduling drives infrastructure costs down. Workload isolation stops a runaway container from degrading its neighbors. The catch is configuration: setting the right parameters for availability, performance, and resilience without overspending is not a walk in the park.

To unpack the problem, Henrik Rexed (Cloud Native Advocate, Dynatrace) joined us for a joint webinar. We covered the core Kubernetes challenges and showed how Dynatrace observability and Akamas AI-powered optimization address them together.

Audience survey results on the top Kubernetes challenges, captured during the Akamas Ignite webinar
Figure 1: Kubernetes challenges survey during Ignite by Akamas.

The Akamas approach to Kubernetes cluster cost optimization

A Kubernetes microservices application shows the full complexity of a modern IT stack. Each service carries dozens of parameters, and a cluster has thousands in total. Tuning them by hand is slow and error prone. It rarely finds the real optimum.

Akamas takes a different route. An autonomous, AI-driven approach lets performance engineers, SREs, and architects find the configurations that deliver the best performance and resilience at the lowest cost, at business speed. The AI explores the configuration space and learns which settings move the needle, so teams do not have to guess.

The setup below shows how it works. Any load testing tool (JMeter, Micro Focus LoadRunner, or Tricentis NeoLoad) drives the target system under a defined workload. Dynatrace acts as the single telemetry source for every KPI that measures how a given configuration behaves.

Akamas optimization architecture: a load testing tool drives Google Online Boutique while Dynatrace feeds performance KPIs back to Akamas AI
Figure 2: Akamas high-level architecture

How autonomous optimization improved cost efficiency by 77%

We used Google Online Boutique, a well-known Kubernetes microservices demo, as the target application. The goal was to improve application efficiency: the ratio of service throughput to cloud cost. Two guardrails were fixed. Latency had to stay below 500 ms. Error rate had to stay below 2%.

Cost was grounded in real pricing. The CPU and memory allocated to each microservice were costed against AWS Fargate rates: $29 per month for each requested CPU, and about $3 per month for each GB of memory.

The result was clear. In about 24 hours, Akamas automatically found a configuration that improved cost efficiency by 77%. The baseline configuration (the initial sizing of the microservices) reached only 0.29 TPS//mo.Thebestconfigurationreached0.52TPS//mo. The best configuration reached 0.52 TPS//mo.Thebestconfigurationreached0.52TPS//mo. Akamas got there by reducing CPU limits on several microservices while increasing the CPU and memory of two services that were underprovisioned at baseline.

MetricBaseline configurationBest configurationChange
Cost efficiency0.29 TPS/$/mo0.52 TPS/$/mo+77%
Service throughputReferenceHigher+19%
Latency peaksReferenceLower and more stable-60%
Latency (guardrail)Below 500 msBelow 500 msHeld
Error rate (guardrail)Below 2%Below 2%Held

The best configuration was not only cheaper to run. It improved throughput by 19%, reduced latency peaks by 60%, and made service latency far more stable. Cost went down and performance went up at the same time.

Baseline versus optimized Kubernetes configuration showing 19% higher throughput and more stable service latency
Figure 3: Baseline vs best configuration for troughput

What this means for your clusters

This example is one application, but the method generalizes. The same autonomous approach extends to any workload and any layer of the stack: JVM settings, databases, middleware, operating system, and cloud instance types. It plugs into the observability you already run, using Dynatrace full-stack telemetry as the data source rather than replacing it.

The practical takeaway is that Kubernetes cost and performance are not a trade-off you have to accept. With the right configuration, you can cut waste and improve reliability together. Akamas finds that configuration for you. Explore how this works for Kubernetes workloads, pod and node rightsizing in Akamas Insights, and Java on Kubernetes.

FAQs

What is Kubernetes cluster cost optimization?

It is the practice of tuning pod CPU and memory requests, limits, and cluster sizing so a cluster runs at the lowest cost that still meets performance and reliability targets. Done well, it cuts waste without adding risk.

Does cutting Kubernetes cost reduce performance?

Not necessarily. In the Akamas and Dynatrace benchmark, the optimized configuration improved cost efficiency by 77% while raising throughput by 19% and cutting latency peaks by 60%. Cost and performance improved together.

How is Kubernetes cost efficiency measured?

Akamas measured it as service throughput divided by cloud cost, expressed as TPS/$/mo. Cost was based on AWS Fargate pricing: $29 per CPU per month and about $3 per GB of memory per month.

How long does AI-driven optimization take?

In this benchmark, Akamas found the best configuration in about 24 hours of automated experiments. No manual tuning was required.

Which parameters does Akamas tune?

For this application, Akamas adjusted pod CPU limits, CPU requests, and memory across microservices. The same method extends to JVM, database, middleware, operating system, and cloud instance parameters.

Akamas named a Leader in the GigaOm Radar for Cloud Resource Optimization v5, 2026
Akamas named an Outperformer in the GigaOm Radar for Cloud Resource Optimization v5, 2026

See for Yourself

Experience the benefits of Akamas autonomous optimization.
No overselling, no strings attached, no commitments.