[OpenSIPS-Users] usrloc disable timer

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Sep 2 10:07:26 CEST 2014


Hi,

In DB mode 2, DB only replication is not enough as the mem cache on 
backup machine will never be updated with the registrations. So you end 
up with a discrepancy (on backup) between what opensips has in memory 
and what you have in DB (in terms of registered contacts).
You definitely need a data level replication too (to update the usrloc 
cache on the backup too).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 01.09.2014 18:16, Schneur Rosenberg wrote:
> Its replicated at the DB level, using Mysql replication
>
>
> On Mon, Sep 1, 2014 at 3:09 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     Hi,
>
>     How do you get the registrations "replicated" on the backup server
>     ? (the in memory data)
>
>     Take a look at the "m" flag for "save()" function:
>     http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294034
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 27.08.2014 20:14, Schneur Rosenberg wrote:
>>     Hi
>>
>>     I'm using usrloc with db_mode set to 2, I'm using a backup server
>>     which is always running and is using the same database, my
>>     problem is that the second server constantly removes records from
>>     the location table, is it possible to  disable the expired
>>     contacts timer? would setting timer_interval to 0 disable the
>>     timer? I can write a cron that would delete expired contacts. is
>>     there any downside to this? does the timer do anything else? the
>>     documentation says "The timer deletes all expired contacts and
>>     flushes all modified or new contacts to database" I'm not exactly
>>     what they mean by flushing the modified or new contacts.
>>
>>     Both servers have exact same system time so that's not the issue.
>>
>>     If there is a better way please let me know.
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org  <mailto: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/20140902/e9cc4088/attachment.htm>


More information about the Users mailing list