[OpenSIPS-Users] Opensips 3.0 load display

Ben Newlin Ben.Newlin at genesys.com
Mon Oct 21 15:59:41 EDT 2019


Razvan,

I am curious about this. I can see how you can use the ratelimit module to reject calls based on calls per second, or any configured window, but Mehdi was asking about reporting it as a statistic. I can't see any way to get the value out of the ratelimit module for use elsewhere; it only seems possible to perform a query of whether it is over some configured threshold, not get the value itself.

Ben Newlin 

On 10/1/19, 5:57 AM, "Users on behalf of Răzvan Crainea" <users-bounces at lists.opensips.org on behalf of razvan at opensips.org> wrote:

    Hi, Mehdi!
    
    If you want to measure the Calls per second, you will have to use the 
    ratelimit module[1], which is able to count the calls per second, if you 
    choose a window_size & slot_period [2] values that result in 1 second 
    window.
    
    [1] https://opensips.org/html/docs/modules/3.0.x/ratelimit.html
    [2] 
    https://opensips.org/html/docs/modules/3.0.x/ratelimit.html#param_window_size
    
    Best regards,
    Răzvan
    
    On 9/30/19 3:48 PM, Ben Newlin wrote:
    > Shortly, yes. The load statistic does not measure calls per second. Per 
    > the documentation [1], it measures the percentage of OpenSIPS processes 
    > that are actively processing messages.
    > 
    > There is no built in statistic for calls per second that I am aware of.
    > 
    > [1] 
    > https://www.opensips.org/Documentation/Interface-CoreStatistics-3-0#toc15
    > 
    > Ben Newlin
    > 
    > *From: *Users <users-bounces at lists.opensips.org> on behalf of Mehdi 
    > Shirazi <m.shirazi at gmail.com>
    > *Reply-To: *OpenSIPS users mailling list <users at lists.opensips.org>
    > *Date: *Monday, September 30, 2019 at 12:56 AM
    > *To: *OpenSIPS users mailling list <users at lists.opensips.org>
    > *Subject: *[OpenSIPS-Users] Opensips 3.0 load display
    > 
    > Hi
    > 
    > I use Opensips3.0 as simple stateless proxy.I want to see how many 
    > Invites per second was processed. I used :
    > (opensips-cli): mi get_statistics load:
    > 
    > But all results are zero.Am I doing something wrong ?
    > 
    > Regards
    > 
    > M.Shirazi
    > 
    > 
    > _______________________________________________
    > Users mailing list
    > Users at lists.opensips.org
    > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    > 
    
    -- 
    Răzvan Crainea
    OpenSIPS Core Developer
       http://www.opensips-solutions.com
    
    _______________________________________________
    Users mailing list
    Users at lists.opensips.org
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    
    



More information about the Users mailing list