<div><div dir="auto">I’m not using those algorithms, I’m using hash over username.</div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Aug 2022 at 22:34, Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div>
<p class="MsoNormal"><span lang="EN-GB">Hello,<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">I still might not 100% understand your scenario.<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"><span lang="EN-GB">If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed.
</span>This is what I’m looking for.<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">But does dispatcher e.g. with a hash based distribution or round-robin does not fulfil this requirement already?<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">Cheers,</span></p></div></div><div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word"><div><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<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>>
<br>
<b>Sent:</b> Monday, August 8, 2022 10:30 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Cc:</b> Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>><br>
<b>Subject:</b> Re: [SR-Users] recompute distribution list<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">Difference is if you are distributing based off the username hash and a server goes down, it is simply set as “inactive”, but all calls that were going to that serve will now go to the next in the list, so all
those calls will land on the next server basically doubling the traffic.<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">If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.<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"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks!<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">On Mon, 8 Aug 2022 at 22:03, Kaufman <<a href="mailto:bkaufman@bcmone.com" target="_blank">bkaufman@bcmone.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm;border-left-color:rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">With either module (Dispatcher or Carrierroute) , what would be the functional difference between ‘reloading’ and ‘recalculating’?<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">Both modules can be controlled via RPC:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">Dispatcher can be set to send OPTIONS messages to the hosts in it’s tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target’s state can be changed administratively to disabled. Finally,
if you update your datasource, dispatcher can be reloaded.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">Carrierroute doesn’t have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute’s data is updated (i.e. if reading from database) it can be completely
reloaded.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<b><span lang="EN-US">Kaufman</span></b><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal" style="margin-left:35.4pt">
<b><span lang="EN-US">From:</span></b><span lang="EN-US"> 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>David Villasmil<br>
<b>Sent:</b> Monday, August 8, 2022 1:39 PM<br>
<b>To:</b> Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>><br>
<b>Cc:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] recompute distribution list<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">On Mon, 8 Aug 2022 at 19:47, Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>> wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt;border-left-color:rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
Hello,<span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">this is possible with carrierroute by RPC command: <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0" target="_blank">
https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierroute.rpc.replace_host</a></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Cheers,</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Henning</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal" style="margin-left:70.8pt">
<b><span lang="EN-GB">From:</span></b><span lang="EN-GB"> 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>David Villasmil<br>
<b>Sent:</b> Monday, August 8, 2022 5:05 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> [SR-Users] recompute distribution list</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:70.8pt">
<span lang="EN-GB"> </span><span lang="EN-US"><u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
Hello guys,<span lang="EN-US"><u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
<span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?<span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
<br clear="all">
<span lang="EN-US"><u></u><u></u></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
Regards,<span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
<span lang="EN-US"><u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:70.8pt">
David Villasmil<span lang="EN-US"><u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
phone: +34669448337<span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">-- <u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US"> <u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">David Villasmil<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">
david.villasmil.work@gmail.com</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-US">phone: +34669448337<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">David Villasmil<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">
david.villasmil.work@gmail.com</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">phone: +34669448337<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote></div></div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>