62548616d4
Adds a new configuration to clients to optionally allow them to drain their workloads on shutdown. The client sends the `Node.UpdateDrain` RPC targeting itself and then monitors the drain state as seen by the server until the drain is complete or the deadline expires. If it loses connection with the server, it will monitor local client status instead to ensure allocations are stopped before exiting. |
||
---|---|---|
.. | ||
artifact.go | ||
artifact_test.go | ||
audit.go | ||
audit_test.go | ||
autopilot.go | ||
autopilot_test.go | ||
consul.go | ||
consul_test.go | ||
drain.go | ||
limits.go | ||
limits_test.go | ||
plugins.go | ||
plugins_test.go | ||
README.md | ||
sentinel.go | ||
tls.go | ||
tls_test.go | ||
ui.go | ||
ui_test.go | ||
vault.go | ||
vault_test.go |
Overview
nomad/structs/config
is a package for configuration struct
s that are
shared among packages that needs the same struct
definitions, but can't
import each other without creating a cyle. This config
package must be
terminal in the import graph (or very close to terminal in the dependency
graph).