Nginx 14.1 very slow as a reverse proxy
Ricky Gutierrez
xserverlinux at gmail.com
Tue Nov 20 01:37:34 UTC 2018
Hi list , I need a little help, I have a reverse proxy in front of an
ASP.net application, the nginx server has it with 4gb ram, disk sas at
15K and 2 core in centos 7, I've noticed that the proxy acts very
slow, checking the log I see a lot
2018/11/19 14:10:04 [error] 16379#16379: *51 upstream timed out (110:
Connection timed out) while reading response header from upstream,
client: 165.225.32.108, server: pms.domain.com, request: "POST
/Usuario/Login HTTP/1.1", upstream:
"http://192.168.X.11:80/Usuario/Login", host: "pms.domain.com",
referrer: "https://pms.domain.com/"
if I remove the proxy and leave only the application is fast and
without delay, I put the proxy and I have a lot of delay.
I have around 40 concurrent connections, my internal network between
the proxy and the IIS server is 1gb network, very fast ,
my config :
upstream backend {
server 192.168.X.11:80; ## servidor web en windows
keepalive 15;
}
location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
proxy_buffers 32 4m;
proxy_busy_buffers_size 25m;
proxy_buffer_size 512k;
proxy_max_temp_file_size 0;
client_max_body_size 1024m;
client_body_buffer_size 4m;
proxy_intercept_errors off;
proxy_pass http://backend;
}
}
I hope a light in this darkness;)
regards.
--
rickygm
http://gnuforever.homelinux.com
More information about the nginx
mailing list