|
|
|
|
|
by luhn
1765 days ago
|
|
Unfortunately HAProxy doesn't buffer requests*, which is necessary for a production deployment of gunicorn. And for anybody using AWS, ALB doesn't buffer requests either. Because of this I'm actually running both HAProxy and nginx in front of my gunicorn instances—nginx in front for request buffering and HAProxy behind that for queuing. If anybody is interested, I've packaged both as Docker containers: HAProxy queuing/load shedding: https://hub.docker.com/r/luhn/spillway nginx request buffering: https://hub.docker.com/r/luhn/gunicorn-proxy * It does have an http_buffer_request option, but this only buffers the first 8kB (?) of the request. |
|