<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi,</tt></p>
    <p><tt>Thanks! The docs are broken, the correct formula (it's also
        how the code actually works) is:</tt><br>
      <br>
      <tt><span class="emphasis"><em>max_load = (<span class="bold"><strong>Idle-CPU</strong></span>
            / 100) * (<span class="bold"><strong>Max-Sessions</strong></span>
            - (</em></span></tt><tt><span class="emphasis"><em><tt><span
                class="emphasis"><em><span class="bold"><strong>Sessions
                    </strong>- </span></em></span></tt>profile_count))</em></span></tt></p>
    <p><tt><span class="emphasis">The "profile_count" is nothing more
          than the current usage of the given resource, as the load
          balancer sees it. As implemented, the load balancer makes use
          of dialog profiles to keep track of the number of calls
          balanced to each destination. Maybe I should also rename it to
          something easier to digest, such as "current_res_usage".</span></tt></p>
    <p><tt>Best regards,</tt><br>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01.11.2017 00:34, Social Boh wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:03e01bcf-76ad-a499-b846-f9671ed84579@bohboh.info">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>Hello,</p>
      <p>I'm studying this formula:</p>
      <p><span class="emphasis"><em>max_load = (<span class="bold"><strong>Idle-CPU</strong></span>
            / 100) * (<span class="bold"><strong>Max-Sessions</strong></span>
            - (profile_count - <span class="bold"><strong>Sessions</strong></span>))</em></span></p>
      <p><span class="emphasis">from load_balancer module on OpenSIPs
          2.3.<br>
        </span></p>
      <p><span class="emphasis">Where does profile_count take his value?</span></p>
      <p><span class="emphasis">Regards<em><br>
          </em></span></p>
      <pre class="moz-signature" cols="72">-- 
---
I'm SoCIaL, MayBe</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>