Gunicorn worker timeout error

后端 未结 15 2050
梦谈多话
梦谈多话 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:35

    timeout is a key parameter to this problem.

    however it's not suit for me.

    i found there is not gunicorn timeout error when i set workers=1.

    when i look though my code, i found some socket connect (socket.send & socket.recv) in server init.

    socket.recv will block my code and that's why it always timeout when workers>1

    hope to give some ideas to the people who have some problem with me

提交回复
热议问题