Rails Autoscale is all about automatically determining the best times to scale up and down. Or rare occasions, though, it makes sense to schedule certain scaling needs in advance. A few examples…
You can handle these scenarios by adding a “custom autoscaling schedule”.
Your autoscale range is typically a static range. For example, a range of 2-9 dynos would allow autoscaling down to 2 dynos and up to 9 dynos, but never beyond that range.
An autoscaling schedule lets you have different autoscale ranges based on day and time. Here’s an example of a schedule that effectively disables autoscaling (by having a fixed 2-2 range) during the early morning hours in North America.
You can add as many scheduled ranges as you want. The schedule below has a custom range for each day of the week, and you can see which range is currently active.
When you want an autoscale range to span multiple days, you can do so with multiple scheduled ranges. Here’s an example that starts on Friday and ends on Sunday.
When one schedule ends at EOD (end of day) and another begins at 00:00 the next day, it’s treated as a single continual range.
To go back to a static autoscaling range, remove each of your scheduled ranges, and click “Save”.