<div dir="ltr"><span style="font-size:11pt;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><br><p><span style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif"><code class="gmail-literal">innodb_flush_log_at_trx_commit</code>= 1</span></span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 25, 2016 at 12:07 AM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd avoid slow innodb engine for "temporary" frequently changing tables like<br>
location. Use MyISAM engine instead for the table.<br>
<span class=""><br>
On Saturday 24 September 2016 19:37:22 Phil Lavin wrote:<br>
> Did you have a look at<br>
</span>> innodb_flush_log_at_trx_<wbr>commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" rel="noreferrer" 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>
<span class=""><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@<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">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>
</span><span class="">> <<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.com</a><<wbr>mailto:<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.<wbr>com</a>>> wrote:<br>
 You<br>
> could look at tweaking MySQL setting<br>
</span>> innodb_flush_log_at_trx_<wbr>commit<<a href="http://dev.mysql.com/doc/refman/5.7/en/innod" rel="noreferrer" 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>
<span class="">> 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>
</span>> [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@<wbr>lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists">sr<wbr>-users-bounces@lists</a><br>
> .<a href="http://sip-router.org" rel="noreferrer" target="_blank">sip-router.org</a>>] On Behalf Of Gholamreza Sabery<br>
<span class=""> Sent: 24 September 2016<br>
> 20:04<br>
> To: Kamailio (SER) - Users Mailing List<br>
</span>> <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><wbr><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>>><br>
<span class="">> 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>
</span><span class="">> <<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.com</a><<wbr>mailto:<a href="mailto:phil.lavin@cloudcall.com">phil.lavin@cloudcall.<wbr>com</a>>> wrote:<br>
 What<br>
> rate of registrations do you have?<br>
><br>
><br>
> From: sr-users<br>
</span>> [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@<wbr>lists.sip-router.org</a><mailto:<a href="mailto:sr-users-bounces@lists">sr<wbr>-users-bounces@lists</a><br>
> .<a href="http://sip-router.org" rel="noreferrer" target="_blank">sip-router.org</a>>] On Behalf Of Gholamreza Sabery<br>
<span class=""> Sent: 24 September 2016<br>
> 19:39<br>
> To: Kamailio (SER) - Users Mailing List<br>
</span>> <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><wbr><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>>><br>
<span class="">> 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>
</span>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><<wbr>mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>><br>
<span class="">> <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>
><br>
> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><<wbr>mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-<wbr>router.org</a>><br>
<div class="HOEnZb"><div class="h5">> <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>
<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">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>
</div></div></blockquote></div><br></div>