Repository navigation
[Core] start worker in container - #16671
Merged
ericl merged 26 commits intoJun 29, 2021
Merged
Conversation
chenk008
force-pushed
the
worker_in_container_redesign
branch
from
June 29, 2021 05:44
52bd87e to
7fdbe5d
Compare
ericl
approved these changes
Jun 29, 2021
ericl
left a comment
Contributor
There was a problem hiding this comment.
LGTM, thanks for taking the time to integrate this into runtime_envs properly! Have some comments but let's merge so this can be more easily tried out.
| commands: | ||
| - LINUX_WHEELS=1 ./ci/travis/ci.sh build | ||
| - pip install docker | ||
| # We build image ray-nest-container:nightly-py36-cpu which have installed podman,but not push it. |
Contributor
There was a problem hiding this comment.
nit: maybe call this ray-worker-container (can rename later)
| dependency will be automatically installed into the docker image | ||
| to ensure compatibility with the cluster Ray. The `run_options` | ||
| dict spec is here: https://docs.docker.com/engine/reference/run/ | ||
| container_option (dict): Require a given (Docker) container image, |
Contributor
There was a problem hiding this comment.
Maybe just container? (can change later)
Contributor
|
Windows flaky tests also occur on master. |
1 of 6 tasks
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?
We want to use container image to support different dependencies.
This is the first pull request to implements that feature, worker process will be started in specified container image by using Podman,
Based on the discussion in #15976, this PR uses
setup_worker.pyto start container. I moved thesetup_runtime_envinto the container, there are two reasons:We will add resource limit in next PR.
Related issue number
#14077
Checks
scripts/format.shto lint the changes in this PR.