Welcome! Log In Create A New Profile

Advanced

proxy_buffering off disable cache ?

Posted by Nelson Marcos 
Nelson Marcos
proxy_buffering off disable cache ?
March 17, 2017 06:30PM
Hello all,

Right now we're using Nginx(as a proxy) to serve videos(4gb) and small
objects(< 100k), using Openstack Swift as backend.

Yesterday, I tried turn proxy_buffering off to see if it would improve
nginx performance but it didn't.

However, I realised that nginx stoped to write new files on proxy_temp_path
and proxy_cache_path until I turn proxy_buffering off.


I have two question:

1) Is that a expected behaviour? If I turn proxy_buffering off, nginx will
disable cache and temp files?


2) If proxy_buffering is on, shouldn't nginx recieve the entire response,
before send it to the cliente? Or does it wait only enough to fill the
configured buffers?


Regards,
NM
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: proxy_buffering off disable cache ?
March 17, 2017 06:50PM
Hello!

On Fri, Mar 17, 2017 at 02:21:55PM -0300, Nelson Marcos wrote:

> Hello all,
>
> Right now we're using Nginx(as a proxy) to serve videos(4gb) and small
> objects(< 100k), using Openstack Swift as backend.
>
> Yesterday, I tried turn proxy_buffering off to see if it would improve
> nginx performance but it didn't.
>
> However, I realised that nginx stoped to write new files on proxy_temp_path
> and proxy_cache_path until I turn proxy_buffering off.
>
>
> I have two question:
>
> 1) Is that a expected behaviour? If I turn proxy_buffering off, nginx will
> disable cache and temp files?

Yes.

> 2) If proxy_buffering is on, shouldn't nginx recieve the entire response,
> before send it to the cliente? Or does it wait only enough to fill the
> configured buffers?

No, it only waits for one buffer to be filled.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Nelson Marcos
Re: proxy_buffering off disable cache ?
March 18, 2017 01:30AM
Thanks \o/

Um abra├žo,
NM

2017-03-17 14:46 GMT-03:00 Maxim Dounin <[email protected]>:

> Hello!
>
> On Fri, Mar 17, 2017 at 02:21:55PM -0300, Nelson Marcos wrote:
>
> > Hello all,
> >
> > Right now we're using Nginx(as a proxy) to serve videos(4gb) and small
> > objects(< 100k), using Openstack Swift as backend.
> >
> > Yesterday, I tried turn proxy_buffering off to see if it would improve
> > nginx performance but it didn't.
> >
> > However, I realised that nginx stoped to write new files on
> proxy_temp_path
> > and proxy_cache_path until I turn proxy_buffering off.
> >
> >
> > I have two question:
> >
> > 1) Is that a expected behaviour? If I turn proxy_buffering off, nginx
> will
> > disable cache and temp files?
>
> Yes.
>
> > 2) If proxy_buffering is on, shouldn't nginx recieve the entire
> response,
> > before send it to the cliente? Or does it wait only enough to fill the
> > configured buffers?
>
> No, it only waits for one buffer to be filled.
>
> --
> Maxim Dounin
> http://nginx.org/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login