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

Increase AMI garbage collection to 100 images per run #1417

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

yob
Copy link
Contributor

@yob yob commented Dec 18, 2024

I started with 10 while I was building the pipeline, mainly to limit the blast radius if I accidentally deregistered the wrong images.

The pipeline is now up and running and I've manually run it a few times. It's working just as planned, and only un-versioned images created more than a year ago are being deregistered.

I'm confident we can increase this to a higher number now. Looking at the logs for some regions, I can see most have 900-1200 images in them. Once this chance merges, I'll do a couple of manually runs to cut those numbers down by a few hundred, then we can rely on the weekly scheduled build to keep the number down over time.

I started with 10 while I was building the pipeline, mainly to limit the
blast radius if I accidentally deregistered the wrong images.

The pipeline is now up and running and I've manually run it a few times.
It's working just as planned, and only un-versioned images created more
than a year ago are being deregistered.

I'm confident we can increase this to a higher number now. Looking at
the logs for some regions, I can see most have 900-1200 images in them.
Once this chance merges, I'll do a couple of manually runs to cut those
numbers down by a few hundred, then we can rely on the weekly scheduled
build to keep the number down over time.
@yob yob requested a review from a team December 18, 2024 01:39
@yob yob merged commit 3d525c3 into main Dec 18, 2024
1 check failed
@yob yob deleted the increase-ami-deregistration-rate branch December 18, 2024 02:10
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