a0cf5db797
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. |
||
---|---|---|
.. | ||
autopilot.go | ||
autopilot_test.go | ||
deployment_events_test.go | ||
events.go | ||
events_test.go | ||
iterator.go | ||
paginator.go | ||
paginator_test.go | ||
schema.go | ||
schema_test.go | ||
state_changes.go | ||
state_store.go | ||
state_store_oss.go | ||
state_store_test.go | ||
testing.go |