Skip to content
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

Prevent Local Worker creation from blocking remote worker creation by creating remote workers before local worker #10245

Merged

Conversation

raoul-khour-ts
Copy link
Contributor

@raoul-khour-ts raoul-khour-ts commented Aug 21, 2020

Why are these changes needed?

In my experiments, our environment can take ~1 minute to start up. I have noticed that the local worker blocks the creation of the remote workers. This means I end up paying 2 minutes for the environment startup. However, since the creation of the remote workers is non-blocking if we simply create them first we save this cost.

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
    I have not created new tests for this since existing test makes sure the logic does not break and my local testing has shown that this speeds up experiment initialization.

@sven1977
Copy link
Contributor

Hmm, sounds great. Thanks for the PR. @ericl: Any objections to the flipped order of doing things?

@sven1977 sven1977 requested a review from ericl August 24, 2020 18:42
@sven1977
Copy link
Contributor

Tests seem all fine.

@sven1977 sven1977 added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Aug 24, 2020
@raoul-khour-ts raoul-khour-ts force-pushed the rrk/remote_workers_before_local_worker branch from d0a58fb to 1524acb Compare August 24, 2020 19:14
@raoul-khour-ts
Copy link
Contributor Author

I accidentally pushed up change to format.sh (to use python3 instead of python) but removed that.

@ericl ericl merged commit c8c4832 into ray-project:master Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants