-
Notifications
You must be signed in to change notification settings - Fork 90
[Subnet Prioritization] Support capacity-optimized-prioritized and prioritized Allocation Strategy #671
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
base: develop
Are you sure you want to change the base?
Conversation
…leet call Signed-off-by: Hanxuan Zhang <[email protected]>
Signed-off-by: Hanxuan Zhang <[email protected]>
…rams launching with EnableSingleAvailabilityZone and prioritized|capacity-optimized-prioritized AllocationStrategy Signed-off-by: Hanxuan Zhang <[email protected]>
Signed-off-by: Hanxuan Zhang <[email protected]>
…ity-optimized-prioritized when using EnableSingleAvailabilityZone Signed-off-by: Hanxuan Zhang <[email protected]>
src/slurm_plugin/fleet_manager.py
Outdated
# set SingleAvailabilityZone to False | ||
"SingleAvailabilityZone": ( | ||
self._compute_resource_config["Networking"]["SingleAvailabilityZone"] | ||
if self._compute_resource_config["Networking"]["SingleAvailabilityZone"] is not None |
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.
I would suggest that you add a condition here where we check if the allocation strategy is the one we want and then apply SingleAvailibilityZone. We don't want to use this parameter if we use lowest-price AllocationStrategy
src/slurm_plugin/fleet_manager.py
Outdated
for instance_type in self._compute_resource_config["Instances"]: | ||
subnet_ids = self._compute_resource_config["Networking"]["SubnetIds"] | ||
for subnet_id in subnet_ids: | ||
overrides.update({"InstanceType": instance_type["InstanceType"], "SubnetId": subnet_id}) | ||
if ( | ||
self._compute_resource_config.get("AllocationStrategy") == "prioritized" |
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.
We should also check if the CapacityType is the one that we want along with allocation strategy, the reason we should add that even if that's already taken care in CLI validator is because customer can suppress or ignore and move forward.
CHANGELOG.md
Outdated
- There were no changes for this version. | ||
- Support prioritized|capacity-optimized-prioritized Allocation Strategy and EnableSingleAvailabilityZone |
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 should be in 3.14.0
src/slurm_plugin/fleet_manager.py
Outdated
self._compute_resource_config["Networking"]["SingleAvailabilityZone"] | ||
if self._compute_resource_config["Networking"]["SingleAvailabilityZone"] is not None |
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.
Are you sure self._compute_resource_config
always has "Networking" section?
src/slurm_plugin/fleet_manager.py
Outdated
self._compute_resource_config["Networking"]["SingleAvailabilityZone"] | ||
if self._compute_resource_config["Networking"]["SingleAvailabilityZone"] is not None | ||
and ( | ||
self._compute_resource_config.get("AllocationStrategy") == "prioritized" |
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.
Nitpick: Can we check these conditions using a function as we keep checking this above an here
Signed-off-by: Hanxuan Zhang <[email protected]>
Signed-off-by: Hanxuan Zhang <[email protected]>
Signed-off-by: Hanxuan Zhang <[email protected]>
Description of changes
Tests
References
Checklist
develop
add the branch name as prefix in the PR title (e.g.[release-3.6]
).Please review the guidelines for contributing and Pull Request Instructions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.