<div dir="ltr">Hi,<br><div><br>I would set it to a low value to make sure you avoid sending calls a Freeswitch server facing problems, in the case of Freeswitch the same GW will also handle media, if it is having hardtime repliyng to SIP OPTIONS it will very likely have problem handling the media.<br><br>It may also get worst during the call even stop responsding and loose transaction in progress or in dialog transactions later like session timers and BYEs.<br><br>Off loading it may able help other calls already using it. <br><br><br></div><div>You may push your strategy further thinking about :<br></div><div><br></div><div>- The risk is that you run out of GW, could be handled when ds_select is returning nothing.<br></div><div>- Another side effect, would be that you are sending more traffic to other GW, they must be able to handle the extra load.<br></div><div><br></div><div>In kamailio 5 there is a new algorithm that behaves better when one GW is put out of service. <br><br><span class="gmail-quote">“<span class="gmail-quote">11</span>”</span> - use relative weight based load distribution.
You have to set the attribute 'rweight' per each address in
destination set. Active host usage probability is
rweight/(SUM of all active host rweights in destination group).
<br></div><div><br></div><div>Regards<br></div><div>Julien<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 2, 2018 at 6:06 PM, Atul Thosar <span dir="ltr"><<a href="mailto:atulthosar@gmail.com" target="_blank">atulthosar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif">Hi All,<br>I am using Kamailio <div style="display:inline" class="gmail_default"><b></b></div><b>v4.4.x</b> to load balanced traffic to FreeSWITCH servers. I have query regarding ds_ping_interval and ds_probing_threshold. We have very high traffic (around 200-400<div style="display:inline" class="gmail_default"> (CPS)</div> calls per sec) hitting on Kamailio which then distribute it to 2-3 FreeSWITCH servers.<div style="display:inline" class="gmail_default"> </div>What is the optimal value should I set to ds_ping_interval and ds_probing_threshold?<br><br>If I set <div style="font-family:courier new,monospace;color:rgb(53,28,117);display:inline" class="gmail_default"></div>ds_ping_interval=2 and <div style="display:inline" class="gmail_default"></div>ds_probing_threshold=1 then in every 2 sec, I would come to know if my <div style="display:inline" class="gmail_default"></div>FreeSWITCH server is down/up. But by setting such low values, I afraid there would <div style="display:inline" class="gmail_default">be </div>lot of SIP traffic on network.<div style="display:inline" class="gmail_default"> If I set high (say
<div style="display:inline" class="gmail_default"></div>ds_probing_threshold=5) then I may loose high number of calls (200 CPS, I will loose 1000 calls) in case
<div style="display:inline" class="gmail_default"></div>FreeSWITCH server is down. </div><br><br>As I said earlier we have very high traffic hitting on Kamailio, can't kamailio use INVITE itself to probe FreeSWITCH server is down/up? In case of low traffic can't it switch over to OPTION mechanism?<br><br>--<br><div style="display:inline" class="gmail_default">Thanks in Advance</div>,<br><div style="display:inline" class="gmail_default"></div>Atul</span></span><div style="display:inline" class="gmail_default"><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif"></span></span></div><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif"><div style="display:inline" class="gmail_default"></div><div style="font-family:courier new,monospace;display:inline" class="gmail_default"></div><br><br></span></span></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>