-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[serve] Integrate GCS fault tolerance with ray serve. #25637
Conversation
python/requirements.txt
Outdated
@@ -78,6 +78,7 @@ pygments | |||
pyspark==3.1.2 | |||
pytest==5.4.3 | |||
pytest-asyncio==0.16.0 | |||
pytest-forked |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used in test_gcs_failure.py to make the test isolated with each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we use this elsewhere in CI? I think you can specify this in bazel instead. prefer to avoid adding a new dep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly nits, @simon-mo can you chime on on the pytest-forked
question?
python/requirements.txt
Outdated
@@ -78,6 +78,7 @@ pygments | |||
pyspark==3.1.2 | |||
pytest==5.4.3 | |||
pytest-asyncio==0.16.0 | |||
pytest-forked |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we use this elsewhere in CI? I think you can specify this in bazel instead. prefer to avoid adding a new dep
@edoakes @simon-mo @shrekris-anyscale any other comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: pytest-forked. I think we should add it back to the requirements.txt and then add comment to explain the --forked
cmdline flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on the changes! If we add back the pytest-forked
dependency, do you think we should pin the version? I don't feel too strongly about it, so I'm okay either way.
@simon-mo @shrekris-anyscale I'm working on I'll add it back to requirement.txt in this PR |
Why are these changes needed?
In this PR, we integrate GCS fault tolerance with ray serve. There are two parts in this PR:
Rollback should be added to all methods, not just deploy actually, so followup PR should be introduced to fix that.
Basic testing for KV timeout in serve and deploy is added. Right now, when GCS restarts, the existing replica will exit due to PG failure. We should fix this in ray core in the followup PR.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.