<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Georgia;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:679503889;
        mso-list-type:hybrid;
        mso-list-template-ids:674542712 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'>First, some good news: after a few fits, starts, and
configuration tweaks, we’ve succeeded in deploying BackgrounDRb onto our
production machines, where we’re using itto perform cache expiration on
our Rails generated pages. [We’re using v1.0.1 code at the moment, but
plan to upgrade to 1.0.3 in the next week or two.] We use an event driven model
for expiration, which is triggered by observers in our Rails application.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'>However, we’re concerned about robustness, and would
like to set up some monitoring tools. In particular, we’d like to keep
tabs on things like:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'><o:p> </o:p></span></font></p>
<ul style='margin-top:0in' type=disc>
<li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=2 face=Georgia><span
style='font-size:10.0pt;font-family:Georgia'>total number of threads
allocated<o:p></o:p></span></font></li>
<li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=2 face=Georgia><span
style='font-size:10.0pt;font-family:Georgia'>number of active worker
threads<o:p></o:p></span></font></li>
<li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=2 face=Georgia><span
style='font-size:10.0pt;font-family:Georgia'>duration of currently active
threads (to help identify hung ones)<o:p></o:p></span></font></li>
</ul>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'>Are there any good examples of monitor workers that do
this now? What sort of statistics API’s are available? I didn’t see
anything obvious in the RDoc for this.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'>George<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Georgia><span style='font-size:10.0pt;
font-family:Georgia'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><img width=228 height=60 id="_x0000_i1025"
src="cid:image001.jpg@01C86FB4.81631590" align=baseline border=0><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>George Feil | Senior Software Engineer</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>office 415.295.8524 | fax 415.295.8580</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>www.realgirlsmedia.com</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>www.divinecaroline.com</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>