[asterisk-dev] [Code Review] 2888: AMI/CDR/CEL: only subscribe when enabled

Matt Jordan reviewboard at asterisk.org
Thu Sep 26 21:48:09 CDT 2013



> On Sept. 26, 2013, 10:46 p.m., Paul Belanger wrote:
> > "Not subscribing when not available buys a measurable amount of performance when running under load" is there any specific numbers you can add? Any measurement of performance impact documented will help when deploying asterisk in production.
> >

Any numbers quoted would be highly dependent on the system it was run on, and hence kind of meaningless.

(1) To do the testing we've done over the past few days, we've done a SIPp scenario that issues calls at 25 cps to a dialplan that Answers, Waits(1), and hangs up. Unless someone executed that same scenario, they'd get wildly different results. Even with that same scenario, there's no guarantee you'll get similar results.

(2) Even with the same dialplan, SIPp scenario, and modules, you'll still get different real numbers. 10% load on one box could be 25% on another.

The real point is: both publishing and subscriptions aren't free. This patch deals with subscriptions; Josh has been working on publishing; David and Mark have been working on routing (and a whole mess of other areas). The act of creating, publishing, routing, and processing messages has a cost, and this patch drives down part of that cost when it doesn't need to be paid. That isn't terribly surprising, and - to an extent - has always been the case even in prior versions of Asterisk. For example, running a performance test with CDRs enabled (but not in batch mode) will yield much worse performance versus a system that has them disabled or has batch mode enabled. Part of that is simply the threading issues without batch mode; part is the processing that occurs when writing CDRs.


- Matt


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2888/#review9816
-----------------------------------------------------------


On Sept. 26, 2013, 8:18 p.m., Matt Jordan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2888/
> -----------------------------------------------------------
> 
> (Updated Sept. 26, 2013, 8:18 p.m.)
> 
> 
> Review request for Asterisk Developers, David Lee, Joshua Colp, and Mark Michelson.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Subscribing to Stasis isn't free.
> 
> As such, this patch makes AMI, CDR, and CEL - the "big 3" - only subscribe when enabled. Toggling their availability via a .conf file will unsubscribe/subscribe as appropriate.
> 
> Not subscribing when not available buys a measurable amount of performance when running under load.
> 
> 
> Diffs
> -----
> 
>   /branches/12/main/cel.c 399908 
>   /branches/12/main/cdr.c 399908 
>   /branches/12/main/manager.c 399908 
> 
> Diff: https://reviewboard.asterisk.org/r/2888/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Matt Jordan
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130927/ea35c7fc/attachment-0002.html>


More information about the asterisk-dev mailing list