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

Task submission from local scheduler client is blocking #2940

Open
stephanie-wang opened this issue Sep 25, 2018 · 0 comments
Open

Task submission from local scheduler client is blocking #2940

stephanie-wang opened this issue Sep 25, 2018 · 0 comments
Labels
P3 Issue moderate in impact or severity

Comments

@stephanie-wang
Copy link
Contributor

Describe the problem

The local scheduler client submits tasks by creating the task spec and then writing the task spec synchronously to the local scheduler socket. This can block, if the socket buffer is full or if the local scheduler does not read from the socket quickly enough. When the local scheduler client has many tasks to submit, this can add a lot of delay, since there is a high chance that one of them will block on writing to the socket. Then, the client can't create the next task until the write completes and the issue repeats.

Potential solutions/mitigations include:

  • Increasing the local scheduler socket write buffer size
  • Writing to the socket asynchronously (requires running an event loop and/or possibly writing in a separate thread)
  • A batch interface for task submission that allows multiple tasks to be submitted at once
@ericl ericl removed the perf label Mar 5, 2020
@simon-mo simon-mo added the P3 Issue moderate in impact or severity label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Issue moderate in impact or severity
Projects
None yet
Development

No branches or pull requests

3 participants