<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Setting it to 0 will give you significantly enhanced performance. It will only write data to disk every second.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> sr-users [mailto:sr-users-bounces@lists.sip-router.org]
<b>On Behalf Of </b>Gholamreza Sabery<br>
<b>Sent:</b> 25 September 2016 09:16<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org><br>
<b>Subject:</b> Re: [SR-Users] Location Table In db_mode 3<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></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><o:p></o:p></p>
<p><code><span style="font-size:10.0pt">innodb_flush_log_at_trx_commit</span></code><span style="font-family:"Arial",sans-serif">= 1</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></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_commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" target="_blank">http://dev.mysql.com/doc/refman/5.7/en/innod</a><br>
> b-parameters.html#sysvar_innodb_flush_log_at_trx_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">sr-users-bounces@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">sr-users@lists.sip-router.org</a>><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">phil.lavin@cloudcall.com</a><mailto:<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.com</a>>> wrote:<br>
 You<br>
> could look at tweaking MySQL setting<br>
> innodb_flush_log_at_trx_commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" target="_blank">http://dev.mysql.com/doc/refman/5.7/en/innod</a><br>
> b-parameters.html#sysvar_innodb_flush_log_at_trx_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">sr-users-bounces@lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists">sr-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">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-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">phil.lavin@cloudcall.com</a><mailto:<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.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">sr-users-bounces@lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists">sr-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">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-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>
> _______________________________________________<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><mailto:<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" target="_blank">
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
> _______________________________________________<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><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><o:p></o:p></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/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<br>
<br>
_______________________________________________<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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>