Petlove Utilizes Spotinst To Save Over 70% Running Kubernetes On Google Cloud
“Running GKE on Preemptible VMs was something we didn’t think was possible. With Spotinst, it was simple!” - Fernando Tralci, Head of Infrastructure at Petlove
Petlove is Brazil’s largest online Pet Shops, with over 1 million pet owners served by their site every day to provide for every need for their beloved animal. With over 10,000 products, Petlove is the go-to site for pet owners in Brazil.https://www.petlove.com.br/
As Petlove’s Google Cloud compute spend increased, GKE became the main target for optimization
Petlove’s compute usage spans both AWS and Google Cloud, the company adopting a multi-cloud strategy to ensure that their environments and workloads are always running in the most suitable cloud. However, this meant that cost reduction strategies would have to incorporate multiple complex cloud environments.
To help combat costs in their AWS account, Petlove have used Spotinst to run their environments on EC2 Spot Instances for quite some time, with their Google Cloud environments being the natural next progression for cost optimization. For Petlove, the main target for cost reduction in their environment was
Google Kubernetes Engine (GKE).
Google Preemptible VMs
Preemptible VMs, just like their AWS counterpart Spot Instances, are how Google sells its spare compute capacity at a greatly reduced rate. Preemptible VMs differ from Spot in a few key ways. One of these is that they can only run for 24 hours before the Preemptible VM is terminated. This means that complex production workloads, such as Petlove’s GKE environments, are extremely difficult to run robustly on Preemptible VMs. Also, Preemptible VMs are not covered by SLA which makes it more challenging to use in a production workload.
Spotinst support for GKE provides over 70% cost reduction with no architectural changes
After using Spotinst Elastigroup’s support for GKE to run Petlove’s GKE environment on Preemptible VMs, Petlove swiftly experienced a significant drop in their compute costs. “It was not only cost-effective, it was also extremely simple to deploy” said Fernando Tralci, Head of Infrastructure.
Once Spotinst was integrated with the GKE environment, it was able to not only scale the infrastructure on Preemptible VMs, but also read the pending pods and scale the appropriate Preemptible Instance type and size into the Kubernetes cluster, based on its Autoscaler for Kubernetes. This meant that all the scaling for their GKE environment was being automated by Spotinst in such a way as to ensure the best possible optimization.
Not only were Petlove using the most cost effective VM type available on Google, they were also using fewer, right-sized VMs inside their GKE environments.
“Spotinst’s support for GKE is great, we’re able to both optimize our VM purchasing method and simultaneously make sure that we’re only buying and using exactly what we need with as little wasted capacity as possible. That’s definitely the biggest value we could have gotten in the shortest period of time.” – Fernando Tralci, Head of Infrastructure.