<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thank you Liviu,</p>
    <p>last question, is there a way to indicate two different type of
      resources on FreeSWITCH Gateway?</p>
    <p>Example:</p>
    <p>resources field <br>
    </p>
    <p><a class="moz-txt-link-abbreviated" href="mailto:channels=fs://:pwd@1.2.3.4;E1=fs://:pwd@1.2.3.4">channels=fs://:pwd@1.2.3.4;E1=fs://:pwd@1.2.3.4</a></p>
    <p>like other gateway:</p>
    <p>nacio=30;channels=50<br>
    </p>
    <p>Regards<br>
    </p>
    <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
    <div class="moz-cite-prefix">El 01/11/2017 a las 09:41, Liviu Chircu
      escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b9be08eb-a035-47c1-d6d0-d9381f95cd88@opensips.org">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p><tt>Hi,</tt></p>
      <p><tt>The new docs should be working now. And yes, that is the
          "profile_count" value. However:<br>
        </tt></p>
      <p><tt>The resources internally become normal (non-shared) dialog
          profiles by default. If you want to share resource usage
          between multiple load balancers, you must add the "/b"
          extension to your resource names, indicating you want them to
          be "binary replicated".</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" moz-do-not-send="true">http://www.opensips-solutions.com</a></pre>
      <div class="moz-cite-prefix">On 01.11.2017 16:07, Social Boh
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:6a43bde3-4906-c318-3efa-1815007b1326@bohboh.info">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <p>Thank you for your answer, Liviu.</p>
        <p>So if I use a resource with name channels and between all
          servers/gateway configured I'm using 200 channels, this is the
          profile_count value</p>
        <p>Right?</p>
        <p>Regards<br>
        </p>
        <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
        <div class="moz-cite-prefix">El 01/11/2017 a las 01:33, Liviu
          Chircu escribió:<br>
        </div>
        <blockquote type="cite"
          cite="mid:cfea8c1f-8bca-42e3-7b94-8d80e79abf28@opensips.org">
          <meta http-equiv="Content-Type" content="text/html;
            charset=utf-8">
          <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" moz-do-not-send="true">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" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <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>