Welcome! Log In Create A New Profile

Advanced

Re: Optimal nginx settings for websockets sending images

February 28, 2013 11:06PM
Thanks man :)

> > proxy_buffers 8 2m;
> > proxy_buffer_size 10m;
> > proxy_busy_buffers_size 10m;
>
> Buffers used looks huge, make sure you have enough memory.

Mmmhhh, do you think I should remove these and trust nginx's default values for these buffer?

> > proxy_cache one;
> > proxy_cache_key "$request_uri|$request_body";
>
> Usuing request body as a cache key isn't really a good idea unless
> all request bodies are known to be small.

Ok, I changed that to:
proxy_cache_key "$scheme$host$request_uri";

I also made few additions under location/:

proxy_cache_valid 200 302 304 10m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_404;

Do you think these are good and justified?

Unfortunately I'm seeing these warnings now:
"an upstream response is buffered to a temporary file"

Any hints why? Help is much appreciated

Cheers
Michael
SubjectAuthorPosted

Optimal nginx settings for websockets sending images

michael.heubergerFebruary 25, 2013 10:15PM

Re: Optimal nginx settings for websockets sending images

Maxim DouninFebruary 26, 2013 07:32AM

Re: Optimal nginx settings for websockets sending images

michael.heubergerFebruary 28, 2013 11:06PM

Re: Optimal nginx settings for websockets sending images

michael.heubergerFebruary 28, 2013 11:08PM

Re: Optimal nginx settings for websockets sending images

Maxim DouninMarch 01, 2013 08:00AM

Re: Optimal nginx settings for websockets sending images

michael.heubergerMarch 01, 2013 11:54PM

Re: Optimal nginx settings for websockets sending images

Maxim DouninMarch 03, 2013 07:10AM

Re: Optimal nginx settings for websockets sending images

michael.heubergerMarch 03, 2013 05:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready