<div dir="ltr">Thanks for your response.<br><br>We realized that with 200 children the problem is still happing.<br><br>We are using db ( MySQL 5 ) in every request in the config file through the following modules:<br><br>
&nbsp;&nbsp;&nbsp; - lcr: to check every request where come from<br><br>&nbsp;&nbsp;&nbsp; - dispatcher: to make load balancing with a pool of asterisk in cluster<br><br>&nbsp;&nbsp;&nbsp; - avpsops: to use some user preferences<br><br>&nbsp;&nbsp;&nbsp; - carrieroute: to balance outbound calls to several providers<br>
<br>Is this a high load of db transactions to the openser?<br><br>Regards<br><br><br><div class="gmail_quote">2008/9/3 Ovidiu Sas <span dir="ltr">&lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Increasing the number of children to 200 will not help.<br>
Most likely, your config is doing something &#39;wrong&#39; or being terribly<br>
intensive on mysql db.<br>
Openser is very light and it can handle lot&#39;s of transaction, but if<br>
you are using a slow db and you are doing db queries during your<br>
transaction processing, then your server will be slow.<br>
<br>
Check your config and see what&#39;s going &#39;wrong&#39; there.<br>
<br>
As a reference, openser is able to do 150 cps using a single child and<br>
the CPU is barely utilized (on a slow machine).<br>
<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Sep 3, 2008 at 10:31 AM, Samael - &lt;<a href="mailto:samael.zgz@gmail.com">samael.zgz@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; We are deploying OpenSER in a large infrastructure together with Asterisk to<br>
&gt; support thousands of current transactions.<br>
&gt;<br>
&gt; We are using udp listener and mysql module in openser.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; We had to increase the children parameter of the openser.cfg to 200 because<br>
&gt; Openser couldn&#39;t handle the high amount of concurrent SIP REQUESTs from<br>
&gt; ASTERISK (Not only INVITES, but also a lot of SIP OPTIONs), that means that<br>
&gt; Openser couldn&#39;t handle more than &#39;children&#39; REQUEST loosing the rest of the<br>
&gt; concurrent REQUEST.<br>
&gt;<br>
&gt; children=200<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; But then, the following error appeared in the openser:<br>
&gt;<br>
&gt; ERROR:mysql:db_mysql_new_connection: driver error: Too many connections<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This is because the Standard parameter of mysql &quot;max_connections&quot; is set to<br>
&gt; 100.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; In mysql CLI, we can see that every child process of openser has a mysql<br>
&gt; connection. (see in Mysql&gt; SHOW PROCESSLIST)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The recommended max_connections parameter is 500-1000 =&gt; we have a limit of<br>
&gt; 500-1000 concurrent SIP REQUEST to be processed by the openser.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Why there is a process for every child?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Why is neccesary a mysql connection for every child?<br>
&gt;<br>
&gt; Can the openser have a pool of mysql connection to be used by thousands of<br>
&gt; children?<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt; <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>