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

[Core] Fix jobs longer than 12 days #3460

Merged
merged 3 commits into from
Apr 22, 2024
Merged

[Core] Fix jobs longer than 12 days #3460

merged 3 commits into from
Apr 22, 2024

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented Apr 22, 2024

ray.wait will timeout after 12 days, which is not enough for long-running services, and we have to wait for the job to finish.

Reference: https://github.com/ray-project/ray/blob/ray-2.9.3/python/ray/_private/worker.py#L2845-L2846

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • sky launch -c test-4 "echo hi; sleep 100; echo bye" --cloud gcp --cpus 2 --num-nodes 4
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

Copy link
Member

@concretevitamin concretevitamin left a comment

Choose a reason for hiding this comment

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

Great catch @Michaelvll! +1 on checking with user whether SkyServe's replica recovery kicked in. (LMSys definitely ran longer than 12 days and sounds like this error was transparently recovered?)

sky/backends/cloud_vm_ray_backend.py Outdated Show resolved Hide resolved
@Michaelvll
Copy link
Collaborator Author

Great catch @Michaelvll! +1 on checking with user whether SkyServe's replica recovery kicked in. (LMSys definitely ran longer than 12 days and sounds like this error was transparently recovered?)

Yes, supposedly the issue should be caught by the controller and recovered. The issue was introduced by #3081, where we changed ray.get to ray.wait while the former one does not have the issue for the timeout: https://github.com/ray-project/ray/blob/62655e11ed76509b78654b60be67bc59f8f3460a/python/ray/_private/worker.py#L818

Not sure if LMSYS was using the older version.

@Michaelvll Michaelvll merged commit 19df9d3 into master Apr 22, 2024
20 checks passed
@Michaelvll Michaelvll deleted the long-job branch April 22, 2024 20:43
@concretevitamin
Copy link
Member

Yes, supposedly the issue should be caught by the controller and recovered.

Maybe we can test for this by setting timeout to, say, 10 mins, and observe after 10mins of serving what happens?

@Michaelvll
Copy link
Collaborator Author

Michaelvll commented Apr 22, 2024

Maybe we can test for this by setting timeout to, say, 10 mins, and observe after 10mins of serving what happens?

Ahh, actually, after thinking more, the problem was probably more severe, as the controller job will fail due to the issue, so the recovery will fail...

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.

2 participants