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

provide -no-shutdown-delay flag for job/alloc stop #11596

Merged
merged 2 commits into from
Dec 13, 2021
Merged

Commits on Dec 3, 2021

  1. provide -no-shutdown-delay flag for job/alloc stop

    Some operators use very long group/task `shutdown_delay` settings to
    safely drain network connections to their workloads after service
    deregistration. But during incident response, they may want to cause
    that drain to be skipped so they can quickly shed load.
    
    Provide a `-no-shutdown-delay` flag on the `nomad alloc stop` and
    `nomad job stop` commands that bypasses the delay. This sets a new
    desired transition state on the affected allocations that the
    allocation/task runner will identify during pre-kill on the client.
    
    Note (as documented here) that using this flag will almost always
    result in failed inbound network connections for workloads as the
    tasks will exit before clients receive updated service discovery
    information and won't be gracefully drained.
    tgross committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    179b60b View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. Apply suggestions from code review

    Co-authored-by: Derek Strickland <1111455+DerekStrickland@users.noreply.github.com>
    tgross and DerekStrickland committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    824d405 View commit details
    Browse the repository at this point in the history