Re: SMS sending speed slows down when a new DB server connected

Biswajit Kumar <[email protected]> Tue, 18 Mar 2025 09:12:12 +0600
Newsgroups gmane.comp.mobile.kannel.user
Organization Bangla Phone Limited
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------udftcSYf7HskCO3rnHhX37R6
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi,

Kannel application is on Ubuntu 20.04, as it had compilation error in=20
Ubuntu 22.04.

/Thanks and Regards,/
*Biswajit Kumar* | AGM, P&D
Bangla Phone Ltd. <http://www.banglaphone.net.bd/> | +8801833103909=20
<tel:+8801833103909>
On 3/18/2025 4:24 AM, Mesbahuddin Malik wrote:
> How did Compile Kannel on Ubuntu 22.04 with which gcc version ?
>
> Regards
> Mesbah
> +8801833055942
>
> On Mon, Mar 17, 2025 at 11:12=E2=80=AFAM Biswajit Kumar=20
> <[email protected]> wrote:
>
>     Dear fellow users,
>
>     I am having a peculiar problem trying to replace the MySQL
>     database server which works on my Kannel application server.
>
>     I have Kannel application in separate VM, and MySQL database in
>     another. So far I understood and have been working with Kannel is
>     that my Kannel has SQLBox installed, which picks SMS from
>     kannelDb.send_sms table and stores in local redis, then sends to
>     SMPP smsc and writes to kannelDb.sent_sms table of the MySQL server=
.
>
>     My Kannel application information is as below:
>
>     Kannel bearerbox version `1.4.5'. Build `Jan 10 2024 17:30:02',
>     compiler `9.4.0'. System Linux, release 5.4.0-170-generic, version
>     #188-Ubuntu SMP Wed Jan 10 09:51:01 UTC 2024, machine x86_64.
>     Hostname localhost, IP 127.0.0.1. Libxml version 2.9.10. Using
>     OpenSSL 1.1.1f 31 Mar 2020. Compiled with MySQL 5.7.42, using
>     MySQL 5.7.42. Using hiredis API 1.2.0 Using native malloc.
>
>     Kannel application server is installed on a Ubuntu 20.04.6 LTS.
>     And my running MySQL server is running on a Ubuntu 22.04.3 LTS,
>     MySQL version 8.0.36 (VM1). Now, when the application is running
>     with this DB server, the performance is smooth. The throughput of
>     my SMPP SMSC are 100 each in 4 separate SMSC, so I see that
>     kannelDb.send_sms table clears up almost instantly. But, I have a
>     problem with the running DB server VM physical host machine; and
>     for this, I need to shift the DB server in another VM. I have
>     tried with two separate VMs: one with Ubuntu 22.04.3 LTS with
>     MySQL 8.0.36 (VM2) and another with Ubuntu 22.04.3 with MySQL
>     8.0.41 (VM3). But strangely whenever I try to run Kannel with VM2
>     or VM3, the performance gets really low. Entries of
>     kannelDb.send_sms does not get cleared as fast as it does with
>     VM1; instead, I get only around 10 TPS in sending SMS.
>
>     Can anyone please suggest what can be the issue? I have the same
>     configuration for MySQL in all the three database server VMs. And
>     I use the working IP address of VM1 whenever I try with either VM2
>     or VM3. But cannot find out the reason for the problem. Please help=
.
>
>     Please let me know if you need any further information.
>
>     --=20
>     /Thanks and Regards,/
>     *Biswajit Kumar* | AGM, P&D
>     Bangla Phone Ltd. <http://www.banglaphone.net.bd/> |
>     +8801833103909 <tel:+8801833103909>
>
--------------udftcSYf7HskCO3rnHhX37R6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <p><font face=3D"Helvetica, Arial, sans-serif">Hi,</font></p>
    <p><font face=3D"Helvetica, Arial, sans-serif">Kannel application is
        on Ubuntu 20.04, as it had compilation error in Ubuntu 22.04.<br>
      </font></p>
    <div class=3D"moz-signature"><span
        style=3D"font-family: 'Book Antiqua';"><em>Thanks and Regards,</e=
m>
      </span><br>
      <strong><span style=3D"font-family: 'Trebuchet MS';"> Biswajit Kuma=
r</span></strong>
      | <span style=3D"font-family: 'Book Antiqua';">AGM, P&amp;D <a
          href=3D"http://www.banglaphone.net.bd/" target=3D"_blank"
          rel=3D"noopener"><br>
          <span style=3D"color: #ff0000;">Bangla</span> <span
            style=3D"color:
      #00ff00;">Phone</span> <span style=3D"color: #0000ff;">Ltd.</span><=
/a>
        | <span style=3D"color: #000000;"><a href=3D"tel:+8801833103909"
            target=3D"_blank" rel=3D"noopener"><span style=3D"color: #000=
000;">+8801833103909</span></a></span></span></div>
    <div class=3D"moz-cite-prefix">On 3/18/2025 4:24 AM, Mesbahuddin Mali=
k
      wrote:<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:[email protected]=
ail.com">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DU=
TF-8">
      <div dir=3D"ltr">How did Compile Kannel on Ubuntu 22.04 with which
        gcc version ?
        <div><br>
        </div>
        <div>Regards</div>
        <div>Mesbah</div>
        <div>+8801833055942<br>
        </div>
      </div>
      <br>
      <div class=3D"gmail_quote gmail_quote_container">
        <div dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 17, 2025 at
          11:12=E2=80=AFAM Biswajit Kumar &lt;<a
            href=3D"mailto:[email protected]"
            moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">bisw=
[email protected]</a>&gt;
          wrote:<br>
        </div>
        <blockquote class=3D"gmail_quote"
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">
          <div>
            <p><font face=3D"Helvetica, Arial, sans-serif">Dear fellow
                users,</font></p>
            <p><font face=3D"Helvetica, Arial, sans-serif">I am having a
                peculiar problem trying to replace the MySQL database
                server which works on my Kannel application server.</font=
></p>
            <p><font face=3D"Helvetica, Arial, sans-serif">I have Kannel
                application in separate VM, and MySQL database in
                another. So far I understood and have been working with
                Kannel is that my Kannel has SQLBox installed, which
                picks SMS from kannelDb.send_sms table and stores in
                local redis, then sends to SMPP smsc and writes to
                kannelDb.sent_sms table of the MySQL server. <br>
              </font></p>
            <p><font face=3D"Helvetica, Arial, sans-serif">My Kannel
                application information is as below: <br>
                <br>
              </font><span
style=3D"color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-si=
ze:medium;font-style:normal;font-variant-ligatures:normal;font-variant-ca=
ps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-ind=
ent:0px;text-transform:none;word-spacing:0px;white-space:normal;text-deco=
ration-style:initial;text-decoration-color:initial;float:none;display:inl=
ine">Kannel
                bearerbox version `1.4.5'. Build `Jan 10 2024 17:30:02',
                compiler `9.4.0'. System Linux, release
                5.4.0-170-generic, version #188-Ubuntu SMP Wed Jan 10
                09:51:01 UTC 2024, machine x86_64. Hostname localhost,
                IP 127.0.0.1. Libxml version 2.9.10. Using OpenSSL
                1.1.1f 31 Mar 2020. Compiled with MySQL 5.7.42, using
                MySQL 5.7.42. Using hiredis API 1.2.0 Using native
                malloc.</span></p>
            <p><font face=3D"Helvetica, Arial, sans-serif"><span
style=3D"color:rgb(0,0,0);font-size:medium;font-style:normal;font-variant=
-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing=
:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing=
:0px;white-space:normal;text-decoration-style:initial;text-decoration-col=
or:initial;float:none;display:inline">Kannel
                  application server is installed on a Ubuntu 20.04.6
                  LTS. And my running MySQL server is running on a
                  Ubuntu 22.04.3 LTS, MySQL version 8.0.36 (VM1). Now,
                  when the application is running with this DB server,
                  the performance is smooth. The throughput of my SMPP
                  SMSC are 100 each in 4 separate SMSC, so I see that
                  kannelDb.send_sms table clears up almost instantly.
                  But, I have a problem with the running DB server VM
                  physical host machine; and for this, I need to shift
                  the DB server in another VM. I have tried with two
                  separate VMs: one with Ubuntu 22.04.3 LTS with MySQL
                  8.0.36 (VM2) and another with Ubuntu 22.04.3 with
                  MySQL 8.0.41 (VM3). But strangely whenever I try to
                  run Kannel with VM2 or VM3, the performance gets
                  really low. Entries of kannelDb.send_sms does not get
                  cleared as fast as it does with VM1; instead, I get
                  only around 10 TPS in sending SMS.</span></font></p>
            <p><font face=3D"Helvetica, Arial, sans-serif"><span
style=3D"color:rgb(0,0,0);font-size:medium;font-style:normal;font-variant=
-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing=
:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing=
:0px;white-space:normal;text-decoration-style:initial;text-decoration-col=
or:initial;float:none;display:inline">Can
                  anyone please suggest what can be the issue? I have
                  the same configuration for MySQL in all the three
                  database server VMs. And I use the working IP address
                  of VM1 whenever I try with either VM2 or VM3. But
                  cannot find out the reason for the problem. Please
                  help.</span></font></p>
            <p><font face=3D"Helvetica, Arial, sans-serif"><span
style=3D"color:rgb(0,0,0);font-size:medium;font-style:normal;font-variant=
-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing=
:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing=
:0px;white-space:normal;text-decoration-style:initial;text-decoration-col=
or:initial;float:none;display:inline">Please
                  let me know if you need any further information.<br>
                </span></font></p>
            <div>-- <br>
              <span style=3D"font-family:&quot;Book Antiqua&quot;"><em>Th=
anks
                  and Regards,</em> </span><br>
              <strong><span style=3D"font-family:&quot;Trebuchet MS&quot;=
">
                  Biswajit Kumar</span></strong> | <span
                style=3D"font-family:&quot;Book Antiqua&quot;">AGM,
                P&amp;D <a href=3D"http://www.banglaphone.net.bd/"
                  rel=3D"noopener" target=3D"_blank" moz-do-not-send=3D"t=
rue"><br>
                  <span style=3D"color:rgb(255,0,0)">Bangla</span> <span
                    style=3D"color:rgb(0,255,0)">Phone</span> <span
                    style=3D"color:rgb(0,0,255)">Ltd.</span></a> | <span
                  style=3D"color:rgb(0,0,0)"><a href=3D"tel:+880183310390=
9"
                    rel=3D"noopener" target=3D"_blank"
                    moz-do-not-send=3D"true"><span
                      style=3D"color:rgb(0,0,0)">+8801833103909</span></a=
></span></span></div>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>

--------------udftcSYf7HskCO3rnHhX37R6--