Many thanks. It sounds like using an outside health check to modify the nodefile is probably the way to go.<br>I found the code that sets the NODEFILE_RELOAD_FREQ to 3 in <a href="http://Pool.pm">Pool.pm</a> so I guess that means it checks for updates every three seconds as long as I don&#39;t add/remove nodes through the management service.
<br><br>Thanks!<br>-Jake<br><br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">dormando</b> &lt;<a href="mailto:dormando@rydia.net">dormando@rydia.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&gt; I don&#39;t know of a way to do this through normal configuration or<br>&gt; plugins, but you could check out BackendHTTP.pm, the functions<br>&gt; event_write and event_read_waiting_options are the ones that currently
<br>&gt; deal with the OPTIONS check.&nbsp;&nbsp;You could modify it hit a specific URI<br>&gt; with a GET, instead... and then check for some magical &quot;We&#39;re all good&quot;<br>&gt; in the headers, I guess.&nbsp;&nbsp;Keep in mind that the OPTIONS check is
<br>&gt; currently when you first get a request (afaik), and it&#39;s assumed to be<br>&gt; very fast.&nbsp;&nbsp;If your DB check takes a while it could block the first<br>&gt; unlucky user&#39;s request... if I&#39;m reading it correctly.&nbsp;&nbsp;Just sort of
<br>&gt; stabbing here, I&#39;m not a Perlbal pro.&nbsp;&nbsp;I&#39;m sure you&#39;re better off with<br>&gt; the next option.<br><br>OPTIONS is only ran when perlbal first connects to an individual apache<br>process, so it&#39;s not used for the client side service. For each
<br>keepalive request it&#39;ll just blind forward. It&#39;s better to have a health<br>check service for the (often rarer) case of the code on an individual<br>machine exploding.<br><br>&gt; Sure, your app (daemon or cron, whatever) could check your server for
<br>&gt; connectivity then either ADD/REMOVE servers from a POOL via the telnet<br>&gt; management port, or change a nodelist file (which Perlbal will<br>&gt; eventually re-read).<br><br>Yup :) It&#39;ll reload the nodelist pretty fast, even! As a caveat (this at
<br>least _used_ to be true), once you modify a pool with ADD/REMOVE, it<br>won&#39;t check the nodelist anymore.<br><br>-Dormando<br></blockquote></div><br>