Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th February 2014, 13:17
domoarrigato domoarrigato is offline
Junior Member
 
Join Date: Feb 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default microcache wont rewarm with new requests

My website is a Drupal 7 site serving mostly static content. I am currently using nginx + php-fcgi backend. I am running varnish on the front end. I have nginx microcache configured (15s for a 200 response), and it initially works as expected, but when the cache expires, subsequent requests fail to re-warm the cache, and it just misses. On loading, this swamps my backend.
## The cache zone referenced.
fastcgi_cache microcache;
fastcgi_cache_key $host$request_uri;
fastcgi_cache_valid 200 301 15s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 404 1m;
fastcgi_cache_use_stale error timeout invalid_header updating http_500;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
add_header X-Micro-Cache $upstream_cache_status;
expires epoch;
I think I should be getting hits for 15s, then one miss, which should trigger a php5-fpm process spawn, and should rewarm the cache. I should be getting served stale cached data in the meantime. Instead, curling headers at 1s intervals, I get 1 miss, 15s worth of hits, an Expired response, and then non-stop misses with new etags. If I let it sit for a while - like 30 seconds or so, I can get the process to start again, however, if I keep loading it misses continue indefinitely.
Reply With Quote
Sponsored Links
Reply

Bookmarks

Tags
cache, nginx

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results Nginx Microcache ISP Config vs ApacheBooster for Cpanel DanielP Server Operation 2 10th December 2013 12:04
GlusterFS: Severe performance problem with concurrent HTTP requests fredkin HOWTO-Related Questions 0 15th November 2011 21:52
Server reached MaxClients setting vaio1 Installation/Configuration 2 29th April 2009 10:51
ssh stop answering requests mdk Server Operation 7 20th January 2009 19:56
apc-php5-apache2-debian-etch Thunderbirdsei HOWTO-Related Questions 2 2nd May 2008 15:49


All times are GMT +2. The time now is 18:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.