2

Is there a way to disable/re-enable Heroku autoscaling programmatically via API / CLI / rules (e.g. time of day?)

Cœur
  • 37,241
  • 25
  • 195
  • 267
sellarafaeli
  • 1,167
  • 2
  • 9
  • 24

1 Answers1

2

There does not appear to be any way to do this programatically. The documentation only references the Heroku Dashboard and the Platform API documentation doesn't reference autoscaling.

You might be able to toggle scaling on and off if use a third-party scaling tool like HireFire or Adept Scale, but you'll have to evaluate those options to see if they do everything you need within your budget.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • thanks. I did not find a way to programatically disable/re-enable even using HireFire/Adept Scale. Can you point to whether/where this can be done using those tools? – sellarafaeli Apr 13 '19 at 07:38
  • 1
    @sellarafaeli, I'm not sure. If you can't find a way to do it within the tool I guess you could add and delete the Adept Scale addon using the platform API? – ChrisGPT was on strike Apr 13 '19 at 16:49