-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[Core] Update V2 Autoscaler to support scheduling using Node labels and LabelSelector API #53578
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
1233494
Pass node labels from gcs to autoscaler and use label_selector in com…
ryanaoleary 94b61fb
Update test
ryanaoleary 247af51
Fix pg_usage_labels test
ryanaoleary e603c00
Merge branch 'master' into autoscaler-labels
ryanaoleary f991648
Propogate labelselector info
ryanaoleary b51d643
Pass label selector info and add/update tests
ryanaoleary 161a8a4
Merge branch 'master' into autoscaler-labels
ryanaoleary 9d00796
Update c++ test to check all operators
ryanaoleary f6528bb
clang format
ryanaoleary 8adaa0e
Merge branch 'master' into autoscaler-labels
ryanaoleary 7d593ea
Fix c++ test
ryanaoleary bb9420f
Move LabelSelector message to common proto and add scheduling descriptor
ryanaoleary 8cb1816
Fix scheduling logic and add e2e test
ryanaoleary 18aa109
Fix remaining comments
ryanaoleary ece9c9d
Merge branch 'master' into autoscaler-labels
ryanaoleary 55c94f0
Fix FillAggregateLoad function
ryanaoleary 9871164
Fix microcheck
ryanaoleary 509c29a
Update python/ray/autoscaler/v2/utils.py
ryanaoleary 72aa01d
Make label score first priority
ryanaoleary d84b113
Merge branch 'master' into autoscaler-labels
ryanaoleary 202717b
Update label selector score comment
ryanaoleary 727486b
Add tests for fallback and scoring, and add label selector hashing
ryanaoleary c0a3f2c
Merge branch 'master' into autoscaler-labels
ryanaoleary c1a0eb4
Fix lint
ryanaoleary 0e8bf9f
Undo pydoclint change
ryanaoleary 20d0737
Update src/ray/common/scheduling/label_selector.h
ryanaoleary f799d11
Update src/ray/gcs/gcs_server/gcs_autoscaler_state_manager.cc
ryanaoleary 49e1ef4
Update src/ray/gcs/gcs_server/gcs_autoscaler_state_manager.cc
ryanaoleary 8a06698
Update src/ray/gcs/gcs_server/gcs_autoscaler_state_manager.h
ryanaoleary 65266a2
Update src/ray/gcs/gcs_server/gcs_autoscaler_state_manager.cc
ryanaoleary d0270ca
Update src/ray/gcs/gcs_server/gcs_autoscaler_state_manager.cc
ryanaoleary 7a04a3e
Update src/ray/gcs/gcs_server/gcs_resource_manager.cc
ryanaoleary 9b3bbbe
Remove friend tests, use absl hash, fix nit comments
ryanaoleary 1af13a1
Use move() and reserve vector length
ryanaoleary 701b97a
remove erroneous duplicate for loop
ryanaoleary c1a302c
Remove pydoclint baseline change
ryanaoleary c8bc79a
Merge branch 'master' into autoscaler-labels
ryanaoleary a4ee6c4
Merge branch 'master' into autoscaler-labels
ryanaoleary 4741c40
Fix pdyoclint-baseline
ryanaoleary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryanaoleary marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nit: I think we should also change the
_sort_resource_requestlogic in_try_scheduleto add labels to the sorting mechanism, as there can resource requests with exact same resource requirements but different label selectorsThere 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.
Sounds good to me, done in 8cb1816. I had it sort by the length of the constraints of the first selector, similar to how we sort based on the length of the placement constraints.