Skip to content

Builds: set scale-in protection before/after each build #10507

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

Merged
merged 6 commits into from
Jul 10, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Jul 3, 2023

We use AWS scale-in protection to protect our instances from being scaled-in automatically while running a build. This avoids killing the build in the middle while it's running.

Besides, it could help us to be more aggressive to scale-in if we consider without degrading user experience.

Related https://github.com/readthedocs/readthedocs-ops/issues/1324
Requires: https://github.com/readthedocs/readthedocs-ops/pull/1356

We use AWS scale-in protection to protect our instances from being scaled-in
automatically while running a build. This avoids killing the build in the middle
while it's running.

Besides, it could help us to be more aggressive to scale-in if we consider
without degrading user experience.

Related readthedocs/readthedocs-ops#1324
@humitos humitos requested a review from a team as a code owner July 3, 2023 12:22
@humitos humitos requested a review from stsewd July 3, 2023 12:22
Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

LGTM, you may want a review from someone else too, I'm not that familiar to know if there are any side effects from this.

@humitos humitos requested a review from agjohnson July 5, 2023 22:33
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

The change here is looking good, though I might hesitate to turn this on for all projects all at once. If feature flag is too much, we can always test this with a partial deploy or something, but I suspect we might want to leave this on for a while to test this all works as expected.

humitos and others added 2 commits July 6, 2023 11:48
This way we will be able to have more control and enable/disable this without
requiring a deploy in case that something goes wrong.
@humitos
Copy link
Member Author

humitos commented Jul 6, 2023

I put the scale-in protection under a feature flag. It's ready for re-review.

@humitos humitos requested a review from agjohnson July 6, 2023 09:54
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

This looks great. I'm excited to see what exactly this does for us 🤞

@humitos humitos enabled auto-merge (squash) July 10, 2023 10:19
@humitos humitos merged commit 3a9befe into main Jul 10, 2023
@humitos humitos deleted the humitos/set-instance-protection-on-builds branch July 10, 2023 10:50
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.

3 participants