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

[data] [streaming] Enable actor fault tolerance by default for streaming map operator #33906

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Mar 30, 2023

Why are these changes needed?

Enable actor restarts (infinite) and also task retries (up to 5 by default).

Signed-off-by: Eric Liang <[email protected]>
# up to three retries per task. The user can customize this in map_batches via
# extra kwargs (e.g., map_batches(..., max_restarts=0) to disable).
if "max_restarts" not in ray_remote_args:
ray_remote_args["max_restarts"] = -1
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any reason why we want to restart actor infinitely? What if user code has bug, and causes the infinite retry and stuck?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thoughts here were that for a long running job, there could be an indefinite number of node failures. Hence, the number of actor restarts should be unbounded. If there is a bug, then the task retry limit will eventually raise the error.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we update the documentation?
Maybe we can do separately, as I checked the docs it looks we don't have an explanation about Dataset FT yet.

Signed-off-by: Eric Liang <[email protected]>
# up to three retries per task. The user can customize this in map_batches via
# extra kwargs (e.g., map_batches(..., max_restarts=0) to disable).
if "max_restarts" not in ray_remote_args:
ray_remote_args["max_restarts"] = -1
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we update the documentation?
Maybe we can do separately, as I checked the docs it looks we don't have an explanation about Dataset FT yet.

@ericl ericl added tests-ok The tagger certifies test failures are unrelated and assumes personal liability. Ray 2.5 labels Mar 30, 2023
@ericl ericl merged commit 6e1828e into ray-project:master Apr 4, 2023
ArturNiederfahrenhorst pushed a commit to ArturNiederfahrenhorst/ray that referenced this pull request Apr 10, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ray 2.5 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.

4 participants