Welcome! Log In Create A New Profile

Advanced

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

Maxim Dounin
May 08, 2014 10:48PM
Hello!

On Thu, May 08, 2014 at 02:47:47PM +1200, Nicholas Sherlock wrote:

> On 8 May 2014 06:05, rodrigo.aiello <nginx-forum@nginx.us> wrote:
>
> > Nginx is receiving the bytes and then
> > delivering. I wonder if anyone has gone through this problem and found a
> > better solution.

As already suggested, the original problem is likely to be related
to micro instance. In particular, there were reports that network
is very slow on such instances.

> Indeed, Nginx reads the whole response from the backend before a single
> byte is sent to the client. That can add latency if your response is very

This is not true.

> large. This is controlled by the proxy_buffering setting, so try setting it
> to "no":
>
> http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering

Using buffering allows to read a resonse from a backend as fast as
possible, while sending the response to the client. This allows
to save expensive backend processes while serving large responses
to slow clients.

It doesn't imply reading "the whole response from the backend
before a single byte is sent to the client" - as long as at least
one buffer is full, it will be sent to a client.

--
Maxim Dounin
http://nginx.org/

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

Nginx receiving bytes from Amazon ELB (Performance Issue)

rodrigo.aiello May 07, 2014 02:05PM

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

Jonathan Matthews May 07, 2014 02:12PM

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

rodrigo.aiello May 07, 2014 02:17PM

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

Nicholas Sherlock May 07, 2014 10:50PM

Re: Nginx receiving bytes from Amazon ELB (Performance Issue)

Maxim Dounin May 08, 2014 10:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
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