<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>IIRC, the module will give you some warning if you attempt
        that, and it will only use the last resource/URL it finds in the
        string.</tt></p>
    <p><tt>Can you help me understand why you would need this feature?
        If you think about it, if you use 1 x "channels", FreeSWITCH
        will give you feedback 1 second later, and 1 will be subtracted
        from the maximum "E1" resource as well. This didn't make sense
        to me, so I did not allow it.</tt></p>
    <p><tt>Also, from a logical point of view: a load balancer SIP URI
        maps to a FS CLI interface. How could it map to two different FS
        CLIs?<br>
      </tt></p>
    <p><tt>Best regards,<br>
      </tt></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 18:23, Social Boh wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:be2defd1-d4de-e460-7305-2c5518344d4f@bohboh.info">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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"
          moz-do-not-send="true">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" 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>