Home / Companies / CircleCI / Blog / Post Details
Content Deep Dive

Graceful shutdown using AWS Auto Scaling groups and Terraform

Blog post from CircleCI

Post Details
Company
Date Published
Author
Ian Davis
Word Count
1,705
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

The text discusses the challenges and solutions associated with using Amazon's Auto Scaling Groups (ASGs) for managing the server fleet of CircleCI.com, highlighting that the default ASG termination policy is too abrupt for their needs. CircleCI requires a more nuanced approach due to the necessity of graceful shutdowns, as their servers are often running customer builds that must be completed before termination. Instead of relying solely on ASGs, CircleCI developed a custom system to accommodate their predictable usage patterns, involving a combination of AWS services like AWS Lambda, SNS, SSM, and Terraform, to facilitate a more controlled and customizable scaling process. This approach allows CircleCI to offer a pre-packaged, easy-to-configure solution for their Enterprise customers, balancing immediate value with advanced customization capabilities. The solution involves using Lifecycle Hooks for notifications and executing commands for graceful termination, demonstrating the flexibility and adaptability of ASGs when combined with other AWS tools for specific operational requirements.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 10 538 87 34 +25%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.