I have a Flask/Gunicorn endpoint which takes a few seconds to return and gets hit pretty hard. Gunicorn seems to queue up a lot of requests and eventually process them all, but the requests which happen to be added at the back of the queue end up taking a really long time.
The app runs as gunicorn -w 4 -b :8080.
Is there any way to configure Flask/Gunicorn so that it will only keep X requests in the queue?