python - flask application timeout with amazon load balancer -


i'm trying use flask application behind amazon load balancer , flask threads keep timing out. appears load balancer sending connection: keep-alive header , causing flask process never return (or takes long time). gunicorn in front processes killed , new ones started. tried using uwsgi , exposign flask app directly (no wrapper). result in flask process not responding.

i see nothing in flask docs make ignore header. i'm @ loss else can flask fix problem.

curl , direct connections machine work fine, via load balancer causing problem. load balancer doesn't appear doing wrong , use several other stacks.

the solution have using gunicorn wrapper around flask application. worker_class using eventlet several workers. combination seems stable , responsive. gunicorn configured https.

i assume defect in flask causes problem , effective workaround.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -