Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QOLDEV-833 Run autoscaling groups on custom AMIs #613

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

ThrawnCA
Copy link
Contributor

@ThrawnCA ThrawnCA commented Dec 3, 2024

Prepare instances to a "cold standby" state and generate machine images from them, then apply those images to the autoscaling groups.

This should give us dramatically improved server start and failover times, as well as reducing the risk of failures resulting from upstream dependency changes (because dependency installation takes place during the deployment, when the image is created, not when each server is started).

ThrawnCA and others added 3 commits December 2, 2024 12:37
- Start template instances after defining the stack and plugins, but before launching autoscaling instances
- Stop template instances and generate AMIs from them
- Provide the AMI IDs to the autoscaling instance creation
- Custom images allow much faster starts
- Recipes that will record the instance ID need to run during the 'configure' phase, not 'deploy'
@ThrawnCA ThrawnCA requested a review from a team December 3, 2024 04:42
Copy link
Member

@duttonw duttonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some improvements for later or now.

templates/AMI-Template-Instances.cfn.yml.j2 Show resolved Hide resolved
inventory/hosts Outdated Show resolved Hide resolved
@ThrawnCA ThrawnCA merged commit ee71096 into develop Dec 5, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants