datamade / api.opencivicdata.org

:cloud: deployment stuff for api.opencivicdata.org
3 stars 3 forks source link

Random 502 errors #26

Open evz opened 6 years ago

evz commented 6 years ago

When we are fetching complex geometries from the API, we randomly get 502 errors. It looks like gunicorn is killing its workers and restarting them which, from nginx's perspective, looks like a 502. Increasing the timeout doesn't really seem to help. And running the query in the database directly is very fast so, it would seem that someplace in the serialization a whole bunch of effort is happening which is causing the workers to commit suicide. Poor guys