<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Yury,<br>
      <br>
      OK, let me check a bit the related code, to see if I can spot
      anything bogus there.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 27-30 Sept 2022, Athens
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2022Athens/">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
    <div class="moz-cite-prefix">On 10/13/22 9:59 AM, Yury Kirsanov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD1_seuAQ4vg7kdPfTCpHnek+q46itt2b9bUQF9=JvgfRvVgmw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Bogdan,
        <div>Can't say for sure at the moment but I believe this was
          happening during the scale-down procedure. Currently that
          server is running without an autoscaler as it's a production
          one, unfortunately.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Yury.</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Oct 13, 2022 at 5:56
          PM Bogdan-Andrei Iancu <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> <font face="monospace">Hi Yury,<br>
              <br>
              OK, but could you try to see the relation between the pkg
              status and errors, like such errors appear after:<br>
                  * simple scaling up ?<br>
                  * simple scaling down ?<br>
                  * scaling up and down ?<br>
              <br>
              Thanks,<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Summit 27-30 Sept 2022, Athens
  <a href="https://www.opensips.org/events/Summit-2022Athens/" target="_blank" moz-do-not-send="true">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
            <div>On 10/12/22 1:34 AM, Yury Kirsanov wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi Bogdan,
                <div>No, after I removed all the autoscaling I'm not
                  getting any 'core:signal_pkg_status' errors.</div>
                <div><br>
                </div>
                <div>Regards,</div>
                <div>Yury.</div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Tue, Oct 11, 2022
                  at 10:56 PM Bogdan-Andrei Iancu <<a
                    href="mailto:bogdan@opensips.org" target="_blank"
                    moz-do-not-send="true">bogdan@opensips.org</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div> <font face="monospace">Hi Yury,<br>
                      <br>
                      trying to recap here - after completely removing
                      the auto-scaling, do you still have issues with
                      fetching the pkg stats?<br>
                      <br>
                      Regards,<br>
                    </font>
                    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Summit 27-30 Sept 2022, Athens
  <a href="https://www.opensips.org/events/Summit-2022Athens/" target="_blank" moz-do-not-send="true">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
                    <div>On 9/22/22 5:39 PM, Yury Kirsanov wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hi Bogdan,
                        <div>Sorry, I just realized that I haven't
                          turned off the auto-scaler for UDP processes
                          so you're right - that error is for them. I've
                          switched TCP auto-scaling off due to all my
                          previous issues that I wasn't able to
                          overcome.</div>
                        <div><br>
                        </div>
                        <div>auto_scaling_profile = PROFILE_UDP<br>
                               scale up to 32 on 80% for 4 cycles within
                          5<br>
                               scale down to 2 on 10% for 5 cycles<br>
                        </div>
                        <div><br>
                        </div>
                        <div>udp_workers=1 use_auto_scaling_profile
                          PROFILE_UDP<br>
                        </div>
                        <div><br>
                        </div>
                        <div>socket=udp:10.x.x.x:5060<br>
                        </div>
                        <div>socket=udp:103.x.x.x:7060<br>
                        </div>
                        <div><br>
                        </div>
                        <div>In regards to pkg memory - I only have 32MB
                          as -M parameter, maybe that's not enough? I'm
                          not sure how to do 'pkg dump' - never tried to
                          do that before, is this what you're asking
                          about?</div>
                        <div><br>
                        </div>
                        <div>Sep 21 18:52:09
                          ERROR:core:signal_pkg_status: failed to
                          trigger pkg stats for process 45<br>
                        </div>
                        <span style="color:rgb(80,0,80)">
                          <div> opensips-cli -x mi ps<br>
                            {<br>
                                "Processes": [<br>
                          </div>
                        </span>
                        <div>...</div>
                        <div>        {<br>
                        </div>
                        <div><span style="color:rgb(80,0,80)">         
                              "ID": 45,<br>
                                        "PID": 310115,<br>
                                        "Type": "SIP receiver
                            udp:103.x.x.x:7060"<br>
                                    }<br>
                                ]<br>
                            }<br>
                          </span>root@osgw1:~# opensips-cli -x mi
                          mem_pkg_dump 310115<br>
                          ERROR: command 'mem_pkg_dump' returned: 500:
                          Internal error<br>
                        </div>
                        <div><br>
                        </div>
                        <div>Best regards,</div>
                        <div>Yury.</div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>