swarm-ui: the resource caps dialog says when a change takes effect
The hive reads the caps about every 30 seconds and a running agent takes a changed cap at its next spawn or rebuild, so the dialog and the ui doc no longer say the hive applies a change within seconds.
This commit is contained in:
parent
a376714116
commit
57407cb437
2 changed files with 8 additions and 3 deletions
|
|
@ -232,8 +232,12 @@ decides that field again. **clear the swarm's caps** sends the `DELETE`. The
|
|||
controller checks each value against systemd's own syntax, because systemd
|
||||
ignores a value it can't parse and the agent would run uncapped, and it
|
||||
refuses, for example, a percentage with a leading zero. The dialog shows the
|
||||
refusal's reason under the fields and leaves them as you typed them. The panel
|
||||
reads `GET /api/agents/{agent}/limits`. [hivectl](../tools/hivectl.md#per-agent-resource-limits)
|
||||
refusal's reason under the fields and leaves them as you typed them.
|
||||
|
||||
A saved change isn't instant. The hive reads the caps about every 30 seconds,
|
||||
and a running agent takes a changed cap at its next spawn or rebuild, so the
|
||||
row shows the new value before the agent runs under it. The panel reads
|
||||
`GET /api/agents/{agent}/limits`. [hivectl](../tools/hivectl.md#per-agent-resource-limits)
|
||||
sets the hive's own limits.
|
||||
|
||||
### Linking external accounts
|
||||
|
|
|
|||
Loading…
Reference in a new issue