Move group_limit & group_wait under boot

Also make formatting the group strategy the responsibility of the
commander.
This commit is contained in:
Kevin McConnell
2023-04-14 11:01:25 +01:00
parent 100b72e4b4
commit a8726be20e
6 changed files with 29 additions and 23 deletions

View File

@@ -835,13 +835,14 @@ mrsk lock release
When deploying to large numbers of hosts, you might prefer not to restart your services on every host at the same time.
MRSK's default is to boot new containers on all hosts in parallel. But you can control this by configuring `group_limit` and `group_wait`.
MRSK's default is to boot new containers on all hosts in parallel. But you can control this by configuring `group_limit` and `group_wait` as boot options:
```yaml
service: myservice
group_limit: 10
group_wait: 30
boot:
group_limit: 10
group_wait: 2
```
When `group_limit` is specified, containers will be booted on, at most, `group_limit` hosts at once. MRSK will pause for `group_wait` seconds between batches.