[Varnish] #501: Stats variable to monitor how many threads are actually doing something (n_wrk_busy): busy threads monitoring

Varnish varnish-bugs at projects.linpro.no
Wed Apr 29 05:49:32 CEST 2009


#501: Stats variable to monitor how many threads are actually doing something
(n_wrk_busy): busy threads monitoring
-------------------------------------+--------------------------------------
 Reporter:  stockrt                  |        Owner:  phk
     Type:  enhancement              |       Status:  new
 Priority:  normal                   |    Milestone:     
Component:  varnishd                 |      Version:  2.0
 Severity:  normal                   |   Resolution:     
 Keywords:  busy threads monitoring  |  
-------------------------------------+--------------------------------------
Comment (by stockrt):

 I am not sure if this initialisation of 'n_wrk_busy = 0' is required. I
 can see that in r4040 (post 2.0.4 release) when we declare a new stats
 variable, there is a field that seems to be the initial value. This does
 not exist for 2.0.4 release.

 So, this needs checks in my patches:

   VSL_stats->n_wrk_busy = 0;

 I also can see that sometimes variables are not initialised in 2.0.4
 release, but I prefer to publish my code the way I place it here,
 initialising this var. If you thing it is better not, please remove these
 extra lines.

 Regards,

 Rogério Schneider

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/501#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list