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

Introduce task heartbeat service #56619

Closed
wants to merge 3 commits into from
Closed

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented May 12, 2020

I marked this PR as WIP because I think we should cancel orphaned tasks when a channel gets disconnected rather than relying on the heartbeats. The main concern here is the task keepalive interval. If it's too large, then we don't benefit much from the cancellation as the orphaned tasks already consume the resources significantly. And it's very dangerous to lower that interval as we can cancel tasks prematurely. I think we should use the task heartbeat service for cleaning up ban parent markers and releasing search contexts.

Relates #55779

@dnhatn dnhatn added WIP :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. labels May 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Task Management)

@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 12, 2020
dnhatn added a commit that referenced this pull request May 13, 2020
If a channel gets disconnected, then we should cancel the tasks 
associated with that channel as their results won't be retrieved.

Closes #56327
Relates #56619
dnhatn added a commit that referenced this pull request May 14, 2020
If a channel gets disconnected, then we should cancel the tasks
associated with that channel as their results won't be retrieved.

Closes #56327
Relates #56619

Backport of #56620
@dnhatn
Copy link
Member Author

dnhatn commented May 26, 2020

Integrated in #55779.

@dnhatn dnhatn closed this May 26, 2020
@dnhatn dnhatn deleted the task-heartbeat branch May 26, 2020 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants