open-nomad/command/agent
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
..
consul client: never embed alloc_dir in chroot 2021-10-18 09:22:01 -07:00
event make auditor interface more explicit 2020-03-23 19:32:58 -04:00
host gofmt all the files 2021-10-01 10:14:28 -04:00
monitor unlock before returning, no need for label 2019-11-05 11:44:29 -05:00
pprof Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
test-resources chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
testdata Add FailoverHeartbeatTTL to config (#11127) 2021-10-06 18:48:12 -04:00
acl_endpoint.go HTTP API support for 'nomad ui -login' 2021-03-10 08:17:56 -05:00
acl_endpoint_test.go command/agent: fix dropped test errors 2021-04-13 01:51:24 -07:00
agent.go Making RPC Upgrade mode reloadable. (#11144) 2021-11-01 16:30:53 -04:00
agent_endpoint.go fix AgentHostRequest panic found in GH-9546 (#9554) 2020-12-07 17:34:40 -05:00
agent_endpoint_test.go tests: deflake some SetServer related tests 2020-04-07 09:27:48 -04:00
agent_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
agent_test.go Making RPC Upgrade mode reloadable. (#11144) 2021-11-01 16:30:53 -04:00
alloc_endpoint.go provide -no-shutdown-delay flag for job/alloc stop (#11596) 2021-12-13 14:54:53 -05:00
alloc_endpoint_test.go documenting test for #9367 2020-11-15 17:47:50 +00:00
bindata_assetfs.go Merge release 1.2.0 rc1 branch (#11486) 2021-11-09 17:55:13 -05:00
command.go logging: Log the cause behind agent startup failure (#11353) 2021-10-27 10:41:17 -07:00
command_test.go client: improve errors & tests for dynamic ports 2021-10-13 16:25:25 -07:00
config.go config: UI configuration block with Vault/Consul links (#11555) 2021-11-24 11:20:02 -05:00
config_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
config_parse.go Add FailoverHeartbeatTTL to config (#11127) 2021-10-06 18:48:12 -04:00
config_parse_test.go Add FailoverHeartbeatTTL to config (#11127) 2021-10-06 18:48:12 -04:00
config_test.go client: output reserved ports with min/max ports 2021-09-30 17:05:46 -07:00
csi_endpoint.go CSI ListSnapshots secrets implementation 2021-07-28 11:30:29 -07:00
csi_endpoint_test.go CSI: capability block is required for volume registration 2021-04-08 13:02:24 -04:00
deployment_endpoint.go use constants from http package 2020-06-17 11:04:02 -04:00
deployment_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
eval_endpoint.go evaluations list pagination and filtering (#11648) 2021-12-10 13:43:03 -05:00
eval_endpoint_test.go evaluations list pagination and filtering (#11648) 2021-12-10 13:43:03 -05:00
event_endpoint.go return 405 on non-GET requests to /v1/event/stream (fixes #9526) (#9564) 2020-12-08 13:09:20 -05:00
event_endpoint_test.go Remove Managed Sinks from Nomad (#9470) 2020-11-30 14:00:31 -05:00
fs_endpoint.go api: return 404 for alloc FS list/stat endpoints (#11482) 2021-11-17 11:15:07 -05:00
fs_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
helpers.go
helpers_test.go test: fix missing agent shutdowns 2020-02-07 15:50:53 -08:00
http.go evaluations list pagination and filtering (#11648) 2021-12-10 13:43:03 -05:00
http_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
http_stdlog.go agent: route http logs through hclog 2020-04-20 10:33:40 -04:00
http_stdlog_test.go agent: route http logs through hclog 2020-04-20 10:33:40 -04:00
http_test.go config: fix test-only failures in UI handler setup (#11571) 2021-11-24 16:19:04 -05:00
job_endpoint.go provide -no-shutdown-delay flag for job/alloc stop (#11596) 2021-12-13 14:54:53 -05:00
job_endpoint_test.go core: allow setting and propagation of eval priority on job de/registration (#11532) 2021-11-23 09:23:31 +01:00
keyring.go Log AES-128 and AES-192 key sizes during keyring initialization 2020-10-01 11:12:14 -04:00
keyring_test.go Fix other usages of initKeyring func to use logger as third argument 2020-10-01 11:13:06 -04:00
log_file.go prevent active log from being overwritten when agent starts (#11386) 2021-10-26 20:57:07 -04:00
log_file_bsd.go prevent active log from being overwritten when agent starts (#11386) 2021-10-26 20:57:07 -04:00
log_file_linux.go prevent active log from being overwritten when agent starts (#11386) 2021-10-26 20:57:07 -04:00
log_file_test.go prevent active log from being overwritten when agent starts (#11386) 2021-10-26 20:57:07 -04:00
log_file_windows.go prevent active log from being overwritten when agent starts (#11386) 2021-10-26 20:57:07 -04:00
log_levels.go Support for hot reloading log levels 2019-07-24 13:37:08 +02:00
log_levels_test.go
metrics_endpoint.go agent: return req error if prometheus metrics are disabled. 2021-03-09 15:28:58 +01:00
metrics_endpoint_test.go agent: return req error if prometheus metrics are disabled. 2021-03-09 15:28:58 +01:00
namespace_endpoint.go core: open source namespaces 2020-10-22 15:26:32 -07:00
namespace_endpoint_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
node_endpoint.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
node_endpoint_test.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
operator_endpoint.go scheduler: config option to reject job registration (#11610) 2021-12-06 15:20:34 -05:00
operator_endpoint_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
operator_endpoint_test.go Revert "Return SchedulerConfig instead of SchedulerConfigResponse struct (#10799)" (#11433) 2021-11-02 17:42:52 -04:00
plugins.go move pluginutils -> helper/pluginutils 2019-01-22 15:50:08 -08:00
region_endpoint.go
region_endpoint_test.go
retry_join.go
retry_join_test.go
scaling_endpoint.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
scaling_endpoint_test.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
search_endpoint.go api: implement fuzzy search API 2021-04-16 16:36:07 -06:00
search_endpoint_test.go api: implement fuzzy search API 2021-04-16 16:36:07 -06:00
stats_endpoint.go
stats_endpoint_test.go
status_endpoint.go
status_endpoint_test.go
stub_asset.go gofmt all the files 2021-10-01 10:14:28 -04:00
syslog.go goimports 2019-01-22 15:44:31 -08:00
syslog_test.go goimports 2019-01-22 15:44:31 -08:00
system_endpoint.go
system_endpoint_test.go
testagent.go tests: use standard library testing.TB 2021-06-09 16:18:45 -07:00
testagent_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
testingutils_test.go mock: add default host network 2020-11-23 10:11:00 -06:00