Repository navigation
[Core] Add worker resource limit - #17179
Merged
jovany-wang merged 4 commits intoJul 21, 2021
Merged
Conversation
chenk008
force-pushed
the
add_worker_resource_limit
branch
4 times, most recently
from
July 19, 2021 09:46
f5b3279 to
c2d82b0
Compare
simon-mo
reviewed
Jul 19, 2021
Contributor
There was a problem hiding this comment.
This won't be maintainable, can we use boost::json or other json library?
Contributor
Author
There was a problem hiding this comment.
@simon-mo Here we want to distinguish which resource is instance.
For example, a task request two cpu core. If CPU is instance resource , the allocation resource will be {"CPU":[10000,0,10000]}. If CPU is not instance resource, the allocation resource will be {"CPU":20000}
jovany-wang
requested changes
Jul 20, 2021
chenk008
force-pushed
the
add_worker_resource_limit
branch
from
July 20, 2021 11:38
cbc3762 to
a1247a5
Compare
ericl
reviewed
Jul 20, 2021
jovany-wang
reviewed
Jul 21, 2021
jovany-wang
approved these changes
Jul 21, 2021
Contributor
|
@rkooo567 Do you have any comment? |
chenk008
force-pushed
the
add_worker_resource_limit
branch
from
July 21, 2021 06:33
9bac832 to
8007b40
Compare
chenk008
force-pushed
the
add_worker_resource_limit
branch
from
July 21, 2021 06:35
8007b40 to
14d19f0
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why are these changes needed?
When ray worker started in container, we add cpushare limit, cpuset, memory limit when enable
worker_resource_restrictedWe can also use enviroment
CUDA_VISIBLE_DEVICESto add nvidia limit in next PRRelated issue number
#16871
Checks
scripts/format.shto lint the changes in this PR.