Versions Compared

Key

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

...

(See Heroku developer setup for instructions on setting up heroku command line, including with -r production configuration).

  1. Disable staff access, so staff can’t trigger ingest with bg jobs that might not be able to be enqueued: heroku set LOGINS_DISABLED=true

  2. Temporarily disable our hirefire auto-scaling manager, so it will allow our worker count to be scaled down to zero. Just toggle the “enabled” toggle for worker at https://manager.hirefire.io/

  3. Scale down workers to zero: heroku ps:scale worker=0 -r production

  4. Disable staff access, so staff can’t trigger ingest with bg jobs that might not be able to be enqueued: heroku set LOGINS_DISABLED=true

  5. Run the maintenance now per heroku instructions, on production, eg: heroku -r production redis:maintenance --run REDIS

  6. Enable staff logins again: heroku set LOGINS_DISABLED=false

  7. Scale workers back up to their default, probably 2 (if you get it wrong hirefire will fix it): heroku ps:scale worker=2 -r production

  8. Turn on hirefire manager again at https://manager.hirefire.io/

...