Nginx’de yeni.nginx hatası: worker_connections yeterli değil
Nginx ile yapmak istediğim, Trafik yük dengelemesidir. Bunu yapmak için i
user nginx;
worker_processes 4;
worker_rlimit_nofile 30000;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
stream {
upstream udp_upstreams {
server 1:1:1:1:9997 fail_timeout=60s;
server 1:1:1:2:9997 fail_timeout=60s;
}
server {
listen 9000 udp;
proxy_pass udp_upstreams;
proxy_timeout 3s;
proxy_responses 1;
error_log /var/log/nginx/udp.log;
}
}
events {
worker_connections 10240;
}
i nginx, nginx baskılar altında mesajın bir sürü çalıştırmak nginx.conf sistem yapısı
altına udp udp
A <--> Nginx <--> Backend 1
<--> Backend 2
gibi nginx.conf yapılandırılmış.
2016/04/27 04:50:36 [alert] 3137#3137: *446352 10240 worker_connections are not enough while connecting to upstream, udp client: 3.3.3.3, server: 0.0.0.0:9000, upstream: "1.1.1.2:9997", bytes from/to client:0/0, bytes from/to upstream:0/0
2016/04/27 04:50:36 [alert] 3136#3136: *446353 10240 worker_connections are not enough while connecting to upstream, udp client: 3.3.3.3, server: 0.0.0.0:9000, upstream: "1.1.1.1:9997", bytes from/to client:0/0, bytes from/to upstream:0/0
Bunu çözmek için nginx.conf'u nasıl yapılandırabilirim? Zaten work_connections değerini 40000 olarak ayarlamıştım. Ama işe yaramazdı.
Şimdiden teşekkürler.
Ben aynı sorunu yaşıyorum. Bunun çözümünü bulabildin mi? – Joe