Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Schedule 10 minutes of downtime

  2. 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-3235c1e302df

    Set worker dyno count to zero at https://dashboard.heroku.com/apps/scihist-digicoll-production/resources GUI or command line

  3. Make a note of how many workers you have with heroku ps worker, then

  4. heroku ps

    to prevent it from turning workers back on.

  5. heroku ps:scale worker=0

    Run the following--app scihist-digicoll-production
    heroku maintenance:on --app scihist-digicoll-production
    heroku pg:maintenance:run --force --app scihist-digicoll-production
    heroku pg:wait --app scihist-digicoll-production
    heroku

    maintenance:off

    ps:scale worker=2 --app scihist-digicoll-production

    Restore Heroku workers:

    heroku

    ps:scale worker=2

    maintenance:off --app scihist-digicoll-production

  6. Turn the Hirefire manager switch back on ON.