-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
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
There was a problem hiding this 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.
There was a problem hiding this 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.
Co-authored-by: Anthony <[email protected]>
This way we will be able to have more control and enable/disable this without requiring a deploy in case that something goes wrong.
I put the scale-in protection under a feature flag. It's ready for re-review. |
There was a problem hiding this 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 🤞
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