Re: Cache doesn't expire as should

2015-12-22 Thread Руслан Закиров
On Tue, Dec 22, 2015 at 4:39 PM, itpp2012 wrote: > Have you tried without locking? No as it's unacceptable load increase on backends when cache record expires. -- Руслан Закиров Руководитель отдела разработки веб-сервисов +7(916) 597-92-69, ruz @

Re: serve precompressed files without also serving their uncompressed counterparts

2015-12-22 Thread Maxim Dounin
Hello! On Tue, Dec 22, 2015 at 07:15:53PM +0300, Valentin V. Bartenev wrote: > On Tuesday 22 December 2015 19:05:18 Valentin V. Bartenev wrote: > > On Tuesday 22 December 2015 11:01:19 snieuwen wrote: > > > Hi, > > > > > > Is it possible to serve precompressed files without serving their > > > u

Re: serve precompressed files without also serving their uncompressed counterparts

2015-12-22 Thread Valentin V. Bartenev
On Tuesday 22 December 2015 19:05:18 Valentin V. Bartenev wrote: > On Tuesday 22 December 2015 11:01:19 snieuwen wrote: > > Hi, > > > > Is it possible to serve precompressed files without serving their > > uncompressed counterparts? > > > > For example: > > /var/www/ contains index.html.gz, but n

Re: serve precompressed files without also serving their uncompressed counterparts

2015-12-22 Thread Valentin V. Bartenev
On Tuesday 22 December 2015 11:01:19 snieuwen wrote: > Hi, > > Is it possible to serve precompressed files without serving their > uncompressed counterparts? > > For example: > /var/www/ contains index.html.gz, but no index.html. How do I configure > nginx to respond with index.html.gz when the c

serve precompressed files without also serving their uncompressed counterparts

2015-12-22 Thread snieuwen
Hi, Is it possible to serve precompressed files without serving their uncompressed counterparts? For example: /var/www/ contains index.html.gz, but no index.html. How do I configure nginx to respond with index.html.gz when the client supports gzip or let nginx decompress the file on the fly when

Re: Cache doesn't expire as should

2015-12-22 Thread Maxim Dounin
Hello! On Tue, Dec 22, 2015 at 02:43:11PM +0300, Руслан Закиров wrote: [...] > Our error log has "ignore long locked inactive cache entry" alerts, but I > really couldn't match it to "defreeze" event. Access log has STALE/UPDATING > requests between the alert and EXPIRED (cache updating) request

Re: Cache doesn't expire as should

2015-12-22 Thread itpp2012
Have you tried without locking? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263625,263629#msg-263629 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Cache doesn't expire as should

2015-12-22 Thread Руслан Закиров
On Tue, Dec 22, 2015 at 3:42 PM, itpp2012 wrote: > Your (pastebin) config? > Cache situation? (harddisks, cache configuration, etc.) > https://gist.github.com/ruz/05456767750715f6b54e Pasted relevant configuration. Can add more on request, our complete config is 4k lines splitted into 200 files

Re: Cache doesn't expire as should

2015-12-22 Thread itpp2012
Your (pastebin) config? Cache situation? (harddisks, cache configuration, etc.) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263625,263626#msg-263626 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Cache doesn't expire as should

2015-12-22 Thread Руслан Закиров
Hi, I stuck in analyzing this and can not repeat in a test environment. We see '/' location "freeze" from time to time as nginx stops updating cache. This lasts for 30 minutes - an hour. Regular requests flow: HIT ... HIT UPDATING UPDATING EXPIRED (every 30 seconds) HIT ... So under normal cond