<div dir="ltr">Funnily enough, I was just thinking the same this morning.<div><br></div><div>I run two boxes, and my idea was the use a sys call to grab the loadav, multiply that by 1000 and then use that as the delay before answering.</div><div><br></div><div>In other words, if box 1 had a loadav of 0.2 and box two have a loadav of 0.5, box 1 would answer first because the answer delay would be 5 seconds.</div><div><br></div><div>I'm guessing WAIT(ms) would be the thing to use for the delay (not tried it yet but if someone can confirm I'm on the right lines then I'll give it a go!)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 September 2016 at 10:29, Nitesh Bansal <span dir="ltr"><<a href="mailto:nitesh.bansal@gmail.com" target="_blank">nitesh.bansal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br><br></div><div>I'm trying to understand if I could use a system metric like load average, cpu usage... to<br></div><div>decide if Asterisk is overloaded and if it is overloaded, I would like to stop routing the traffic<br></div><div>to that box.<br><br></div><div>Is there any recommended system metric which you guys use to measure the Asterisk load, <br></div><div>or may be is there any metric within Asterisk which could indicate that system is slowing down?<br><br></div><div>Thanks,<br></div><div>Nitesh<br></div><div><br></div></div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016<br>
      <a href="http://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">http://www.asterisk.org/<wbr>community/astricon-user-<wbr>conference</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br></div>