Re: [SR-Users] database connections per child process

2018-11-22 Thread Karthik Srinivasan
Thank you, Daniel and Mojtaba, for your responses. This was more of a curiosity factor for me as i was trying to nail down what governed the database connection count behavior. The answers you have provided me are more than adequate. No need to further debug this item; I appreciate the prompt

Re: [SR-Users] database connections per child process

2018-11-22 Thread Daniel-Constantin Mierla
Hello, in general, kamailio modules reuse the connection if the target is the same database server and database name. That makes it like one connection to database server per kamailio process. However, there are some modules that may request a dedicated database connection, not willing to reuse

Re: [SR-Users] database connections per child process

2018-11-22 Thread Mojtaba
Actually No. Actually the connection to database is done in fork process. So if you have two fork process with one sqlcon param, You'll have two TCP connection. If you add one another sqlcon param in modparam, you will have four tcp connection. at finally you will have:

[SR-Users] database connections per child process

2018-11-21 Thread Karthik Srinivasan
Hello, Is there a formula/algorithm that determines how many TCP connections are made per child process to a database server defined by sqlops' sqlcon parameter? ex: if i have 1 database on a database server defined by sqlcon, and i have 1 UDP child process, i notice that the child process has