Re: cache file has too long header (bug) ?

2015-09-11 Thread Maxim Dounin
Hello! On Thu, Sep 10, 2015 at 04:52:54PM -0400, biazus wrote: > Hi Maxim, > > Thank You for your answer. It really makes sense, however, in the > mentioned case, I could see an elevation of the number of occurrences just > after the migration from nginx 1.6 to nginx 1.8. > This behavi

Re: time to read packets for HTTP query

2015-09-11 Thread Frederik Nosi
Hi Maxim, On 09/11/2015 02:53 PM, Maxim Dounin wrote: Hello! On Fri, Sep 11, 2015 at 02:15:25PM +0200, Lukas Tribus wrote: Does not seem to do what the GP asked, from the docs: $request_time request processing time in seconds with a milliseconds resolution (1.3.9, 1.2.6); time elapsed since

Re: time to read packets for HTTP query

2015-09-11 Thread Maxim Dounin
Hello! On Fri, Sep 11, 2015 at 02:15:25PM +0200, Lukas Tribus wrote: > > Does not seem to do what the GP asked, from the docs: > > > > $request_time > > request processing time in seconds with a milliseconds resolution > > (1.3.9, 1.2.6); time elapsed since the first bytes were read from the clie

Re: Multiple limit_req_zone for same site

2015-09-11 Thread itpp2012
strtwtsn Wrote: --- > then the first limit won't apply to the second location > > Thanks Once a location match is made it will stay inside this location including its settings. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261573,26

RE: time to read packets for HTTP query

2015-09-11 Thread Lukas Tribus
> Does not seem to do what the GP asked, from the docs: > > $request_time > request processing time in seconds with a milliseconds resolution > (1.3.9, 1.2.6); time elapsed since the first bytes were read from the client "request time" would imply the time (with our without parsing) of the actual

Re: Multiple limit_req_zone for same site

2015-09-11 Thread strtwtsn
Thanks so if I do location / limit_req_zone and then location /limited/ limit_req_zone then the first limit won't apply to the second location Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261573,261576#msg-261576 ___ nginx ma

Re: time to read packets for HTTP query

2015-09-11 Thread Frederik Nosi
Hi, On 09/11/2015 11:20 AM, Lukas Tribus wrote: Hi, I'm running a SAAS service running via NGINX and have been running tcpdump to look at the incoming packets for HTTP queries. Many of the HTTP queries are bigger than the MTU of 1,500 bytes and therefore arrive as 2, 3, or 4 packets. I notice

Re: Multiple limit_req_zone for same site

2015-09-11 Thread itpp2012
You can define several zones; limit_req_zone $binary_remote_addr zone=flooda:20m rate=128r/s; limit_req_zone $binary_remote_addr zone=floodp:20m rate=64r/s; limit_req_zone $binary_remote_addr zone=floodh:10m rate=64r/s; and use them separately in location(s) /limited/ { limit_req zone=floodh

Multiple limit_req_zone for same site

2015-09-11 Thread strtwtsn
Hi I'm trying to set multiple limit_req_zones for the same site. Is this possible? We have a few areas where clicking on a link seems to generate a lot of 503s so we'd like to up the limit without jeopardizing the stability of the rest of the site. Thanks Posted at Nginx Forum: http://forum.n

RE: time to read packets for HTTP query

2015-09-11 Thread Lukas Tribus
Hi, > I'm running a SAAS service running via NGINX and have been running tcpdump > to look at the incoming packets for HTTP queries. Many of the HTTP queries > are bigger than the MTU of 1,500 bytes and therefore arrive as 2, 3, or 4 > packets. I noticed that for some customers there are signific