Re: Image serving via nginx are too slow, why ?

2014-08-25 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did you try using aio? Try turn off sendfile and tcp_nopush also. Here is my patch http://fpaste.org/128456/40901547/raw/ On 8/26/2014 03:51, tristanb wrote: > Hello, > > Before posting, i've done a lot of google search, and i found other > similar i

Image serving via nginx are too slow, why ?

2014-08-25 Thread tristanb
Hello, Before posting, i've done a lot of google search, and i found other similar issue without any solutions. So, Why nginx is slow serving files in my case ? Part 1. The hardware Intel Xeon E5-1620v2 4c/8t 3,7 GHz 32 Go DDR3 ECC 1600MHz 3xSSD Intel 160Go 1 Gbps The load average is 0.13 I've

Re: Change client_body_timeout status code

2014-08-25 Thread Maxim Dounin
Hello! On Wed, Aug 13, 2014 at 10:37:10AM -0400, carles.sistare wrote: > Hi, > I'm using client_body_timeout which returns a 408 or 503 status code, not > sure. > The thing is that I need this to be intercepted, somehow, and to change this > status code to some ohter particular code. On client_b

Re: Big dispersion in requests execution time.

2014-08-25 Thread Maxim Dounin
Hello! On Tue, Aug 19, 2014 at 07:31:21AM -0400, yury_y wrote: > Hi, > > I faced the following problem. Our server works under the constant load of > 300-400 requests per second. > From request execution time statistics I see that in some cases "fast" > request(that normally executes in few mill

Re: Hello - and missing verification of configuration format / very tiny mem leak in limit_req config

2014-08-25 Thread Maxim Dounin
Hello! On Sat, Aug 23, 2014 at 07:03:32PM +0100, Martin Frb wrote: > Hi, > > My name is Martin. I am new to this list (obvious), and new to nginx as > well. > I hope this is the right place for the feedback I have, if not please > correct me. Well the below may be for the bugtracker. Except: It

Re: nginx permission denied for upstream unix socket

2014-08-25 Thread Tim
I found the issue by myself. selinux was blocking the access to the socket. This is now fixed. Am 2014-08-25 15:51, schrieb Tim: Am 2014-08-25 15:46, schrieb Valentin V. Bartenev: On Monday 25 August 2014 15:21:44 Tim wrote: Hi, I'm running nginx under CentOS 7 as a local proxy for a puppetm

Re: nginx permission denied for upstream unix socket

2014-08-25 Thread Edwin
Le 2014-08-25 09:51, Tim a écrit : Am 2014-08-25 15:46, schrieb Valentin V. Bartenev: On Monday 25 August 2014 15:21:44 Tim wrote: Hi, I'm running nginx under CentOS 7 as a local proxy for a puppetmaster. I get the following error for every agent trying to connect to the master: "[crit] 85

Re: nginx permission denied for upstream unix socket

2014-08-25 Thread Tim
Am 2014-08-25 15:46, schrieb Valentin V. Bartenev: On Monday 25 August 2014 15:21:44 Tim wrote: Hi, I'm running nginx under CentOS 7 as a local proxy for a puppetmaster. I get the following error for every agent trying to connect to the master: "[crit] 8543#0: *13 connect() to unix:/var/run

Re: nginx permission denied for upstream unix socket

2014-08-25 Thread Valentin V. Bartenev
On Monday 25 August 2014 15:21:44 Tim wrote: > Hi, > > I'm running nginx under CentOS 7 as a local proxy for a puppetmaster. I > get the following error for every agent trying to connect to the master: > > "[crit] 8543#0: *13 connect() to > unix:/var/run/puppet/puppetmaster_puma.sock failed (13

nginx permission denied for upstream unix socket

2014-08-25 Thread Tim
Hi, I'm running nginx under CentOS 7 as a local proxy for a puppetmaster. I get the following error for every agent trying to connect to the master: "[crit] 8543#0: *13 connect() to unix:/var/run/puppet/puppetmaster_puma.sock failed (13: Permission denied) while connecting to upstream, clien

Re: Where to store global settings in filter

2014-08-25 Thread Maxim Dounin
Hello! On Mon, Aug 25, 2014 at 10:55:06AM +0800, Jerry OELoo wrote: > Hi All: > I have some settings in a json file (not in nginx.conf file), > Currently, in my module filter function, I will open file, read file, > close file every time filter function is called. > I think this is not so good, s

Re: nginx is too strict about accept-ranges

2014-08-25 Thread Maxim Dounin
Hello! On Mon, Aug 25, 2014 at 08:23:28AM -0400, jakubp wrote: > Hi > > I am using nginx to proxy/cache requests from different origin servers, some > of which I don't have access to (can't change their behaviour). Recently I > stumbled upon a problem where nginx wouldn't serve partial objects (

nginx is too strict about accept-ranges

2014-08-25 Thread jakubp
Hi I am using nginx to proxy/cache requests from different origin servers, some of which I don't have access to (can't change their behaviour). Recently I stumbled upon a problem where nginx wouldn't serve partial objects (even after they are cached) although upstream server would happily do that.