<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi Jasen,</p>
<p>I see. if you can confirm that you call it correctly in the ds_select function call - then please open a bug report about it in our github issue tracker.</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 16.10.19 um 17:51 schrieb Jasen Hall:<br>
</div>
<blockquote type="cite" cite="mid:CAMNHEVsy8zATdraJ7g_XCanLqWETNxvn0Su3pxZe63fe9Zqg9w@mail.gmail.com">
<div dir="ltr">Thanks for the reply, Henning.
<div><br>
</div>
<div>I have tried an embarrassing variety of weights thinking I was misinterpreting the instructions. I've tried weight divisions of: 1/3, 10/30, 90/9, 90/10,100/0, 90/30, and more; all with the hopes of generating any variance in a straight split of the traffic.
 In every case I get an almost equal split of calls dispatched.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Oct 16, 2019 at 3:15 AM Henning Westerholt <<a href="mailto:hw@skalatan.de" moz-do-not-send="true">hw@skalatan.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE">
<div class="gmail-m_-9223280339264905716WordSection1">
<p class="MsoNormal"><span>Hello Jasen,</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span lang="EN-GB">just a quick guess – but have you already tried with a larger value suggested from the documentation?</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.1:5060" target="_blank" moz-do-not-send="true">10.0.0.1:5060</a> weight=75</p>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.2:5060" target="_blank" moz-do-not-send="true">10.0.0.2:5060</a> weight=25</p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">-- </span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt - </span><span><a href="https://skalatan.de/blog/" target="_blank" moz-do-not-send="true"><span style="color:rgb(5,99,193)" lang="EN-GB">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services - </span><span><a href="https://skalatan.de/services" target="_blank" moz-do-not-send="true"><span style="color:rgb(5,99,193)" lang="EN-GB">https://skalatan.de/services</span></a></span><span lang="EN-GB"></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Jasen Hall<br>
<b>Sent:</b> Tuesday, October 15, 2019 6:56 PM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">
sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] Kamailio weighted dispatch problems</p>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I am trying to change our request dispatching from round-robin to a weight-based method (ds_select_dst() algorithm 9 vs. algorithm 4) and am having a hard time getting an asymmetrical dispatch pattern enabled.
 In testing, I'm dispatching to two Ringswitch servers and trying to send three times the traffic to one instance.</p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">My destinations list file previously set both endpoints in the same group and simply provided the SIP URI for each. My new list file adds the attribute `weight` to each endpoint and looks like this:</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.1:5060" target="_blank" moz-do-not-send="true">10.0.0.1:5060</a> weight=3</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.2:5060" target="_blank" moz-do-not-send="true">10.0.0.2:5060</a> weight=1</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">However, when I throw a couple thousand calls at Kamailio, I always end up with an almost perfect split of calls to both ringswitches. Regardless of the weights I choose, I never see variation in the dispatched
 load.</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Does anyone have experience with this issue and have some guidance?</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks in advance.<br clear="all">
</p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">-- </p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:9pt;font-family:Arial,sans-serif">Jasen Hall | Invoca<br>
<strong><span style="font-family:Arial,sans-serif">Site Reliability Engineer</span></strong><b><br>
</b></span><br>
<span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(51,51,51)"><a href="http://www.invoca.com" target="_blank" moz-do-not-send="true"><span style="color:rgb(51,51,51)">www.invoca.com</span></a><br>
<br>
</span><a href="https://invoca.sigstr.net/uc/5cba111d3527a200469b9afd" target="_blank" moz-do-not-send="true"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(51,51,51);text-decoration:none"><img style="width: 4.6875in; height: 1.0416in;" id="gmail-m_-9223280339264905716_x0000_i1025" src="https://invoca.sigstr.net/uc/5cba111d3527a200469b9afd/img" alt="See
                            the list" moz-do-not-send="true" width="450" height="100" border="0"></span></a></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"><span style="font-size:12px;font-family:arial,helvetica,sans-serif;line-height:16px">Jasen Hall | Invoca<br>
<strong><span style="font-size:12px">Site Reliability Engineer</span><br>
</strong></span><br>
<span style="color:rgb(51,51,51);font-family:arial,helvetica,sans-serif;font-size:12px;line-height:16px"><a href="http://www.invoca.com" style="color:rgb(51,51,51);font-family:arial,helvetica,sans-serif;font-size:12px;line-height:16px" target="_blank" moz-do-not-send="true">www.invoca.com</a><br>
<br>
<a href="https://invoca.sigstr.net/uc/5cba111d3527a200469b9afd" style="color:rgb(51,51,51);font-family:arial,helvetica,sans-serif;font-size:12px;line-height:16px" target="_blank" moz-do-not-send="true"><img src="https://invoca.sigstr.net/uc/5cba111d3527a200469b9afd/img" alt="See the list" style="color: blue; font-family:
              Helvetica; font-size: 12px;" moz-do-not-send="true" border="0"></a><br>
</span></div>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Kamailio Merchandising - <a class="moz-txt-link-freetext" href="https://skalatan.de/merchandising/">https://skalatan.de/merchandising/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a>
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a></pre>
</body>
</html>