Ryan Malayter
May 04, 2010 12:14AM
A bit o

On Sunday, May 2, 2010, brama <nginx-forum@nginx.us> wrote:
> Nothing? Is there anything else I should be looking at to prevent overloading a backend?
>
> E.g. splitting off nginx configs into 1 instance for dynamic requests, and 1 for static requests? The dynamic requests nginx would then limit connections by setting worker.max_connections, and assuming it fairly distributes requests over the multiple (identical) backends?

It's a bit of a hack, but you could have nginx proxy to itself and
then to the backend. At the middle layer, you use connection limits.
You could probably even use error_page to have clients random wait and
retry if the backend was too busy.


--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Limiting number of connections to upstream servers

brama April 27, 2010 12:06PM

Re: Limiting number of connections to upstream servers

brama May 02, 2010 06:12AM

Re: Limiting number of connections to upstream servers

Ryan Malayter May 04, 2010 12:14AM

Re: Limiting number of connections to upstream servers

theromis1 May 06, 2010 02:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready