[OpenSIPS-Users] Opensips caching
Jon Abrams
ffshoh at gmail.com
Thu Jan 17 06:32:46 EST 2019
There is the sqlcacher module in 2.2+ which will cache whole or parts of
sql tables into OpenSIPs memory.
There is also the excellent drouting module which caches routing data on
startup (or command) into local memory. You could store the rate in the
attributes field of the dr_rules table with each NPANXX.
Redis and memcached modules are available too.
That said, if you don't need hundreds of CPS throughput, you can probably
get by with mysql if you make sure you have the table cached in mysql
correctly and don't have a lot of other things going on in the database.
- Jon
On Thu, Jan 17, 2019 at 1:46 AM Schneur Rosenberg <rosenberg11219 at gmail.com>
wrote:
> I believe that dynamic routing runs a SQL query every time, I don't think
> that can be cached, but if you do your own logic in opensips, you should be
> able to use cashedb_memcached
>
> On Thu, Jan 17, 2019, 9:40 AM Schneur Rosenberg <rosenberg11219 at gmail.com
> wrote:
>
>> In the script you have multiple caching options, cache_store and
>> cache_fetch from cachedb_mamcached work without external servers like
>> cachedb_mongo that requires mongodb or other nosql modules.
>>
>> On Thu, Jan 17, 2019, 9:18 AM Vishal Pai <vishalmpai at gmail.com wrote:
>>
>>> Hello everyone
>>>
>>> what is the best way to implement the caching in opensips. I am doing
>>> following
>>>
>>> we have a rate table with NPANXX with rate per minute. Every time when
>>> we do outbound calls we get NPANXX of dialed number and search it in
>>> database. Since in this way it will create a load on cpu for each select
>>> query.
>>>
>>> Can anyone help me in this also let me know if there is any caching
>>> functionality is available in opensips ?
>>>
>>>
>>> Vishal Pai
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190117/f3feb63e/attachment.html>
More information about the Users
mailing list