Load-balancing

Hi,

I have a question about nginx configured as a load-balancer. Usually,
when HTTP requests are balanced to a back-end server, the HTTP reply is
sent back to the client through the load-balancer. Is this also the case
for nginx, or is it also possible to configure nginx that the backend
server will directly respond to the client? I wonder…

Thank you,
Andrej

Posted at Nginx Forum:

I don’t think that is technically possible because of the way that whole
http thing works. Browser expects to get reply’s from the server they
requested information from. They don’t open ports and wait for servers
to
connect to them. Also, web server doesn’t connect to anyone, they just
open
ports and wait until some browser ask some information. So, what you
asking
is not technically possible.

Best Regards,

Yaar Arabac

2011/7/23 andrejvanderzee [email protected]

Yes that is what my thoughts are too, just want to have a confirmation,
especially from a nginx-developer.

Cheers,
Andrej

Posted at Nginx Forum:

Umm, just to clarify things, I am not an nginx developer.

2011/7/23 andrejvanderzee [email protected]

Hello!

On Sat, Jul 23, 2011 at 11:35:05AM -0400, andrejvanderzee wrote:

I have a question about nginx configured as a load-balancer. Usually,
when HTTP requests are balanced to a back-end server, the HTTP reply is
sent back to the client through the load-balancer. Is this also the case
for nginx,

Yes.

or is it also possible to configure nginx that the backend
server will directly respond to the client? I wonder…

No.

Maxim D.

what you are looking for is a LB with DSR mode (direct server return)
this is done by manipulating the mac add header … you could hack
something up yourself or purchase an appliance from known vendors that
support dsr mode (brocade/a10 being 2 of many…)

-Payam

Hi,

or use Linux IPVS which has a DR Mode.

Regards,
Sven

Am 24.07.2011 03:35, schrieb Payam C.: