[SR-Users] db_cluster configuration

Juan José Ivars juanjo at beeztel.com
Wed Dec 5 17:17:36 CET 2012


Hello, i am configuring db_cluster module in kamailio 3.3
I have configured in roun-robin read between two MySQL servers but the load
is not distributed equally
My configuration is that:
modparam("db_cluster", "connection", "con1=>mysql://USER1:PASS1@1.1.1.1/DB")
modparam("db_cluster", "connection", "con2=>mysql://USER2:PASS2@2.2.2.2/DB")
modparam("db_cluster", "cluster", "cls1=>con1=9r9p;con2=9r9p")
And the auth module with:
modparam("auth_db", "db_url", "cluster://cls1")

But i have enabled the mysql logs and the major part of the querys are
targeted to the second server
Is there any cache by peer?
What am i doing wrong?


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121205/b0dfc745/attachment-0001.htm>


More information about the sr-users mailing list