Question about UPSTREAM configuration

Hello All,

Hope some one out there can help me a clear up my understanding.

If I have 5 server on an upstream configuration list, to help load
balance
the load across the 5 servers. Once in a while I am seen “(110:
Connection timed out) while connecting to upstream”. Now what I am not
clear on is that message as a result of trying all the servers on the
upstream list or after failing on a single entry on the upstream list?
if
it is a single server then it should transfer the request to the next
server
on the list, right?

Thank you.

Luis

Posted at Nginx Forum:

Hello!

On Wed, May 01, 2013 at 01:30:14PM -0400, lflacayo wrote:

Hello All,

Hope some one out there can help me a clear up my understanding.

If I have 5 server on an upstream configuration list, to help load balance
the load across the 5 servers. Once in a while I am seen “(110:
Connection timed out) while connecting to upstream”. Now what I am not
clear on is that message as a result of trying all the servers on the
upstream list or after failing on a single entry on the upstream list?

It’s about single server (and it should print server’s address in
the following text).

if
it is a single server then it should transfer the request to the next server
on the list, right?

This depends on proxy_next_upstream directive, but usually the
answer is yes.


Maxim D.
http://nginx.org/en/donation.html

Thank you for your prompt reply. just one more … If I have 5
servers on
the upstream, use the IP_HASH, is the load distribution based on a round
robin when requests would go to the first on the list. then the second,
the third, … Or does NGIX create some kind of distribution array.

Thank you in advance.

Luis

Posted at Nginx Forum: