Modify autoscale settings.
(state, max=None, min=None)
| 576 | signature='[max [min]]', |
| 577 | ) |
| 578 | def autoscale(state, max=None, min=None): |
| 579 | """Modify autoscale settings.""" |
| 580 | autoscaler = state.consumer.controller.autoscaler |
| 581 | if autoscaler: |
| 582 | max_, min_ = autoscaler.update(max, min) |
| 583 | return ok(f'autoscale now max={max_} min={min_}') |
| 584 | raise ValueError('Autoscale not enabled') |
| 585 | |
| 586 | |
| 587 | @control_command() |