-
Notifications
You must be signed in to change notification settings - Fork 1
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
Nomad Agent Restart Processes #677
Comments
Minimal Reproduction
(No) IssueThe above-mentioned warnings appear. However, Nomad accepts them as discussed in hashicorp/nomad#17134 to allow in-place upgrades. Nomads Graceful Shutdown behaviorSystemd and the Nomad Process does not wait for the graceful shutdown deadline. Instead, Nomad restarts directly. As described in the linked Issue, the process of handling the workload remains running. When starting again, Nomad takes again control of the workload and stops it when the deadline is reached. Nomad Logs
Starting Restart
|
Since we have |
I agree. That is also what the docs state.
However, that's not the case. A restart of Nomad on an Agent takes about 6 seconds. Some subprocesses keep running after Nomad stopped and the draining is handled after Nomad started again.
Maybe this question will resolve in the context of hashicorp/nomad#23937. |
We are waiting for a response in the upstream issue. Until then, we are blocked and this issue is pending. |
Related to #612.
When restarting a Nomad Agents, we find many systemd warnings.
nomad.service: Unit process 3620 (nomad) remains running after unit stopped.
nomad.service: Found left-over process 3620 (nomad) in control group while starting unit. Ignoring.
nomad.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
The text was updated successfully, but these errors were encountered: