Learn More

How to Pause Autoscaling and Use Maintenance Mode in Judoscale

There are two ways to prevent Judoscale from managing an entire app’s scale temporarily, without having to disable autoscaling for each process:

  • Pausing stops autoscaling without changing the scale of your processes.
  • Maintenance mode stops autoscaling and also scales your workers down to zero.

Pause autoscaling

Pausing stops autoscaling for all the processes on the app, without changing their scale. It’s useful when you want your scale to stay put for a while, such as during load tests, incidents, or deploys that may cause unexpected scaling, so Judoscale doesn’t react to unusual traffic or metrics. You can pause for a set time, or until you resume it.

Pausing autoscaling

Visit your team dashboard, click “Settings” beside the app you want to pause, and choose how long to pause, in minutes, hours, days, or weeks, or until you resume it:

Pause autoscaling options

You can still update your app and autoscale settings while paused.

An alert will be displayed throughout the app, as a reminder that autoscaling is paused:

Paused autoscaling alert displayed within the app

Resuming autoscaling

A timed pause resumes on its own when it ends. To resume earlier, or if you paused until resumed, visit the app’s settings again, and click “Resume Autoscaling”:

Resume autoscaling

Judoscale will resume autoscaling for the app right away, so your processes may scale up or down soon after, based on their current metrics.

Pausing from the API

You can also pause and resume autoscaling with the Team API, which makes it easy to script around deploys and other events. POST /v1/apps/{app_id}/autoscaling_pause pauses the app, either for a duration (an ISO 8601 duration such as PT15M), until a given time, or until resumed. DELETE /v1/apps/{app_id}/autoscaling_pause resumes it.

For example, to run a deploy with an extra web instance, pause autoscaling for 15 minutes, scale up through your platform’s API or dashboard, then deploy. Judoscale won’t change the scale while paused, even if a schedule starts in the meantime. Once the pause ends, autoscaling resumes on its own, and each process is scaled to fit its current scale range, then up or down based on its metrics.

Maintenance mode

Maintenance mode stops autoscaling for all the processes on the app, and also shuts down workers by scaling them down to 0. It’s useful for scheduled maintenance, such as infrastructure or database upgrades, where you don’t want anything running for some period of time.

Maintenance mode is not meant for deploys or releases. Autoscaling normally handles those fine, and if one causes unexpected scaling, pause autoscaling instead.

Enabling maintenance mode

Visit your team dashboard, click “Settings” beside the app you want to enable maintenance mode, and toggle maintenance mode “On”:

Enable maintenance mode

Judoscale will pause autoscaling for the app, and automatically scale all the worker processes with autoscaling enabled down to zero.

🚨 Warning

Updates to the app and autoscale settings will be rejected while in maintenance mode.

An alert will be displayed throughout the app, as a reminder that maintenance mode is enabled:

Maintenance mode alert displayed within the app

Disabling maintenance mode

Visit the app’s settings again, and toggle maintenance mode “Off”:

Disable maintenance mode

Judoscale will resume autoscaling for the app, and attempt to scale the worker processes with autoscaling enabled back to their previous scale values.

🚨 Warning

In case there’s any error from the platform trying to scale the processes down or up, maintenance mode will still be enabled/disabled, and we’ll ask you to review the scaling.