GSA / notifications-admin

The UI of Notify.gov
https://notify.gov
Other
11 stars 2 forks source link

Investigate and fix the staging site #1631

Closed ccostino closed 1 week ago

ccostino commented 2 weeks ago

Our staging site is currently returning a 502: Bad Gateway error and it's unclear why given that all recent merges went in clean, the site deployed to staging just fine, and things run fine locally.

The only clue at the moment is that the logs for the admin site keep showing this error (shortened for brevity):

[13] [ERROR] Worker (pid:28830) was sent SIGKILL! Perhaps out of memory?
[28840] [INFO] Booting worker with pid: 28840
[13] [ERROR] Worker (pid:28831) was sent SIGKILL! Perhaps out of memory?
[28841] [INFO] Booting worker with pid: 28841
[13] [ERROR] Worker (pid:28832) was sent SIGKILL! Perhaps out of memory?
[28842] [INFO] Booting worker with pid: 28842

The API appears to be completely fine so it seems this is an issue with just the admin, but that's not 100% clear yet.

Implementation Sketch and Acceptance Criteria

Security Considerations

jskinne3 commented 2 weeks ago

Staging restored! I increased the memory quota of notify-admin-staging (here) from 1024 to 2048 (one gig to two gigs). The app restarted and works. Check https://notify-staging.app.cloud.gov/

While it was down:

terrazoon commented 2 weeks ago

We are going to adjust the number of workers in the gunicorn config. See the linked issue.