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

allow node drain to block on batch allocs #1523

Closed
dvusboy opened this issue Aug 4, 2016 · 10 comments
Closed

allow node drain to block on batch allocs #1523

dvusboy opened this issue Aug 4, 2016 · 10 comments

Comments

@dvusboy
Copy link

dvusboy commented Aug 4, 2016

It would be useful to support letting batch tasks finish when node-drain is enabled on a node. This can be handled with a new flag to nomad node-drain. When present it would:

  • block new allocations to the node
  • relocate service tasks to other available nodes
  • terminate system tasks on the node
@olenm
Copy link

olenm commented Aug 8, 2016

Do you mean to have 3 flags for node-drain which would allow the manual triggering of the bullet-points you listed?

@dvusboy
Copy link
Author

dvusboy commented Aug 8, 2016

Not really, I believe node-drain already does all 3 (I assume it does not "relocate" system tasks) actions and also relocate batch tasks. I'd like the flag to cause node-drain to only do these 3 actions, suppressing the relocation of batch tasks.

@stongo
Copy link

stongo commented Mar 21, 2017

Is this being worked on? We are very motivated to add this feature but don't want to duplicate any efforts if this is already a work in progress. If not already in progress, we would most likely be willing to dedicate some engineering time to add this feature.

@dadgar
Copy link
Contributor

dadgar commented Mar 21, 2017

@stongo No it is not currently being tackled. I would add a string DrainType that could be used to control the behavior of the drain. Then the next place to tackle would be generic_sched.go

@endocrimes
Copy link
Contributor

Hey @dadgar,

I have a WIP patch that implements this feature for our deployment needs - But I'd like some opinions on how best to implement the UI for this in a way that works for the project itself.
How would you best want to expose this to users, only expose draining batch jobs, or also allow waiting for services?

@dadgar
Copy link
Contributor

dadgar commented Dec 14, 2017

@dantoml Hey! So this is pretty good timing as @schmichael will be working on our next generation node draining strategies as part of Nomad 0.8! I am sure he would love to see your implementation so maybe linking the branch here would be a good start.

@endocrimes
Copy link
Contributor

endocrimes commented Dec 16, 2017

@dadgar Hey - The configurable version of our original hack patch is here: circleci@ddb347a - I'm happy to either fix this patch to be something mergeable, and/or contribute towards the 0.8 draining strategy work.

@endocrimes
Copy link
Contributor

Relatedly - I'm not super sure what drain options make sense, outside of batch/(none|all) - I haven't used the services component of nomad, so I'm not sure of their mechanics.

@tgross tgross changed the title [FEATURE] Allow node-drain to not relocate batch tasks allow node drain to block on batch allocs May 30, 2024
@tgross tgross moved this to Needs Roadmapping in Nomad - Community Issues Triage Jun 24, 2024
@tgross
Copy link
Member

tgross commented Jul 26, 2024

Doing a little bit of issue cleanup and noticed this one has been long-done. From the [nomad node drain docs]:

Allocations for batch and sysbatch jobs will wait until they complete or the drain's deadline is reached, whichever comes first. These allocations will not be replaced.

@tgross tgross closed this as completed Jul 26, 2024
@github-project-automation github-project-automation bot moved this from Needs Roadmapping to Done in Nomad - Community Issues Triage Jul 26, 2024
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

6 participants