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

Scheduler graceful shutdown #565

Open
thinkharderdev opened this issue Dec 13, 2022 · 0 comments · May be fixed by #735
Open

Scheduler graceful shutdown #565

thinkharderdev opened this issue Dec 13, 2022 · 0 comments · May be fixed by #735
Labels
enhancement New feature or request

Comments

@thinkharderdev
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)

We currently have graceful shutdown for the Ballista executors. We should have a similar behavior for the scheduler.

Describe the solution you'd like
A clear and concise description of what you want to happen.

When the scheduler process receives a SIGTERM (or the equivalent on non-Linux), it should initiate a graceful shutdown. This would consist of:

  1. Stop accepting new jobs. If a new job is submitted return an error indicating the scheduler is shutting down.
  2. Continue to accept job status requests
  3. Do not shutdown until either
    i. All active jobs on the scheduler are completed
    ii. Some configured timeout (default 30s?) elapses

This could be extended in the future to try and "hand off" scheduling to other schedulers but that is not necessary for now.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

We could do nothing

Additional context
Add any other context or screenshots about the feature request here.

@thinkharderdev thinkharderdev added the enhancement New feature or request label Dec 13, 2022
@zhzy0077 zhzy0077 linked a pull request Apr 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant