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

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

rr

----- Original Message -----
From: Tr?n Tr?ng T?n
To: [email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs