How to reduce wait time before switch to backup upstream?

Reinis Rozitis r at roze.lv
Fri Oct 9 15:11:27 MSD 2009


http://wiki.nginx.org/NginxHttpProxyModule#proxy_connect_timeout

rr

----- Original Message ----- 
From: Tr?n Tr?ng T?n
To: nginx at sysoev.ru
Sent: Friday, October 09, 2009 12:54 PM
Subject: How to reduce wait time before switch to backup upstream?


Dear list,

Here's my current config:
http {
    upstream ups {
        server 192.168.90.100;
        server 192.168.91.110 backup;
    }
    server {
        listen       80;
        server_name  localhost;
        location / {
            proxy_pass http://ups;
        }
    }
}
It shows that when main server (192.168.90.100) is down, it took at least 10 
seconds to get response from backup server (which almost instant when main 
server up). I wonder how can I reduce this delay?

TIA,
-giobuon 






More information about the nginx mailing list