Welcome! Log In Create A New Profile

Advanced

Re: Problem request_timeout not working with proxy_next_upstream on proxy_connect_timeout but proxy_read_timeout

March 06, 2013 05:44AM
For beter understanding here is my config sniper

upstream super_upstream {
keepalive 128;
server be1 max_fails=45 fail_timeout=3s;
server be2 max_fails=45 fail_timeout=3s;
server be3 max_fails=45 fail_timeout=3s;
}

server {
server_name pytn.ru;
location ^~ /simple_requests {
proxy_read_timeout 2s;
proxy_send_timeout 2s;
proxy_connect_timeout 10ms;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_pass http://super_upstream;
}

location ^~ /very_heavy_requests {
send_timeout 60s;
proxy_read_timeout 60s;
proxy_send_timeout 60s;
proxy_connect_timeout 5ms;
proxy_next_upstream timeout;
proxy_pass http://super_upstream;
}
SubjectAuthorPosted

Problem request_timeout not working with proxy_next_upstream on proxy_connect_timeout but proxy_read_timeout

yvlasovMarch 06, 2013 05:28AM

Re: Problem request_timeout not working with proxy_next_upstream on proxy_connect_timeout but proxy_read_timeout

yvlasovMarch 06, 2013 05:44AM

Re: Problem request_timeout not working with proxy_next_upstream on proxy_connect_timeout but proxy_read_timeout

Maxim DouninMarch 06, 2013 07:40AM

Re: Problem request_timeout not working with proxy_next_upstream on proxy_connect_timeout but proxy_read_timeout

yvlasovMarch 07, 2013 08:47AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready