System Metrics To See If Asterisk Is Getting Overloaded
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
One thought on - System Metrics To See If Asterisk Is Getting Overloaded
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!)