uWSGI listen queue of socket full

可紊 提交于 2021-02-07 14:03:47

问题


My setup includes Load Balancer (haproxy) with two nginx servers running Django. Server 2 works fine but sometimes server 1 will start crashing and log will be full of

*** uWSGI listen queue of socket ":8000" (fd: 3) full !!! (101/100) ***

message.

How do I go about resolving this issue?


回答1:


Your listen queue is full. When you run uwsgi, pass it --listen 1024 to increase the queue to 1024.

Note that a larger queue makes you more susceptible to a DDoS attack.

You may also need to increase net.core.somaxconn

sysctl -w net.core.somaxconn=65536


来源:https://stackoverflow.com/questions/50657071/uwsgi-listen-queue-of-socket-full

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!