Skip to content

[autoscaler] Create Docker Command Runner#8806

Merged
richardliaw merged 6 commits intoray-project:masterfrom
ijrsvt:docker-command-runner
Jun 6, 2020
Merged

[autoscaler] Create Docker Command Runner#8806
richardliaw merged 6 commits intoray-project:masterfrom
ijrsvt:docker-command-runner

Conversation

@ijrsvt
Copy link
Copy Markdown
Contributor

@ijrsvt ijrsvt commented Jun 5, 2020

Why are these changes needed?

This PR is the first in a few PRs to refactor how the autoscaler interfaces with docker. This PR mainly focuses on how the CommandRunner is instantiated. The DockerCommandRunner mostly passes commands down to an enclosed SSHCommandRunner. The main functionality change
is that rsync actually sends the file into docker.

Related issue number

Closes #4183
Closes #4403
Replaces #8527

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/latest/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failure rates at https://ray-travis-tracker.herokuapp.com/.
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested (please justify below)

@AmplabJenkins
Copy link
Copy Markdown

Can one of the admins verify this patch?

process_runner=subprocess,
use_internal_ip=False):
use_internal_ip=False,
docker_config=None):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just pass the entire config in?
Currently provider_config, auth_config, cluster_name, and file_mounts (and now docker_config) are all parts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, let's pass in the docker_config like what you're doing now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay--is there a specific reason for this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it helps isolate what is needed and what is not needed. For example, initialization_commands is also part of the config, but there are times when we use the NodeUpdater where we want to run it and when we don't want to.

@ijrsvt ijrsvt requested review from ericl, richardliaw and simon-mo June 5, 2020 20:40
@richardliaw richardliaw self-assigned this Jun 5, 2020
ijrsvt and others added 2 commits June 5, 2020 14:04
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
Copy link
Copy Markdown
Contributor

@ericl ericl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice!

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/26809/
Test PASSed.

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/26813/
Test PASSed.

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/26812/
Test PASSed.

@richardliaw
Copy link
Copy Markdown
Contributor

Is this ready to merge?

@ijrsvt
Copy link
Copy Markdown
Contributor Author

ijrsvt commented Jun 6, 2020

@richardliaw Yes it is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tune/autoscaler] _LogSyncer cannot rsync with Docker [autoscaler] Ray submit with docker doesn't rsync the script to the container

4 participants