It seems not to work when one of the servers fail because a resource is
lost
like a DB connection. I can see the 503 error page instead of the
correct
page in the other balanced member.
I have checked that the other server do have a valid DB connection but
nginx
fails to forward to it.
On Thu, Dec 06, 2012 at 12:34:18PM -0500, marcosluna79 wrote:
I have checked that the other server do have a valid DB connection but nginx
fails to forward to it.
The 503 error may be returned even with “proxy_next_upstream
http_503” configured e.g. if both backends return 503 or one of the
backends was already considered down for some reason (due to
previous errors).
If you want to investigate what goes on in your case, you probably
want to log details on upstream communication like $upstream_addr,
$upstream_status, see here for more details: