Forecasting Kubernetes Costs

Plan Kubernetes Memory & CPU Reservations Before Migration

The benefits of containerizing workloads are numerous and proven. But, during infrastructure transformations, organizations are experiencing common, consistent challenges that interfere with accurately forecasting the costs for hosting workloads in Kubernetes (K8s). Planning the proper reservations for CPU and memory before migrating to containers is a persistent issue Densify observes across our customers.

You Pay for the Resources You Request—Not What You Use

This is also true regardless of where you deploy your containers. In the case of public cloud container deployments this means an increased monthly bill—even if you opt for a managed offering. In the case of deploying containers in your own datacenter this means running out of host hardware faster—let’s hope your procurement team can keep up with your DevOps workflow (spoiler: they can’t).

Kubernetes Sizing: Modeling versus Guessing

To get around uncertainty about how to properly size containers, developers will naturally reserve more CPU and memory if permitted. Containers don’t solve the persistent human challenge of people asking for more resources than their apps require.

But, let’s say you don’t even have your app containerized yet—let’s say your app is still running as a VMware VM or as a public cloud instance. Or, perhaps, you run your app containerized on-premises, but you want to forecast moving those apps to containers running on public cloud before doing the move to containers or the move to cloud?

Forecast Costs with Kubernetes Transformation Modeling

Densify can model actual existing workload patterns of VMware VMs or cloud instances moving to varied hosting environments with varied constraints to determine costs before doing the move. Transform to containers, transform to cloud, and on-premises transformation modelling—all are valuable planning scenarios for which Densify can solve.

Kubernetes Cost Modeling in Practice

A Densify customer running OpenShift on premises with VMware wanted to forecast their costs for moving to public cloud-based containers.

Architecture for transform from on-prem OpenShift to Kubernetes in AWS
Options for containers in AWS

Densify predicted the costs for multiple scenarios to answer questions such as:

  • Is it more cost effective to manage our own control plane, or to go with a managed offering?
  • What are the best cloud catalog images to consider? Or, should we just use general purpose instances to host the clusters?

The team used Densify data from the existing on-premises VMware cluster to evaluate various scenarios that considered how the cluster was designed and managed, as well as to consider resizing the cluster host nodes with estimated cost projections for forecasting purposes.

One of the scenarios illustrated below demonstrates the 169 source VMware VMs as containerized workloads with associated CPU and memory request and limit specifications provided per VM based on the actual historical usage patterns of the VMs. Including considerations for parameters such as storage and networking throughput, overall workload headroom and affinity/anti-affinity this scenario would require 10 host nodes in the cluster.

Recommended requests and limits for CPU and memory for these containers
Consolidation summary (169 containers on 10 UCS nodes) and resource optimization recommendations for CPU and memory
Analysis projecting cluster resources based on 10 nodes
Analysis projecting cluster resources based on 10 nodes

Modeling Your Own Kubernetes Transformation

Densify enlists a consultative approach when helping customers undertake successful infrastructure transformations.

  • If you are an existing Densify customer, contact your account team to discuss options for accelerating your containers project
  • If you are new to Densify, request a 1:1 meeting to receive a demonstration and free consultation

Start Optimizing Your Cloud & Container Resources

Densify cloud cost optimization demonstration

Request a Demo Start with a 1:1 Capacity Optimization Consultation

Get a personalized demo of the Densify optimizer and see how you can maximize the alignment between your apps and their environments through sophisticated management of resources and capacity.

Schedule your demo
Densify cloud and Kubernetes optimization

Start Your Trial Begin Optimizing Your Cloud & Container Infrastructures

Connect to Densify and begin optimizing compute resources in your cloud and Kubernetes infrastructures. Our team of experts will work with you to accelerate your value.

Request a trial