[Spce-user] Speeding up rate-o-mate

Andreas Granig agranig at sipwise.com
Tue Apr 19 14:36:59 EDT 2016


Hi,

While there are more than 5 unrated records in the cdr table, rate-o-mat
runs in a tight loop, so changing the value doesn't affect its behavior
at all. The loop interval really only matters once it has caught up with
all unrated records and only a few calls are dropping in.

Andreas

On 04/19/2016 07:04 PM, Raúl Alexis Betancor Santana wrote:
> On our systems, it runs exactly each 10sec, as we have not changed the
> default value.
> 
> ------------------------------------------------------------------------
> 
>     *De: *"Marco Teixeira" <admin at marcoteixeira.com>
>     *Para: *"Raúl Alexis Betancor Santana" <rabs at dimension-virtual.com>
>     *CC: *spce-user at lists.sipwise.com
>     *Enviados: *Martes, 19 de Abril 2016 18:10:11
>     *Asunto: *Re: [Spce-user] Speeding up rate-o-mate
> 
>     Raul,
>     See comments inline.
> 
>     On Mon, Apr 18, 2016 at 7:09 PM, Raúl Alexis Betancor Santana
>     <rabs at dimension-virtual.com <mailto:rabs at dimension-virtual.com>> wrote:
> 
>         That perl line says 'set loop_interval as the value of ENV var
>         RATEOMAT_LOOP_INTERVAL or 10 secs'
> 
>     ​Thank you.​
>      
> 
> 
>         But a 'route without rate' it's not a problem of decreasing the
>         rating interval, it means you don't have rate's for that routes.
> 
>     ​I know. I already added the rate. I just need to catch up.​
>      
> 
> 
>         Also, you don't need to restart the full server, if you whant,
>         you could just restart rate-o-mat
> 
>     ​It should be like that, but for some obscure reason, the that env.
>     variable is correctly set in /etc/default/ngcp-rate-o-mate to 2
>     secs, but script still does not run every 2 secs... and today i'm
>     taking a fresh look at it, and it is running every 30 secs... it
>     never was running every 10 secs... and that's even more curious.
> 
>     Can you check your "tail -f /var/log/ngcp/rate-o-mat.log" and check
>     if it runs every 10 secs, or every 30 secs ?
> 
>     Thank you
> 
> 
>         ------------------------------------------------------------------------
> 
>             *De: *"Marco Teixeira" <admin at marcoteixeira.com
>             <mailto:admin at marcoteixeira.com>>
>             *Para: *"Raúl Alexis Betancor Santana"
>             <rabs at dimension-virtual.com <mailto:rabs at dimension-virtual.com>>
>             *CC: *spce-user at lists.sipwise.com
>             <mailto:spce-user at lists.sipwise.com>
>             *Enviados: *Lunes, 18 de Abril 2016 18:38:27
>             *Asunto: *Re: [Spce-user] Speeding up rate-o-mate
> 
>             Hi Raúl,
> 
>             Yeap, i know... But what must be, must be... and now i need
>             to sacrifice call performance to bring rating up to date, as
>             it was stucked for a few days in a "route without rate"...
>             I can't reboot the server, and a simple restart of the
>             service, does not seem to work.
> 
>             Why ?
> 
>             I don't know perl... Is this line
>                my $loop_interval = $ENV{RATEOMAT_LOOP_INTERVAL} ? int
>             $ENV{RATEOMAT_LOOP_INTERVAL} : 10;
>             setting a "no less then" 10 seconds ?
> 
>             Regards
> 
> 
> 
>             On Mon, Apr 18, 2016 at 5:43 PM, Raúl Alexis Betancor
>             Santana <rabs at dimension-virtual.com
>             <mailto:rabs at dimension-virtual.com>> wrote:
> 
>                 It's not a good idea to lower that value, that will
>                 increase your server load.
> 
>                 If it's beause you whant to 'lock' subscribers that have
>                 reached their limits, better to work with the prepaid
>                 engine.
> 
>                 ------------------------------------------------------------------------
> 
>                     *De: *"Marco Teixeira" <admin at marcoteixeira.com
>                     <mailto:admin at marcoteixeira.com>>
>                     *Para: *spce-user at lists.sipwise.com
>                     <mailto:spce-user at lists.sipwise.com>
>                     *Enviados: *Lunes, 18 de Abril 2016 17:15:49
>                     *Asunto: *[Spce-user] Speeding up rate-o-mate
> 
>                     Hi,
> 
>                     Changed rateomate loop settings in config, from 10
>                     to 2 sec.
>                     Ngcp-cfg apply, detected and regenerated the configs
>                     but still rating in 10 sec interval.
>                     How can i speed it up?
> 
>                     Thkx
> 
> 
>                     _______________________________________________
>                     Spce-user mailing list
>                     Spce-user at lists.sipwise.com
>                     <mailto:Spce-user at lists.sipwise.com>
>                     https://lists.sipwise.com/listinfo/spce-user
> 
> 
>                 _______________________________________________
>                 Spce-user mailing list
>                 Spce-user at lists.sipwise.com
>                 <mailto:Spce-user at lists.sipwise.com>
>                 https://lists.sipwise.com/listinfo/spce-user
> 
> 
> 
>         _______________________________________________
>         Spce-user mailing list
>         Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>         https://lists.sipwise.com/listinfo/spce-user
> 
> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
> 



More information about the Spce-user mailing list