-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Ensure pods fit on mixed instance pools #2057
Comments
/sig aws |
Still working on a doc in internal review.. This takes some time. I checked several limitation with our EC2 teams and seems no perfect solution right now. We can make it work for some cases but won't cover all use case. Currently, the best practice here is to use The assumption here is container can alway run on the
|
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We use launch templates with mixed instance types with varying CPU and memory for spot instance pools in AWS.
This poses some challenges for the estimation of available CPU and memory on an ASG.
In our use-case we would like to use the smallest resources of each type across all instances (not the smallest instance, but that smallest value for each resource type).
This ensures that that if the autoscaler scales up an ASG, the pods are guaranteed to actually fit on it.
IIUC as soon as an instance was created, that instance is used for estimation of the size that can be expected of that ASG. But this assumption is not necessarily true.
Let's assume m5.xlarge and m5.2xlarge are in the same ASG and the autoscaler randomly brings up a m5.2xlarge it will use this for estimation. But the next instance might be a m5.xlarge. If the autoscaler chose this ASG for scale-up because it would fit an especially large pod, scheduling it would fail.
We would like to fix this. I am wondering whether this minimum resources across the ASG is a good default for everyone. If it is not, I would like to be able to override the CPU and memory available in an ASG using manually set tags on the ASG.
Manual tagging has already been pondered in #1650 (specifically #1656 (comment)) for a different use-case and could be extended for CPU and memory. One possible blocker for this that IIRC the autoscaler wouldn't use the
buildNodeFromTemplate
if there are existing nodes. It would then use the existing nodes as a template (with all the problems described above).Which of the two approaches would you favor? Or do you see a better solution alltogether?
The text was updated successfully, but these errors were encountered: