<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<div class="moz-cite-prefix">On 03.04.18 03:06, Atul Thosar wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKT7Mpp8GbjrbdgvebNMO7c7eEerywLw=A3xCy=Z6qLQ8g5ARQ@mail.gmail.com">
<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>
</span></span><br>
</div>
</blockquote>
no matter how low you set the keepalive ping interval, it is still
recommended to do failure routing in case a call sent to a
freeswitch is not accepted the call.<br>
<br>
Given the above, usually my approach is to have ds_ping_interval not
that low, but like 20 to 40 seconds, and do always re-routing if a
call is not accepted by a freeswitch in rather short time (say 2-4
seconds if freeswitch is in the same network). In this case, no call
is lost even a freeswitch is down.<br>
<br>
The keepalive is more for monitoring and seeing that a gateway is
down for long time and do not try it in such case -- you can use
event_route blocks from dispatcher to trigger some alerts if a
gateway is down/up.<br>
<br>
How to do re-routing in case of failure is shown by the kamailio.cfg
example from dispatcher documentation, with a failure_route block.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>