Holy cow! CattleEye reduces EC2 cost by over 60% with PerfectScale for Spot
Meet CattleEye
Livestock platform partners with DoiT to scale its business, not its costs
CattleEye is the worldโs first hardware-independent autonomous livestock monitoring platform. Providing daily mobility and body condition scores for cows, CattleEye helps farmers manage the health and welfare of their herd. The service is valuable โ CattleEye has been proven to save their customers up to $420 per cow per year in management costs. And against an annual cost of $500 to $1000 per cow per year, this represents a meaningful savings for a cattle farmer.
The challenge
Running inference pipelines on AWS Batch, CattleEye applies computer vision technology to off-the-shelf cameras, monitoring cows and analyzing footage to improve the welfare of over a million cows. But real-time analysis of cows is a compute-intensive job, and AWS EC2 drives the majority of CattleEyeโs costs.ย
As their customer base grew, they saw AWS compute costs triple in a matter of a few months. These costs are complicated by the organizationโs irregular demands for compute capacity. Videos tend to come in batches at the end of a defined window for each farm (ex. 9am-1pm), and are processed as they arrive, so they can be running on 100+ machines at a time. But the defined windows arenโt evenly distributed throughout the day. CattleEye was also looking to run inference compute on the edge via AWS Panorama, making future capacity needs unknown.ย
Together, these business needs made purchasing AWS Savings Plans (SPs) or Reserved Instances (RIs) impractical. Clearly, the market presented lots of opportunity, and CattleEye needed to grow if they wanted to capture it. But growth meant a need for additional funding and partner programs like the AWS ISV Accelerate Program through AWSโs Foundational Technical Review (FTR) โ and getting more funding meant that CattleEye needed to wrangle its costs.ย
Managing cloud costs was the responsibility of CattleEye engineering leader Mike McFarland. Like many in his role, McFarland knew that CattleEye was overspending on their cloud, but he couldnโt identify specific cost drivers. To do so, he knew he would need granular visibility into spend โ from projects to cost centers to usage spikes. And he needed the ability to share these views and insights with his key stakeholders like the CEO and customer success team.ย
Initially, McFarland considered AWS Spot before the solution presented significant technical restrictions.ย
โWe initially ran our inference pipelines on GPU instances, but werenโt able to leverage Spot as much as we wouldโve liked. And researching other instances we could run on that would allow us to use Spot more frequently was time consuming.โ
The solution
CattleEye has been familiar with DoiT International since they launched their first version of the livestock monitoring platform. Given this history, McFarland knew he could leverage DoiTโs consulting and cloud management technologies to reduce compute costs and complete their Foundational Technical Review.
First, CattleEye turned to DoiT Spot Scaling, which manages the instance composition of their Auto Scaling Groups (ASGs) so they could better adopt Spot instances. Initially relying solely on on-demand instances, now their batch processing runs 100% on Spot instances โ and CattleEye is saving big as a result.ย
โWe use Spot Scaling for running our batch processing, and weโve saved between 50% – 60% compared to on-demand by benefiting from Spot Scalingโs instance recommendations.โ
With costs better managed, McFarland set out to help his internal stakeholders to better understand and visualize their cloud costs. For this, he leveraged DoiTโs Cloud Analytics Reports and Attributions. Using Attributions, CattleEye grouped cloud resource costs into โbucketsโ that represented different cost centers (production, dev, data science, etc.). With these โbucketsโ, they could build reports and use them as a Grafana data source to unify cloud and observability costs in a single dashboard. Finally, internal stakeholders had a view and understanding of the costs of their work!
Finally, McFarland was ready to put these new reports and insights into practice. Like many engineering leads, however, he had a small team that was already focused on developing and supporting their own products. Instead of leaning on his own in-house engineers, McFarland and CattleEye were able to leverage DoiTโs Senior Solutions Architects to prepare for their Foundational Technical Review (FTR). Together, McFarland and the DoiT team underwent a Well-Architected Review to validate some architecture decisions made ahead of the FTR.
โDoiTโs Solutions Architects have been an invaluable resource, particularly in helping us navigate and prepare for the AWS Foundation Technical Review. We are a start-up with a small team, so DoiTโs inside knowledge of the processes allowed us to focus our efforts in the right places. This saves us time and minimizes distractions from building our product.โย
The results have been impactful to this small, growing innovator. CattleEye has expanded its sales channels, secured AWS funding for additional deployments, and added credibility to their product with the โReviewed by AWSโ badge.
The result
- Cut on-demand EC2 costs by over 60% with Spot Scaling
- Converted 100% of batch processing to run on AWS Spot
- Secured additional sales channels and funding through the AWS Foundational Technical Review (FTR)

