Scaling
Configure instance bounds for a deployment
Configuration
Set the instance bounds for a deployment by its id:
bash
curl -X POST https://api.scalix.world/v1/compute/deployments/$DEPLOYMENT_ID/scale \
-H "Authorization: Bearer $SCALIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"min_instances": 1,
"max_instances": 20
}'The /scale endpoint updates the stored min_instances and max_instances
for the deployment record.
Scaling a Run service
For services you run on Scalix Run, set bounds via the CLI:
bash
scalix-cloud run scale <service-id> --min-instances 3 --max-instances 10Run services scale to zero when min-instances is 0 and scale back up on
demand.