Good afternoon.
Trying to use the htables module to load an extensive table in memory, I can not start kamailio.
If the table contains few records (5 and 10 in my examples), this works without problems, for everything else I lose the connection to the database
"Lost connection to MySQL server during query"
I modified the timeout of mariadb but I can not work.
Someone with a similar problem or ideas on how to solve it?
Thank you
IMHO, anything more than about 100k keys really should be stored in something external to Kamailio (such as redis) to prevent exactly this issue. If you’re running redis on the same server as Kamailio and using localhost to access it, then the latency increase for accessing the data via redis as opposed to htable is almost nonexistent.
Brooks Bridges | Engineering Manager O1 Communications 4359 Town Center Boulevard, Suite 217 El Dorado Hills, California 95762 office: 916.235.2097 | main: 888.444.1111, Option 2 email: bbridges@o1.commailto:bbridges@o1.com | web: www.o1.comhttp://www.o1.com/
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Mauricio Tejeda Sent: Monday, October 22, 2018 13:31 To: sr-users@lists.kamailio.org Subject: [SR-Users] htable 1 Millon registers
Good afternoon.
Trying to use the htables module to load an extensive table in memory, I can not start kamailio.
If the table contains few records (5 and 10 in my examples), this works without problems, for everything else I lose the connection to the database
"Lost connection to MySQL server during query"
I modified the timeout of mariadb but I can not work.
Someone with a similar problem or ideas on how to solve it?
Thank you
Am Montag, 22. Oktober 2018, 22:35:17 CEST schrieb Brooks Bridges:
IMHO, anything more than about 100k keys really should be stored in something external to Kamailio (such as redis) to prevent exactly this issue. If you’re running redis on the same server as Kamailio and using localhost to access it, then the latency increase for accessing the data via redis as opposed to htable is almost nonexistent.
Hi Brooks,
this is of course also a valid option.
Some years ago I was asked to optimized the carrierroute module to properly take care of a 1 million routing tree for several users. So there are some use cases to do something like this, but probably (nowadays) not that many anymore, I agree.
Best regards,
Henning
Am Montag, 22. Oktober 2018, 22:30:44 CEST schrieb Mauricio Tejeda:
Trying to use the htables module to load an extensive table in memory, I can not start kamailio.
If the table contains few records (5 and 10 in my examples), this works without problems, for everything else I lose the connection to the database
"Lost connection to MySQL server during query"
I modified the timeout of mariadb but I can not work.
Someone with a similar problem or ideas on how to solve it?
Hello Mauricio,
do you get other errors in the log file during the data load? Do you increased the shared memory of the server to have space for the data?
Best regards,
Henning