Gunicorn worker timeout error

后端 未结 15 2005
梦谈多话
梦谈多话 2020-11-29 16:07

I have setup gunicorn with 3 workers 30 worker connections and using eventlet worker class. It is setup behind Nginx. After every few requests, I see this in the logs.

15条回答
  •  独厮守ぢ
    2020-11-29 16:45

    This worked for me:

    gunicorn app:app -b :8080 --timeout 120 --workers=3 --threads=3 --worker-connections=1000
    

    If you have eventlet add:

    --worker-class=eventlet
    

    If you have gevent add:

    --worker-class=gevent
    

提交回复
热议问题