On the dot Achieves 73% Savings Using Spotinst ECS Integration

On the dot keeps developers agile and costs down using Spotinst

Developer Freedom Leads to Increased Agility but also Increased Cost

Developer freedom is important to On the dot. The On the dot team have the ability to deploy and scale fast, yet this enhanced agility for the dev team comes with a trade-off: increasingly high costs. Don Tran, Head of Platform Services at On the dot, needed a way to combat the high costs without undermining the freedom and agility of the developer team.

Spot Instances seemed a great way for On the dot to reduce these costs, but the On the dot infrastructure, and particularly the ECS instances backed by Auto-scaling groups, were somewhat bespoke and not immediately compatible with Spot Instances.

For the On the dot team, rearchitecting their environment to suit Spot better may have been possible, but was a task which would require an immense amount of developer man-hours. The On the dot team’s focus would remain, and would always need to remain, with building up and maintaining the core business. Put simply, the team didn’t have the man-hours spare to undertake the huge project of adapting their infrastructure to utilize Spot Instances.

Spotinst Provides Effortless Spot Instance Utilization in a Matter of Hours

On the dot’s Platform Engineering team met with Spotinst at one of the monthly workshops run by the Spotinst team in London. After the session with one of Spotinst’s top Solution Architects, On the dot and Spotinst began discussing in more detail how the Spotinst platform could allow On the dot to utilize Spot Instances without creating more work for the team.

On the dot’s setup required ECS Task Placement Constraints with Spotinst’s ECS integration and Autoscaler. Within days the ECS Task Placement Constraints feature was added to the Spotinst integration and On the dot were ready to migrate. With the new feature made available to the team, the first environments to migrate over (dev and testing) were running on Spotinst after only an afternoon’s work.

ECS Integration Leads to Savings of 73%

Through Spotinst’s ECS integration, On the dot were able to achieve savings of 73% and now have nearly all applicable workloads running on Spotinst.

Spotinst’s ECS autoscaler features intelligent scaling, as Spotinst makes sure to utilize the best scaling practices to maximise cluster efficiency:

  • Headroom – a buffer of spare capacity (in terms of memory and CPU) will be provisioned to make sure that there is no need to wait for new instances when scaling up whilst simultaneously ensuring instances won’t become over-utilized.
  • Smart Scaling Down – Spotinst Elastigroup will monitor the cluster for idle instances which remain underutilized for a specified amount of consecutive periods. Once identified, Elastigroup will find spare capacity in other instances, drain those instance tasks and reschedule those on other instances before terminating the idle instance.
  • Tetris Scaling – Elastigroup records the events written when an ECS task is pending and analyzes why they are yet to be started (i.e. Insufficient Memory / CPU, No Ports Available, etc.). It will then spin up instances inside the customer’s cluster which will resolve the issues with the pending task, allowing better optimization for containerized environments without any additional input from developer teams.

24/7 Customer Support Means Complete Confidence for On the dot

You were available 24/7, always there with answers and resolutions. For us, this is a big sticking point when choosing SaaS vendors” – Don Tran, Head of Platform Services at On the dot

However streamlined integration processes are with Spotinst, complications do sometimes arise. Spotinst’s dedicated Customer Success team is available all day, every day to help resolve issues that might arise with customer’s accounts or else simply answer any queries to help customers better use the platform. This was important to On the dot, as their complex ECS architecture meant that being safe in the knowledge that a Spotinst expert was always available and more than happy to help was a big bonus for the team.

Using Spotinst Frees up On the dot’s Developers to Explore New Options

Since utilizing Spotinst to reduce costs without requiring additional man-hours, On the dot is free to explore new possibilities: Don’s team is looking into Amazon EKS, currently trialing how Kubernetes will work with their environment with the idea to then move this to Spotinst to create the most optimized environment possible! The On the dot team are also working towards creating a completely serverless architecture, dedicated as the team is to constantly utilizing the most advanced technical practices available.