[Varnish] #215: regex matches sporadically on identical request

Varnish varnish-bugs at projects.linpro.no
Fri Feb 29 20:26:52 CET 2008


#215: regex matches sporadically on identical request
----------------------+-----------------------------------------------------
 Reporter:  onitunes  |       Owner:  des  
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  build     |     Version:  1.0.4
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 Here's my VCL file:

 backend production {
   set backend.host = "192.168.4.81";
   set backend.port = "http";
 }

 backend old_production {
   set backend.host = "192.168.4.111";
   set backend.port = "8000";
 }

 sub vcl_recv {
   if (req.url ~ "/old.*") {
     set req.backend = old_production;
   }
   else {
     set req.backend = production;
   }

   if (req.request == "GET" && req.url ~
 "\.(gif|jpg|png|swf|css|js)(\?.*)?$") {
     lookup;
   }
 }

 On this URL (and URLs like it):

      http://gtd.1kstudios.lan/old/task_assignments/actualize/7482

 , the backend chosen occasionally is production, not old_production. This
 gets worse over time (i.e. over the course of weeks). Repeatedly reloading
 the same page will eventually result in it loading in the correct backend,
 only to fail again later on subsequent reloads.

 This is on Fedora Core 4 64-bit x86.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/215>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list