← Blog

[Study Case] Cost Optimization for AWS EKS at Hukumonline.com with Spot Instance and AWS EKS

March 17, 2023 · Shamir Husein

This articles is created on my experience when i am done with core system migration at Hukumonline. And in the end of the process of migration is optimizing cost.

When we finish migration, this is our total cost which is USD 15.091 at December.

AWS cost at December — USD 15,091

At February, we successfully decrease the cost to USD 10.599

AWS cost at February — USD 10,599

For theory of cost optimization, you can refer to this article that i write before.

[Theory] Cost Optimization in AWS

For this articles, i will talk about Spot Instance that we used to our development and production AWS EKS environment a.k.a Kubernetes.

In our case when we already optimize and reducing number of server we used at EKS, so we want to optimize more with the same spec but with lower cost.

Our previous state is like this →

Previous state

Our current (when this articles created) is like this →

Current state

Before you use spot instance in your eks, you need to check the requirements:

If you already meet this requirements, you can start to migrate your system to spot instance. This is example from one of our managed group.

Managed node group example

A little tips:

Last question, can we optimize more at the current state ?

My answer is yes but i prefer to have more resources with cost not so much different.

I think thats all for today article. I will share more new article about EKS in later time. See ya 😃

References:

Working on something similar? Fastest over WhatsApp.

Message me on WhatsApp