How to reduce wait time before switch to backup upstream?

Trần Trọng Tấn giobuon at gmail.com
Fri Oct 9 13:54:33 MSD 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091009/e8ac0a55/attachment.html>


More information about the nginx mailing list