As a follow up to this, when I tried to set the limit for the FEEDBACK 
algorithm to 0 for testing, I received this error:

invalid limit for FEEDBACK algorithm (must be between 0 and 100)

Per the documentation this algorithm should be tracking CPU Load, but the range 
being 0 to 100 makes me wonder if it is actually reporting a percentage, 
similar to the load statistics exported by OpenSIPS core [1].

Can anyone using this module clarify what unit the limit for this algorithm is 
expected to be in? The ambiguity is one of the reasons I had wanted to track 
the values being obtained for a time before actually engaging limited, which is 
what prompted my original question.

[1] - https://www.opensips.org/Documentation/Interface-CoreStatistics-2-4#toc14

Ben Newlin

From: Users <[email protected]> on behalf of Ben Newlin 
<[email protected]>
Reply-To: OpenSIPS users mailling list <[email protected]>
Date: Thursday, November 14, 2019 at 3:45 PM
To: OpenSIPS users mailling list <[email protected]>
Subject: [OpenSIPS-Users] Rate Limit Module Implementation

Hello,

We are looking to implement some rate limiting using the module, but I have a 
few questions and wanted to see if anyone has run into the same issues or has 
working experience with the module to answer them.

The module provides $rl_count and also a counter value in the output of the 
rl_list command, but both of these values only reflect the number of rl_check 
calls that were made in the time window. In the case of TAILDROP, RED, and SBT 
algorithms, the count is directly related to the limit and drop_rate. But for 
the NETWORK and FEEDBACK algorithms, the counter is essentially meaningless.

What we are looking for is a way to track the values these modules are using to 
make drop decisions, so that we can set our limit value appropriately. But 
unless I am missing something, there is no way to access these values for 
either NETWORK or FEEDBACK. Is that correct?

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

Reply via email to