HTTP-POST Upload Buffer - Nginx Loadbalancer

Hello Nginx-List,

i need some help setting up my Nginx Loadbalancer. I use Nginx as
Loadbalancer in front of 2 Webservers (running Nginx/PHP-FPM).

While uploading files with HTTP POST upload, these files are buffed
(temporary storaged) on my loadbalancer, is there a way pushing those
files (filesize 500k - 5m) directly to the Backend-Servers to minimize
the load on the Loadbalancer?

Any hints are welcome.

Thanks for your help.

Kind regards

Elena

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX

2010/6/3 Elena Z. [email protected]:

Thanks for your help.
Why are you using nginx in front of nginx? Use nginx in front of two
backends with PHP-FPM. Or use haproxy, not nginx.

2010/6/4 Malte G. [email protected]:

In either way you can try setting:

 proxy_buffering off;
This toggles response buffering, not request.

In either way you can try setting:

proxy_buffering off;

in your location where you placed the proxy configuration.

kind regards,
Malte

Am 03.06.10 19:58, schrieb Mikhail Mazursky:

Hello!

On Thu, Jun 03, 2010 at 07:51:59PM +0200, Elena Z. wrote:

i need some help setting up my Nginx Loadbalancer. I use Nginx
as Loadbalancer in front of 2 Webservers (running
Nginx/PHP-FPM).

While uploading files with HTTP POST upload, these files are
buffed (temporary storaged) on my loadbalancer, is there a way
pushing those files (filesize 500k - 5m) directly to the
Backend-Servers to minimize the load on the Loadbalancer?

No.

Maxim D.

Thanks for your fast help.

Mikhail that is a good question, why nginx behind nginx? We Set
up these nginx with the “sorry-server” function, so our Site
goes never down when something goes wrong on our Application Servers,
a minimal version is running on our “sorry-server” than its easy to bind
in an other working Appliction server.

What about HAProxy, buffer HAProxy the HTTP UPLOAD File? Perhaps
its a good point to rethink the use of our servers…

Thanks for your answers.

Have a nice Day.

Elena

-------- Original-Nachricht --------

Datum: Thu, 3 Jun 2010 22:25:50 +0400
Von: Maxim D. [email protected]
An: [email protected]
Betreff: Re: HTTP-POST Upload Buffer - Nginx Loadbalancer

pushing those files (filesize 500k - 5m) directly to the
Backend-Servers to minimize the load on the Loadbalancer?

No.

Maxim D.


nginx mailing list
[email protected]
nginx Info Page


GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX

On Thu, Jun 3, 2010 at 2:51 PM, Elena Z. [email protected] wrote:

Thanks for your fast help.

Mikhail that is a good question, why nginx behind nginx? We Set
up these nginx with the “sorry-server” function, so our Site
goes never down when something goes wrong on our Application Servers,
a minimal version is running on our “sorry-server” than its easy to bind in an other working Appliction server.

What about HAProxy, buffer HAProxy the HTTP UPLOAD File? Perhaps
its a good point to rethink the use of our servers…

HAProxy does not buffer HTTP Posts. Unfortunately, it can’t terminate
SSL so if you’re trying to upload via an HTTPS connection you’ll need
to find a different solution altogether. FWIW, this appears to be a
frequent feature request for Nginx. I even offered to sponsor the
development, but never got a response. I’m not sure what the hangup
was.

-SH

2010/6/4 Elena Z. [email protected]:

What about HAProxy, buffer HAProxy the HTTP UPLOAD File?
All info about it can be found on it’s official site
http://haproxy.1wt.eu/