<div dir="ltr">Thank you so much. I will try it; but it seems that this option affects the whole database. I want something fine grained that can be applied to specific tables. Or other solutions. It seems that Kmailio's session management in a shared database mode (in a Kamailio cluster) is not good enough for high performance clusters. Are there other ways to share session information in Kamailio clusters so we can know where a user is registered?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 25, 2016 at 12:19 PM, Phil Lavin <span dir="ltr"><<a href="mailto:phil.lavin@cloudcall.com" target="_blank">phil.lavin@cloudcall.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Setting it to 0 will give you significantly enhanced performance. It will only write data to disk every second.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> sr-users [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@<wbr>lists.sip-router.org</a>]
<b>On Behalf Of </b>Gholamreza Sabery<br>
<b>Sent:</b> 25 September 2016 09:16</span></p><div><div class="h5"><br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><wbr>><br>
<b>Subject:</b> Re: [SR-Users] Location Table In db_mode 3<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thank you very much for your responses. My innodb_buffer_pool_size = 16GB and data files are about 92 MB and
</span><u></u><u></u></p>
<p><code><span style="font-size:10.0pt">innodb_flush_log_at_trx_commit</span></code><span style="font-family:"Arial",sans-serif"><wbr>= 1</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Sun, Sep 25, 2016 at 12:07 AM, Sergey Okhapkin <<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">I'd avoid slow innodb engine for "temporary" frequently changing tables like<br>
location. Use MyISAM engine instead for the table.<br>
<br>
On Saturday 24 September 2016 19:37:22 Phil Lavin wrote:<br>
> Did you have a look at<br>
> innodb_flush_log_at_trx_<wbr>commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" target="_blank">http://dev.mysql.com/<wbr>doc/refman/5.7/en/innod</a><br>
> b-parameters.html#sysvar_<wbr>innodb_flush_log_at_trx_<wbr>commit>?<br>
<br>
> Also, what value do you have for MySQL parameter innodb_buffer_pool_size and<br>
> how large is your MySQL data directory at peak?<br>
<br>
><br>
><br>
> From: sr-users [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@<wbr>lists.sip-router.org</a>] On Behalf Of<br>
> Gholamreza Sabery<br>
 Sent: 24 September 2016 20:25<br>
> To: Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><wbr>><br>
> Subject: Re: [SR-Users] Location Table In db_mode 3<br>
><br>
> Thank you so much for your response. Well if putting the table into memory<br>
> is not a good option what is the best way to handle this situation?<br>
<br>
> On Sat, Sep 24, 2016 at 10:50 PM, Phil Lavin<br>
> <<a href="mailto:phil.lavin@cloudcall.com" target="_blank">phil.lavin@cloudcall.com</a><<wbr>mailto:<a href="mailto:phil.lavin@cloudcall.com" target="_blank">phil.lavin@cloudcall.<wbr>com</a>>> wrote:<br>
 You<br>
> could look at tweaking MySQL setting<br>
> innodb_flush_log_at_trx_<wbr>commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" target="_blank">http://dev.mysql.com/<wbr>doc/refman/5.7/en/innod</a><br>
> b-parameters.html#sysvar_<wbr>innodb_flush_log_at_trx_<wbr>commit> and setting its<br>
> value to 0. It’ll make your database not ACID compliant, but I don’t see<br>
> that as being a major issue for transient data such as that stored in the<br>
> Kamailio DB.<br>
> I’m not entirely convinced that changing it to a memory table will help as<br>
> you are presumably doing MySQL replication between your two Kamailio nodes.<br>
> Memory tables don’t replicate well.<br>
<br>
><br>
> From: sr-users<br>
> [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@<wbr>lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists" target="_blank">sr<wbr>-users-bounces@lists</a><br>
> .<a href="http://sip-router.org" target="_blank">sip-router.org</a>>] On Behalf Of Gholamreza Sabery<br>
 Sent: 24 September 2016<br>
> 20:04<br>
> To: Kamailio (SER) - Users Mailing List<br>
> <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><wbr><mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<wbr>router.org</a>>><br>
> Subject: Re: [SR-Users] Location Table In db_mode 3<br>
><br>
> On average I have about 2000 registrations per second and this configuration<br>
> does not work with this rate. Maximum number of registrations that we can<br>
> handle with db_mode 3 is 1000 per second.<br>
<br>
> On Sat, Sep 24, 2016 at 10:12 PM, Phil Lavin<br>
> <<a href="mailto:phil.lavin@cloudcall.com" target="_blank">phil.lavin@cloudcall.com</a><<wbr>mailto:<a href="mailto:phil.lavin@cloudcall.com" target="_blank">phil.lavin@cloudcall.<wbr>com</a>>> wrote:<br>
 What<br>
> rate of registrations do you have?<br>
><br>
><br>
> From: sr-users<br>
> [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@<wbr>lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists" target="_blank">sr<wbr>-users-bounces@lists</a><br>
> .<a href="http://sip-router.org" target="_blank">sip-router.org</a>>] On Behalf Of Gholamreza Sabery<br>
 Sent: 24 September 2016<br>
> 19:39<br>
> To: Kamailio (SER) - Users Mailing List<br>
> <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><wbr><mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<wbr>router.org</a>>><br>
> Subject: [SR-Users] Location Table In db_mode 3<br>
><br>
> I have multiple Kamailio servers in an Active/Active scenario (the database<br>
> is a MySQL server) using db_mode 3. But when the number of clients goes up<br>
> writes on the location table become too much and it causes database<br>
> problems. I even put my location table on a separate SSD disk on the server<br>
> to separate it's IO but still at times I have problems. How can I move<br>
> location table into memory? Is this a good solution? What other options do<br>
> I have?<br>
<br>
> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><<wbr>mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<wbr>router.org</a>><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><<wbr>mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<wbr>router.org</a>><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
<br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>