fbpx

VTEX Use Spotinst Elastigroup to Increase RI Utilization and Maximise Cost Efficiency with Spot

“Using Spotinst to help us fully utilize our RI investment and all the benefits of Spot Instances has significantly optimized our costs. And, best of all, we did so without having to change the way our developers work!” - Carlos Monteiro, Senior Product Manager, VTEX

About VTEX

VTEX

VTEX is tomorrow’s commerce platform for today. Their SaaS e-commerce platform offers all the technology retailers need to sell online. With VTEX, top companies such as Bosch, SONY, Coca Cola, LEGO, Levi’s, Nespresso, Ambev and more have created beautiful and intuitive online stores. With an average of 50 deploys per day, VTEX is ready to keep adding amazing companies to their impressive portfolio!

https://www.vtex.com/

VTEX Enjoyed Large Reserved Instance Investment, but Pursued Better Utilization and more Cost-Efficient Scaling

VTEX was always conscious of cost-efficiency, and as such invested heavily in Reserved Instances (RIs) to ensure consistent and long-lasting capacity at a reduced price. But acquiring a large amount of RIs wasn’t the end of their cost-efficiency journey. Two things remained an issue:

  • Underutilized RIs – Purchasing a large amount of Reserved Instances guaranteed capacity at reduced costs, but didn’t guarantee that all Reserved Instances would be fully utilized across VTEX’s many accounts and environments.
  • Cost efficient scaling is difficult on RIs alone – VTEX’s environments needed to be able to scale up and down to meet their demands. This is difficult to do on RIs alone, as the scaling means that VTEX would either have to purchase a great deal of RIs which would not be fully utilized at all times or else scale up using On-Demand Instances, therefore reducing cost efficiency.

Spotinst Helps VTEX Fully Utilize their RIs whilst Scaling Robustly on Spot Instances

Spotinst Elastigroup enables VTEX to fully utilize their RI investment as the solution discovers unutilized RIs in VTEX’s AWS and, if detected, makes sure to utilize these instances as a first priority. Next, Spotinst Elastigroup will scale the rest of the cluster on Spot Instances, meaning that both Reserved and Spot Instances can be used within the same cluster.

This means that VTEX’s environments running on Spotinst were ensuring both the best RI utilization and also populating the rest of the group with cost-effective Spot Instances. Not only were VTEX’s RIs being fully utilized, they were being utilized automatically with no extra demands on the DevOps teams.

Simple Elastic Beanstalk Migration Results in VTEX going from Never Using Spot, to Running Spot in Production in Two Days

When RealCloud, Spotinst’s trusted partner in Latin America, learnt of VTEX’s issues they immediately recommended Spotinst Elastigroup. VTEX had never used Spot before Spotinst Elastigroup, as they were all too aware of the inherent risks and management issues which usually come with Spot Instances.

“In the first presentation of Spotinst, VTEX decided to initiate the trial immediately, and after 20 minutes they had connected all their development environment instances to run on Spot. Since this process, there hasn’t been a single interruption. It was amazing how fast and secure it was,” said Silvio Pereira, RealCloud CEO.

After the success of this initial PoC, the results were both so immediate and so compelling that the VTEX team wasted no time in getting their production accounts running on Spot.

“After we checked out the platform for a couple of days, we were confident enough to have our Production Beanstalk environments running Spot Instances. We haven’t looked back since!” – Carlos Monteiro, Senior Product Manager, VTEX

Due to the fact that Elastic Beanstalk environments are dependent on their provisioned resources (i.e. CloudFormation, ELB and ASG), it is necessary to keep those in place and integrate with the underlying ASG. Once the Elastic Beanstalk integration is configured, Elastigroup takes control of the automatic actions and decisions made regarding instance provisioning, scaling and deploying.

With this completed, Spotinst Elastigroup is now able to run Elastic Beanstalk environments on Spot, VTEX simply selecting the option to “Utilize Reserved Instances” to make sure that their RI commitment was being utilized as well.

 

You can find out more about our Elastic Beanstalk in-ASG integration here

Kubernetes next on VTEX’s Roadmap to run on Spot

With all of VTEX’s Elastic Beanstalk environments currently running on Spotinst Elastigroup, the next environments to move over are Kubernetes. “Kubernetes is very strategically important for VTEX and the Spotinst MCS feature makes moving Kubernetes over to Spotinst Elastigroup not only appealing for savings,” said Carlos, “but also for helping my developers reduce the demands on their time. We can’t wait!”

Get Started For Free

14 days of free trial (No credit card required)

Start A Free Trial

Take a Deep Dive

Explore Spotinst's cluster software capabilities

Learn more