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

[Autoscaler][Local Node Provider] Log a warning if max_workers < len(worker_ips) #24635

Merged

Conversation

DmitriGekhtman
Copy link
Contributor

@DmitriGekhtman DmitriGekhtman commented May 10, 2022

Why are these changes needed?

Follow-up to #21710.

Resolves some of the UX problems expressed in https://stackoverflow.com/questions/72060228/ray-cluster-connection-closed-example-script-displays-127-0-0-1-instead-of-head/72089615?noredirect=1#comment127388667_72089615

Logs a warning when a user sets max_workers for local node provider less than the number of available ips.

Also removes defaults of 0 for min_workers and max_workers from example configs to help prevent users inadvertantly setting max_workers=0 again.

Related issue number

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/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@DmitriGekhtman
Copy link
Contributor Author

Was about to post an issue about it, realized it would be faster to just fix it.

@@ -1,11 +1,7 @@
cluster_name: default
min_workers: 0
max_workers: 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't need to demonstrate non-default autoscaling settings anywhere except example-full.

@DmitriGekhtman
Copy link
Contributor Author

Test failures unrelated.

@DmitriGekhtman DmitriGekhtman merged commit 29eebdf into ray-project:master May 10, 2022
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.

3 participants