This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
5. Trouble Shooting and Support
Ben Wong edited this page Dec 4, 2018
·
7 revisions
- https://dashboard.heroku.com/apps/hackney-repairs-production/metrics/web
- https://appsignal.com/unboxed-hackney-repairs/sites/5b994114ebad646bbcade0a5/dashboard
- https://hackney-repairs-production.herokuapp.com/delayed_job
-
https://g6bw0g0ojk.execute-api.eu-west-2.amazonaws.com/production/repairs/swagger/index.html
(
X_API_KEY
can be taken from the heroku environment)
Credentials/master-key are stored in 1-Password or in the environment settings of heroku. The keys for google auth in development mode and the AWS bucket for the initial data import are held rails credential store, but are not used in the general running of the app.
- Background jobs are kicked off every 5 minutes
- Web requests should < 10s to load
- Some requests may take over 20s if very busy - this can happen when we are trying to request appointment
data from a system known as DRS. Pages are:
- Api::WorkOrdersController#notes_and_appointments
- Api::WorkOrdersController#description
-
Verify the API is running
- via swagger
- via the rails console:
> Hackney::WorkOrder.find '01902630' => #<Hackney::WorkOrder:0x000055cf9472fd08 @reference="01902630", @rq_ref="03529606", @prop_ref="00034545", @created=Thu, 02 Aug 2018 14:26:21 +0000, @date_due=Fri ...
-
Restart the dynos
- can be done at any time, the workers should be able to handle a restart without any data loss
-
Restore Neo4j
- shut down the workers (scale the feed-worker & worker dynos to zero)
- restore to a last known good backup
- Heroku Dashboard > GrapheneDB > Backups
- destroy all the existing jobs via the delayed_job web console
- restart the workers
- the feed system will catch up
-
Restoring postgres
- postgres only contains the delayed job queue - restoring an old backup might cause the feed to lose some citations. However, you could follow the restore neo4j process and restore postgres before destroying all the jobs.
-
Stopping background tasks from being created
- Edit the heroku scheduler config, but
echo
in front of each of the commands
- Edit the heroku scheduler config, but
- If heroku is working yo can throw up the maintenance mode https://dashboard.heroku.com/apps/hackney-repairs-production/settings
- Make a cup of nice warm beverage
- Drink beverage
- Try to get application working again