Restarting upstream servers

Joe Van Dyk joe at
Thu May 22 05:58:15 MSD 2008


I'm using a bunch of upstream servers and using nginx as a proxy for
them.  The upstreams run on two different machines.

When I restart the upstreams on one server, I get a bunch of errors like these:

2008/05/21 18:02:39 [error] 4658#0: *36236 sendfilev() failed (134:
Transport endpoint is not connected) while sending request to
upstream, client:, server:, URL:
"/feed/products?t=1211418157562", upstream:
"", host:

2008/05/21 18:02:40 [error] 4645#0: *66641 connect() failed (146:
Connection refused) while connecting to upstream, client:, server:, URL:
upstream: "",
host: "", referrer:

Any way to avoid those?  Ideally, since not all the upstreams are
down, when the request to the upstream fails due to connection
problems, I'd like to try the request on a different upstream, so the
user doesn't see anything wrong.


More information about the nginx mailing list