<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    there is no such algorithm done internally. But you can get it via
    configuration:<br>
    <br>
    - use two set ids, first with the 3 nodes and then the second with
    the other 2 nodes<br>
    - first to ds_select_*(setid1, 4) and ds_next_*() utill you consume
    all of them<br>
    - if no answer yet and no more addresses with setid1, then call
    ds_select_*(setid2, 4) and ds_next_*()<br>
    <br>
    You can also look to see if weight based distribution fits your
    needs, so you can have the 3 good nodes with high weight and the
    other with something lower. But it won't try first the 3 good ones,
    it will distribute across all of them based on their weight.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/14/13 2:54 AM, santosh satapathy
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+Yp-66M9yedAcyeUSNfNLWKyXVRn3xSZmosYk4J-5+7vpuQ5A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Any input for the below query is highly appreciated.
          <div class="gmail_quote"><br>
            <b>Question:</b></div>
          <div class="gmail_quote"><br>
            <div dir="ltr">
              <div>Does the dispatcher module allow combination like
                "weighted round robin" algorithm. Or Do we have any
                similar algorithm ?</div>
              <div><br>
              </div>
              <div>Example:</div>
              <div><br>
              </div>
              <div>3 of 5 nodes are in better condition so I set them as
                weight 1 and the other two as weight 2.</div>
              <div><br>
              </div>
              <div>Then the dispatcher will round robin between the 3
                nodes with weight 1 until all 5 are with the same
                weight.</div>
              <div><br>
              </div>
              <div>That also means that the weight should be dynamic and
                updated as conditions of the node changes.</div>
              <span class="HOEnZb"><font color="#888888">
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  -- <br>
                  <div dir="ltr">Thanks
                    <div><br>
                      <div>Santosh</div>
                    </div>
                  </div>
                </font></span></div>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">Thanks
            <div><br>
              <div>Santosh</div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
  - more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
  </body>
</html>