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
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