Hi, Ben!

The rl_list[1] command does show both the CPS of the previous second and the threshold. So indeed, if you are looking for an average CPS within the last minute for example, that is not possible - all you can get is the current second CPS (calls that were received during the previous second).

[1] https://opensips.org/html/docs/modules/3.0.x/ratelimit.html#mi_rl_list

Best regards,
Răzvan

On 10/21/19 10:59 PM, Ben Newlin wrote:
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" 
<[email protected] on behalf of [email protected]> 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 <[email protected]> on behalf of Mehdi
     > Shirazi <[email protected]>
     > *Reply-To: *OpenSIPS users mailling list <[email protected]>
     > *Date: *Monday, September 30, 2019 at 12:56 AM
     > *To: *OpenSIPS users mailling list <[email protected]>
     > *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
     > [email protected]
     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
     >
--
     Răzvan Crainea
     OpenSIPS Core Developer
        http://www.opensips-solutions.com
_______________________________________________
     Users mailing list
     [email protected]
     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Răzvan Crainea
OpenSIPS Core Developer
  http://www.opensips-solutions.com

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to