...
Schedule 10 minutes of downtime
Disable our hirefire autoscaling to keep it from starting workers back up again: turn off Turn
OFF
the switch next to “MANAGER”DYNO MANAGER
at https://manager.hirefire.io/managers/2533bb0e-4eda-4f45-b8ef-3235c1e302dfSet worker dyno count to zero at https://dashboard.heroku.com/apps/ to prevent it from turning workers back on.heroku ps:scale worker=0 --app scihist-digicoll-production
/resourcesRun the following (best done by running a bash script)
heroku maintenance:on --app scihist-digicoll-production
heroku pg:maintenance:run --force --app scihist-digicoll-production
heroku pg:wait --app scihist-digicoll-production
heroku ps:scale worker=2 --app scihist-digicoll-production
heroku maintenance:off --app scihist-digicoll-production
Restore Heroku worker dyno type and count
Turn the Hirefire manager switch back on
ON
.