[Varnish] #361: random director only sending traffic to one backend

Varnish varnish-bugs at projects.linpro.no
Sat Oct 25 03:36:15 CEST 2008


#361: random director only sending traffic to one backend
-----------------------+----------------------------------------------------
 Reporter:  fehwalker  |       Owner:  phk     
     Type:  defect     |      Status:  new     
 Priority:  high       |   Milestone:          
Component:  varnishd   |     Version:  2.0     
 Severity:  major      |    Keywords:  director
-----------------------+----------------------------------------------------
 Howdy,

 To summarize, I have three machines running Ubuntu Server 8.04.1. The two
 backend boxes are running Apache 2.2 serving static content and proxing to
 local Jetty6 containers, and the frontend box is running Varnish 2.0.1
 with a random director. However, only the second backend receives any
 requests. If the second backend is sick the director properly switches to
 the first backend, which is good, but I was ideally hoping to have both
 backends active.

 I saw a similar report in the list archives from September by
 duja at torlen.net, but I didn't see a bug report.

 My VCL to setup the backends and director is like so:

 backend web01 { .host = "10.107.111.30"; .port = "80"; .host_header =
 "hostname.ca"; .probe = {
                 .url = "/index.gsp"; .timeout = 50 ms; .interval = 2s;
 .window = 10; .threshold = 8;
         }
 }
 backend web02 { .host = "10.107.111.31"; .port = "80"; .host_header =
 "hostname.ca"; .probe = {
                 .url = "/index.gsp"; .timeout = 50 ms; .interval = 2s;
 .window = 10; .threshold = 8;
         }
 }
 director balance random {
         { .backend = web01; .weight = 1; }
         { .backend = web02; .weight = 1; }
 }

 Also, per discussion I read at some point while setting this up, I have
 disabled keepalives in Apache.

 Some perhaps useful varnishstat output:

        24005         0.00         0.09 Client connections accepted
       129163         4.00         0.49 Client requests received
       101185         4.00         0.39 Cache hits
         1464         0.00         0.01 Cache hits for pass
        26511         0.00         0.10 Cache misses
        27978         0.00         0.11 Backend connections success
            0         0.00         0.00 Backend connections not attempted
            0         0.00         0.00 Backend connections too many
            0         0.00         0.00 Backend connections failures
            0         0.00         0.00 Backend connections reuses
            0         0.00         0.00 Backend connections recycles
            0         0.00         0.00 Backend connections unused

 Let me know if there's any other info I can provide, with the caveat that
 this is a production setup so any disruption will need to be brief.

 Thanks,
 Bryan

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


More information about the varnish-bugs mailing list