Control the transition between revisions during deployments
The roll_out_duration_seconds
parameter in the [cerebrium.scaling]
section of your cerebrium.toml
file controls how quickly traffic transitions between revisions after a successful build.
When you deploy a new version of your app, Cerebrium creates a new revision. The roll_out_duration_seconds
parameter determines how long it takes to transition traffic from the old revision to the new one.
Traffic is shifted in 5 batches of 20% each, over the specified duration. This gradual transition helps ensure a smooth user experience and minimizes disruptions.
Add the roll_out_duration_seconds
parameter to the [cerebrium.scaling]
section of your cerebrium.toml
file: