Thanks for the reply Daniel.

But is that possible to use the same Presence DB with multiple Kamailio's ?
If i'll use same postgres DB with multiple Kamailio's - it'll cause DB locks and other issues ?

What is the best way to do SUBSCRIBE presence replications - maybe via SIP (to replicate every handled subscribe msg to all other presences ?)
And replication via Database must work in db_mode =3 right ? But it cause low performance due to high database usage - right ?



Thanks in advance.
Kind regards
Ewgeny



17.09.2015 18:50, Daniel-Constantin Mierla пишет:
Hello,

db_text is not a database engine with a replication mechanism, it is just some basic DB API emulator using text files as storage. At runtime all the records are in memory, so no sharing between instances is possible.

If you need replication/shared db, go for the well known ones like mysql or postgres.

Cheers,
Daniel

On 15/09/15 21:51, Ewgeny wrote:
Hi list!

We use Kamailio 4.2 for presence BLF with DB_TEXT.
And i want to make cluster with a few Kamailio's presences, to load balance.

Can you please tell me - is that possible to use same shared DB_TEXT database with 2 or more Kamailio servers ?

modparam("presence", "subs_db_mode", 3)
modparam ("presence","dburl","/tmp/share/dbtext")


1-st server will handle SUBSCRIBE's and this Subscribe's should be accessible also from 2-nd server.
Then PUBLISH'es will be sent to both servers in round robin algorithm.
Will Kamailio's work with one shared DB or - i'll got some errors ?
Maybe i'm wrong somewhere ?






Thanks in advance.
Kind regards
Ewgeny


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users