Catalogue / pythonanywhere-2013-web-app-start-on-502

One busy customer site takes down PythonAnywhere's own site, because nginx treated every 502 as an app that needed starting

PythonAnywhere, 2013. Web serving tier (nginx, uwsgi and on-demand web app start-up).

Organisation
PythonAnywhere
Evidence
Incident report
Source
Outage report; or, the perils of using 502s to trigger web application initialisation

PythonAnywhere blog, published 2013-02-01

Records

Failure#f1

nginx returned 502s when it could not connect to an overloaded app, repeatedly triggering start requests against the main site

Decision#d1

Start customer web apps on demand, not when the web server comes up

Decision#d2

Decide whether an app needs starting from its vassal file, not from the 502 alone

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.