Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nginx负载平衡器未将请求分发到所有服务器。只在2号_Nginx_Load Balancing - Fatal编程技术网

nginx负载平衡器未将请求分发到所有服务器。只在2号

nginx负载平衡器未将请求分发到所有服务器。只在2号,nginx,load-balancing,Nginx,Load Balancing,我在nginxlb中配置了10台服务器,只有2台服务器收到请求 events { worker_connections 1024;} http { upstream app { #least_conn; server test_1:3500; server test_2:3500; server test_3:3500; server test_4:3500; server test_5:3

我在
nginx
lb中配置了10台服务器,只有2台服务器收到请求

events { worker_connections 1024;}

http {
    upstream app {
        #least_conn;
        server test_1:3500;
        server test_2:3500;
        server test_3:3500;
        server test_4:3500;
        server test_5:3500;
        server test_6:3500;
        server test_7:3500;
        server test_8:3500;
        server test_9:3500;
        server test_10:3500;
    }

    server {
        listen 3600;
        location / {
            proxy_pass http://app;
        }
    }
}
服务器<代码>服务器测试\u 5:3500
服务器测试\u 8:3500正在获取所有请求。。。为什么?
我测试的负载是在30秒内向服务器发出800个请求
localhost:3600

它具有与
最小连接相同的行为

谢谢

您能从负载平衡器实例提供主机文件吗?@Hackerman localhost:3600