-
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
Add MixedInstancesPolicy struct to better handle instance type #2248
Conversation
702d4bc
to
ab24b62
Compare
I've been looking at this issue; I've not tried this patch but based on the code in master I'm seeing the LaunchTemplate from the MixedInstances configuration returning an empty string for the template version. Setting this to "$Default" when the string is empty appears to fix the issue of it not being able to construct node information when scaling to 0. |
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.
Fix issue that user can not build instance type using MixedInstanceType.
Jiaxin, I'd appreciate a little bit more descriptive commit message/PR comment than above. Something that describes exactly what was being fixed and why.
Perhaps something like this?
"Ensures that when MixedInstancePolicy is used in an AWS AutoScalingGroup, that
the buildInstanceType() AWS manager method returns an instance type after looking
at the MixedInstancePolicy.LaunchTemplateSpecification. The buildInstanceType()
method is called in numerous places including on cluster scale up actions.
Also adds documentation highlighting the minimum version of cluster autoscaler
supporting MixedInstancePolicy is 1.14."
ab24b62
to
e328966
Compare
@jaypipes Thanks for the feedbacks. Resolve all the comments and please have another look |
Ensures that when MixedInstancePolicy is used in an AWS AutoScalingGroup, that the buildInstanceType() AWS manager method returns an instance type after looking at the MixedInstancePolicy.LaunchTemplateSpecification. The buildInstanceType() method is called in numerous places including on cluster scale up actions. Also adds documentation highlighting the minimum version of cluster autoscaler supporting MixedInstancePolicy is 1.14
e328966
to
8d567eb
Compare
Great! I add the comment to git commit. |
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.
Awesome, thank you @Jeffwan! :)
/cc @MaciekPytel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: losipiuk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@coreypobrien This is a bug fix and should be a cherry-pick candidate to 1.14 and 1.15. |
CA 1.15 cherry-pick #2248
Fix issue that user can not build instance type using MixedInstanceType.
#2246
@jaypipes