Welcome! Log In Create A New Profile

Advanced

Use next Balanced member if 503 error

December 06, 2012 12:34PM
Hello I am working with nginx as balancer between two jetty servers.

The balancing is working but I am facing a problem when a 503 error is generated by one of the servers, I added the line

proxy_next_upstream error timeout invalid_header http_500 http_503;

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.

Thanks for your help.
SubjectAuthorPosted

Use next Balanced member if 503 error

marcosluna79December 06, 2012 12:34PM

Re: Use next Balanced member if 503 error

Maxim DouninDecember 07, 2012 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 5 on November 26, 2014
Record Number of Guests: 173 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready