Funnily enough, I was just thinking the same this morning.

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.

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.

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!)

On 28 September 2016 at 10:29, Nitesh Bansal <[email protected]>
wrote:

> Hello,
>
> I'm trying to understand if I could use a system metric like load average,
> cpu usage... to
> decide if Asterisk is overloaded and if it is overloaded, I would like to
> stop routing the traffic
> to that box.
>
> Is there any recommended system metric which you guys use to measure the
> Asterisk load,
> or may be is there any metric within Asterisk which could indicate that
> system is slowing down?
>
> Thanks,
> Nitesh
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
>       http://www.asterisk.org/community/astricon-user-conference
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to