How to reduce wait time before switch to backup upstream?

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

Dear list,

Here's my current config:
http {
    upstream ups {
        server backup;
    server {
        listen       80;
        server_name  localhost;
        location / {
            proxy_pass http://ups;
It shows that when main server ( 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list