<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
1. See the load (per proc) related stats [1] - they are used to
check the combined load of the procs in the same auto-scaling
group<br>
<br>
2. I would say your syslog is very slow and the overhead with
extra logging (from level 3 to 4) is triggering the up scaling.<br>
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Interface-CoreStatistics-3-2#toc13">https://www.opensips.org/Documentation/Interface-CoreStatistics-3-2#toc13</a><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 eBootcamp 2021
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div class="moz-cite-prefix">On 10/21/21 3:15 PM, Saurabh Chopra
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAmwJvFPE32f4qBxr8THG3jrYmfh_EKe1iSJD5ypoHLQ-9OTBQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>We have successfully tested the auto-scaling in opensips
after reading the blog.</div>
<div><u><a
href="https://blog.opensips.org/2019/02/25/auto-process-scaling-a-cure-for-load-and-resources-concerns/"
moz-do-not-send="true">https://blog.opensips.org/2019/02/25/auto-process-scaling-a-cure-for-load-and-resources-concerns/</a></u> <br>
</div>
<div><br>
</div>
<div>But, I am confused with two things,</div>
<div>1. How opensips calculates load to scale the processes
UP/DOWN. Is there any function that we can use to check the
load or any kind of xlog so that we can print in our config.</div>
<div>2. The config which i am running is scaling up the process
when we are adding (<b>log_level=4</b>) not for <b>log_level=3</b>.
Is it specific that we have to use log_level=<b>4</b>.<br>
</div>
<div><br>
</div>
<div><font face="monospace">version: opensips 3.1.0
(x86_64/linux)<br>
</font></div>
<div><font face="monospace">flags: STATS: On, DISABLE_NAGLE,
USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll, sigio_rt, select.<br>
svn revision: 3748:3779M<br>
main.c compiled on 06:18:30 Feb 1 2021 with gcc 5.4.0</font><br>
</div>
<div><br>
</div>
<div>Below is the basic of my configuration<br>
</div>
<div><br>
</div>
<div><b style=""><font face="monospace">log_level=4<br>
log_stderror=no<br>
log_facility=LOG_LOCAL5<br>
memlog=2<br>
disable_dns_blacklist=no<br>
<br>
auto_scaling_profile = PROFILE_SIP<br>
scale up to 6 on 40% for 4 cycles within 5<br>
scale down to 2 on 1% for 8 cycles<br>
<br>
socket=udp:20.0.xx.xxx:5507 AS 54.227.xx.xx:5507
use_auto_scaling_profile PROFILE_SIP</font></b></div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Best Regards
<div>Saurabh Chopra</div>
<div>+918861979979</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>