我们在负载均衡器后面遇到了uwsgi的一些问题,日志已满或者下面的消息。 我是nginx / uwsgi的新手,所以我不知道在哪里看。
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (1 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http key: app.example.com client_addr: 10.133.223.217 client_port: 54217] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 646]
还有这些格式:
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
Wed Oct 5 07:24:42 2016 - *** uWSGI listen queue of socket "127.0.0.1:55792" (fd: 3) full !!! (257/256) ***
Wed Oct 5 07:24:44 2016 - *** uWSGI listen queue of socket "127.0.0.1:55792" (fd: 3) full !!! (257/256) ***
还有:
connect_to_tcp()/socket(): Too many open files [core/socket.c line 462]
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
[uwsgi-http] unable to connect() to node "127.0.0.1:55792" (0 retries): Connection timed out
connect_to_tcp()/socket(): Too many open files [core/socket.c line 462]
connect_to_tcp()/socket(): Too many open files [core/socket.c line 462]
有4个服务器,1GB RAM和1个核心获得此事件。 (托管在数字海洋上)。
如果这有帮助:
cat /proc/sys/fs/file-max -> 1048576
ulimit -n 32768
net.core.somaxconn = 65000