Welcome! Log In Create A New Profile

Advanced

А fail_timeout в ngx_http_upstream_module работает?

Dmitry Y. Labutin
July 08, 2012 01:48AM
Доброго времени суток.

Имею вот такой конфиг:
worker_processes 10;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

sendfile on;
keepalive_timeout 65;

upstream backend {
server www4.company.ru backup;
server www1.company.ru fail_timeout=600s;

keepalive 64;
}

server {
listen 80;
server_name *.company.ru;

client_max_body_size 50m;

location / {
proxy_set_header Host $host;
proxy_pass http://backend;
proxy_read_timeout 180s;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

}
}


Именно сейчас www1.company.ru недоступен - лег канал.
Я надеялся, что попытки nginx отправить запрос пользователей через
www1.company.ru будут идти раз в 10 минут, но на деле, там очень много
вот такого в error.log:
2012/07/08 09:42:02 [error] 10904#0: *5715 connect() failed (110:
Connection timed out) while connecting to upstream, client:
212.33.247.144, ...
2012/07/08 09:42:03 [error] 10904#0: *5718 connect() failed (110:
Connection timed out) while connecting to upstream, client: 78.46.87.66, ...
2012/07/08 09:42:04 [error] 10904#0: *5720 connect() failed (110:
Connection timed out) while connecting to upstream, client: 195.69.65.3, ...
2012/07/08 09:42:08 [error] 10904#0: *5724 connect() failed (110:
Connection timed out) while connecting to upstream, client:
178.44.179.181, ...
2012/07/08 09:42:09 [error] 10904#0: *5726 connect() failed (110:
Connection timed out) while connecting to upstream, client:
79.122.162.102, ...
2012/07/08 09:42:09 [error] 10904#0: *5728 connect() failed (110:
Connection timed out) while connecting to upstream, client: 2.92.46.112, ...
2012/07/08 09:42:09 [error] 10904#0: *5732 connect() failed (110:
Connection timed out) while connecting to upstream, client:
93.181.202.77, ...
2012/07/08 09:42:09 [error] 10904#0: *5731 connect() failed (110:
Connection timed out) while connecting to upstream, client: 2.92.46.112, ...
2012/07/08 09:42:09 [error] 10904#0: *5735 connect() failed (110:
Connection timed out) while connecting to upstream, client: 2.92.46.112, ...
2012/07/08 09:42:10 [error] 10904#0: *5737 connect() failed (110:
Connection timed out) while connecting to upstream, client: 85.26.234.5, ...


Вопрос - почему nginx делает так много попыток соединения через
www1.company.ru ? Ведь он же получил Connection timed out и должен был в
соответствии с fail_timeout=600s 10 минут туда не соваться!!!
Или я что-то не так настроил?

Дмитрий Лабутин

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

А fail_timeout в ngx_http_upstream_module работает?

Dmitry Y. Labutin July 08, 2012 01:48AM

Re: А fail_timeout в ngx_http_upstream_module работает?

Maxim Dounin July 08, 2012 05:18AM

Re: А fail_timeout в ngx_http_upstream_module работает?

Dmitry Y. Labutin July 08, 2012 05:42AM

Re: А fail_timeout в ngx_http_upstream_module работает?

Maxim Dounin July 08, 2012 11:44AM

Re: А fail_timeout в ngx_http_upstream_module работает?

Dmitry Y. Labutin July 08, 2012 01:06PM

Re: А fail_timeout в ngx_http_upstream_module работает?

Maxim Dounin July 08, 2012 03:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready