<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">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,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></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?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.1:5060" target="_blank">10.0.0.1:5060</a> weight=75<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.2:5060" target="_blank">10.0.0.2:5060</a> weight=25<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt -
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services -
</span><span><a href="https://skalatan.de/services" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/services</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></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">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">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] Kamailio weighted dispatch problems<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></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.<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></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:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.1:5060" target="_blank">10.0.0.1:5060</a> weight=3<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">>1 sip:<a href="http://10.0.0.2:5060" target="_blank">10.0.0.2:5060</a> weight=1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Does anyone have experience with this issue and have some guidance?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks in advance.<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">-- <u></u><u></u></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"><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"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(51,51,51);text-decoration:none"><img border="0" width="450" height="100" 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"></span></a><u></u><u></u></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">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"><img src="https://invoca.sigstr.net/uc/5cba111d3527a200469b9afd/img" border="0" alt="See the list" style="color: blue; font-family: Helvetica; font-size: 12px;"></a><br></span></div>