Update autoscaling settings
Update autoscaling settings in place to pre-scale for a known traffic spike, raise a replica ceiling, or tune scale-down behavior. The change applies to the running deployment; replicas adjust without a new deploy.- UI
- REST API
To update autoscaling settings:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- On the model’s overview, choose Configure under the environment’s Replicas.
- Adjust your settings:
- Replicas: the minimum and maximum replica count. Baseten scales within this range based on traffic.
- Autoscaling window: how far back the autoscaler looks when averaging traffic for scaling decisions.
- Scale down delay: how long the autoscaler waits after traffic drops before removing replicas.
- Max scale down rate: the largest percentage of active replicas the autoscaler removes in a single scale-down step.
- Concurrency target: the number of concurrent requests each replica handles before the autoscaler adds another.
- Target utilization percentage: the share of the concurrency target at which scaling triggers.
- Choose Update to apply the changes.
- UI
- Baseten CLI
- REST API
To verify your settings:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Review the current values on the Autoscaling settings card: replicas, autoscaling window, scale down delay, concurrency target, and target utilization.
Scale back down
After a spike passes, lowermin_replica back to its normal floor with the
same update procedure. Two settings control
how fast replicas drain:
- Scale down delay (
scale_down_delay): how long the autoscaler waits after traffic drops before removing replicas. - Max scale down rate: the largest percentage of active replicas removed in a single step. Set it in the console’s Configure autoscaling dialog.
Scale to zero
Setmin_replica to 0 to let an idle deployment release all its replicas
and stop billing for compute.
Scaling to zero isn’t recommended for production endpoints: the first
request after an idle period pays a cold start.
Reserve it for development and staging deployments, or for workloads that
tolerate the delay.
- UI
- REST API
To scale to zero:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- On the model’s overview, choose Configure under the environment’s Replicas.
- Set Min replicas to
0. - Choose Update to apply the changes.
Wake a scaled-to-zero deployment
Wake a scaled-to-zero deployment before you need it, for example ahead of a demo or a batch job, so the first real request doesn’t pay the cold start.- UI
- REST API
To wake a deployment:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Wake deployment.
SCALED_TO_ZERO through
WAKING_UP to ACTIVE; poll
baseten model deployment describe
until status is ACTIVE.
A woken deployment with min_replica: 0 scales back down after
scale_down_delay if no requests arrive, so wake it close to when you need
it, or raise min_replica to hold it warm.
Next steps
Scaling changes take effect on the running deployment, so pair them with a quick status check before and after.- Autoscaling overview to choose replica counts, concurrency targets, and scale-down behavior.
- Manage the deployment lifecycle to deactivate, promote, or delete deployments.
- Pull logs and metrics to confirm how a scaling change lands.