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

docs: document signal handling #16835

Merged
merged 3 commits into from
Apr 11, 2023
Merged

docs: document signal handling #16835

merged 3 commits into from
Apr 11, 2023

Conversation

tgross
Copy link
Member

@tgross tgross commented Apr 10, 2023

Expand documentation about Nomad's signal handling behaviors, including removing incorrect information about graceful client shutdowns.


Expand documentation about Nomad's signal handling behaviors, including removing
incorrect information about graceful client shutdowns.
@tgross tgross added theme/docs Documentation issues and enhancements backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line labels Apr 10, 2023
@tgross tgross marked this pull request as ready for review April 10, 2023 13:46
Comment on lines -91 to -92
When gracefully exiting, clients will update their status to terminal on
the servers so that tasks can be migrated to healthy agents. Servers
Copy link
Member Author

@tgross tgross Apr 10, 2023

Choose a reason for hiding this comment

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

The behavior described here for clients has never been the case. Only the node GC job ever calls Node.Deregister and the client calls Node.UpdateStatus only to heartbeat (i.e. status is only ever "ready").

Arguably if we have it documented here that makes the lack of it a bug which we should fix and backport. I'd definitely be open to that idea, seeing as how you have to opt-in to leave_on_interrupt or leave_on_terminate anyways so that's not going to break backwards compatibility unexpectedly. But that'd be a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry I missed the review, but I would be +1 on rewriting this paragraph altogether when your drain PRs land. I find these to be surprising and unhelpful definitions of "graceful" and "forceful." I suspect the only reason these wrong docs lived so long is that they're so wrong and unhelpful it wasn't clear whether they or Nomad needed fixing as you pointed out.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do!

Copy link
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

LGTM! 📶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line theme/docs Documentation issues and enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants