auto_scale_service
Scale up a service automatically by doubling CPU and/or memory when resource usage exceeds specified thresholds, with adjustable caps to control maximum allocation.
Instructions
Auto-scale a service based on current system resource usage. Doubles CPU and/or memory (capped at max_cpu/max_memory) when usage exceeds the given thresholds; otherwise makes no change.
Args: service_id: Service ID cpu_threshold: CPU usage % above which to scale up memory_threshold: Memory usage % above which to scale up max_cpu: Maximum CPU cores to scale to max_memory: Maximum memory (MB) to scale to
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_cpu | No | ||
| max_memory | No | ||
| service_id | Yes | ||
| cpu_threshold | No | ||
| memory_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||