User specifiable kill timeout and operator configurable max

This commit is contained in:
Alex Dadgar
2015-12-22 16:10:30 -08:00
parent e0cf0a0928
commit 9f44780f89
21 changed files with 300 additions and 89 deletions

View File

@@ -281,6 +281,11 @@ configured on server nodes.
* <a id="network_speed">`network_speed`</a>: This is an int that sets the
default link speed of network interfaces, in megabits, if their speed can
not be determined dynamically.
* `max_kill_timeout`: `max_kill_timeout` is a time duration that can be
specified using the `s`, `m`, and `h` suffixes, such as `30s`. If a job's
task specifies a `kill_timeout` greater than `max_kill_timeout`,
`max_kill_timeout` is used. This is to prevent a user being able to set an
unreasonable timeout. If unset, a default is used.
### Client Options Map <a id="options_map"></a>

View File

@@ -204,6 +204,10 @@ The `task` object supports the following keys:
* `meta` - Annotates the task group with opaque metadata.
* `kill_timeout` - `kill_timeout` is a time duration that can be specified using
the `s`, `m`, and `h` suffixes, such as `30s`. It can be used to configure the
time between signaling a task it will be killed and actually killing it.
### Resources
The `resources` object supports the following keys: