-
Notifications
You must be signed in to change notification settings - Fork 32
🎨Autoscaling: warm buffers: create at minimum 1 machine at a time instead of asking directly for the required number #8262
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
a83d521 to
c39da4f
Compare
|
@mergify queue |
🟠 Waiting for conditions to match
|
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.
Pull Request Overview
This PR improves the reliability of warm buffer machine creation in the autoscaling service by modifying the EC2 instance creation strategy. Instead of requiring AWS to create all requested machines in a single batch (which could fail if resources are limited), it now allows AWS to create machines incrementally, starting with at least 1 machine at a time.
- Changes the minimum instance creation requirement from N machines to 1 machine
- Maintains the desired total number of machines while allowing for more flexible provisioning
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #8262 +/- ##
===========================================
- Coverage 88.03% 68.45% -19.59%
===========================================
Files 1919 781 -1138
Lines 74341 36587 -37754
Branches 1305 175 -1130
===========================================
- Hits 65449 25047 -40402
- Misses 8499 11483 +2984
+ Partials 393 57 -336
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for ff30fe6. ✅ Passed Jobs With Interesting Signals
|
…m:sanderegg/osparc-simcore into autoscaling/create-1-warmbuffer-at-a-time
|



What do these changes do?
While working on #8099 and after setting once a lot of warm buffer machines, it was discovered that the warm buffer background task is not creating machines in a reliable way.
The EC2 interface allows to create a number of instances between a
minimumand amaximumand the warm buffers were created always with both set to the same number. That means that if one would ask for 20 warm buffers suddenly EC2 would have to create 1 batch of 20.This PR changes this to ask between 1 and N machines. Therefore if AWS can provide 1 machine at a time it will work as well.
Related issue/s
How to test
Dev-ops