pangea_set_autoscaling
Enable, update, or disable horizontal autoscaling for a stateless rolling HTTP project by setting replica limits and a target CPU percentage.
Instructions
Enable, update (1-64 replicas, 20-90% CPU), or disable horizontal autoscaling for a stateless rolling HTTP project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pangea_set_autoscaling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | True to enable or update autoscaling (default), false to disable (on a running app, scale down to min=1, max=1 first) | |
| project | No | Optional project ID (prj_...) or project name (omit when directory has pangea.yaml) | |
| directory | No | Optional local directory containing pangea.yaml | |
| max_replicas | No | Maximum replicas (min_replicas..64; required when enabled=true) | |
| min_replicas | No | Minimum replicas (1-64; required when enabled=true) | |
| wait_seconds | No | Seconds to wait for Kubernetes reconciliation (default: 30) | |
| target_cpu_percent | No | Target CPU utilization percent (20-90, default: 60) |