<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't know if there are any API's, but you could create a monitoring/stats worker that exposes whatever data you can gather. &nbsp;If you write one, please consider submitting it for inclusion in the project.<div><br class="webkit-block-placeholder"></div><div>Alex</div><div><br><div><div>On Feb 15, 2008, at 9:24 AM, George Feil wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="EN-US" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; 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></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; 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></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; "><o:p>&nbsp;</o:p></span></font></div><ul type="disc" style="margin-top: 0in; margin-bottom: 0in; "><li class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; ">total number of threads allocated<o:p></o:p></span></font></li><li class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; ">number of active worker threads<o:p></o:p></span></font></li><li class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; ">duration of currently active threads (to help identify hung ones)<o:p></o:p></span></font></li></ul><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; 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></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; ">Thanks,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; ">George<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Georgia"><span style="font-size: 10pt; font-family: Georgia; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><span>&lt;image001.jpg&gt;</span><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><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></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><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></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Arial"><span style="font-size: 7.5pt; font-family: Arial; "><a href="http://www.realgirlsmedia.com" style="color: blue; text-decoration: underline; ">www.realgirlsmedia.com</a></span></font><o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Arial"><span style="font-size: 7.5pt; font-family: Arial; "><a href="http://www.divinecaroline.com" style="color: blue; text-decoration: underline; ">www.divinecaroline.com</a></span></font>&lt;_______________________________________________<br>Backgroundrb-devel mailing list<br><a href="mailto:Backgroundrb-devel@rubyforge.org" style="color: blue; text-decoration: underline; ">Backgroundrb-devel@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel" style="color: blue; text-decoration: underline; ">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a></div></div></div></span></blockquote></div><br></div></body></html>