oz0 node drain
Drain a node.
For: Operators and developers looking up a command.
Drain a node. It takes no new job and starts no new session; the work it runs, and the tool calls of the jobs homed on it, go on until they end or the deadline passes. Past the deadline the node takes nothing and stops what still runs, which is then lost. oz0 node show says "safe to stop" once nothing runs there. Draining a node that drains moves its deadline. Undrain it when it is back.
Usage
oz0 node drain <node-id> [--deadline 2h] [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--deadline | duration | 2h0m0s | how long what runs on the node may go on, from a minute to seven days |
--json | bool | print JSON instead of a table | |
--reason | string | why, for the audit log, such as a patch window |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.