open-nomad/website/content/docs/commands/job
Tim Gross a0cf5db797
provide -no-shutdown-delay flag for job/alloc stop (#11596)
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.
2021-12-13 14:54:53 -05:00
..
allocs.mdx
deployments.mdx
dispatch.mdx add dispatch idempotency token support in the CLI (#10930) 2021-10-22 12:39:05 -04:00
eval.mdx
history.mdx
index.mdx
init.mdx
inspect.mdx
periodic-force.mdx
plan.mdx Added a -hcl2-strict flag to allow for lenient hcl variable parsing. (#11284) 2021-11-04 16:33:09 +01:00
promote.mdx
revert.mdx
run.mdx CLI: Return non-zero exit code when deployment fails in nomad run (#11550) 2021-12-09 09:09:28 -05:00
scale.mdx
scaling-events.mdx
status.mdx
stop.mdx provide -no-shutdown-delay flag for job/alloc stop (#11596) 2021-12-13 14:54:53 -05:00
validate.mdx Added a -hcl2-strict flag to allow for lenient hcl variable parsing. (#11284) 2021-11-04 16:33:09 +01:00