<p></p>
<p>load tests at 250CPS</p>
<p>3 gateways, one with excessive ( latency >30ms delta with the 2 others since a priority of 30 is set)</p>
<pre><code>URI: sip:147.75.65.247:5072
FLAGS: AP
PRIORITY: 30
ATTRS: {
        BODY: latency=10
}
LATENCY: {
        AVG: 10.039000
        STD: 1.381000
        EST: 37.871000
        MAX: 60
        TIMEOUT: 0
}

URI: sip:147.75.65.247:5071
FLAGS: AP
PRIORITY: 30
ATTRS: {
        BODY: latency=250
}
LATENCY: {
        AVG: 249.847000
        STD: 5.377000
        EST: 141.598000
        MAX: 250
        TIMEOUT: 0
}

URI: sip:147.75.65.247:5073
FLAGS: AP
PRIORITY: 30
LATENCY: {
        AVG: 59.000000
        STD: 0.000000
        EST: 59.000000
        MAX: 59
        TIMEOUT: 0
}
</code></pre>
<p>algorithm is doing round-robin on GW5072 and GW5073 and keep GW5071 for failover</p>
<pre><code> 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[0]uri[sip:147.75.65.247:5072]priority[30-0=30]latency[10ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[1]uri[sip:147.75.65.247:5071]priority[30-8=22]latency[250ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[2]uri[sip:147.75.65.247:5073]priority[30-0=30]latency[0ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2224]: ds_manage_route_algo13(): priority[30]gateway_selected[0]next_index[1]

 1(50) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[1]uri[sip:147.75.65.247:5071]priority[30-8=22]latency[250ms]flag[8]
 1(50) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[2]uri[sip:147.75.65.247:5073]priority[30-0=30]latency[0ms]flag[8]
 1(50) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[0]uri[sip:147.75.65.247:5072]priority[30-0=30]latency[10ms]flag[8]
 1(50) INFO: dispatcher [dispatch.c:2224]: ds_manage_route_algo13(): priority[30]gateway_selected[2]next_index[0]

 5(54) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[0]uri[sip:147.75.65.247:5072]priority[30-0=30]latency[10ms]flag[8]
 5(54) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[1]uri[sip:147.75.65.247:5071]priority[30-8=22]latency[250ms]flag[8]
 5(54) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[2]uri[sip:147.75.65.247:5073]priority[30-0=30]latency[0ms]flag[8]
 5(54) INFO: dispatcher [dispatch.c:2224]: ds_manage_route_algo13(): priority[30]gateway_selected[0]next_index[1]

 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[1]uri[sip:147.75.65.247:5071]priority[30-8=22]latency[250ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[2]uri[sip:147.75.65.247:5073]priority[30-0=30]latency[0ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2207]: ds_manage_route_algo13(): [active]idx[0]uri[sip:147.75.65.247:5072]priority[30-0=30]latency[10ms]flag[8]
 2(51) INFO: dispatcher [dispatch.c:2224]: ds_manage_route_algo13(): priority[30]gateway_selected[2]next_index[0]
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2493#issuecomment-727058990">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNWDUVO67H45CTN7LDSPWUSFANCNFSM4SA5ZYNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPB4Q2QV4IOJIPCVKTSPWUSFA5CNFSM4SA5ZYN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFNLAULQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2493#issuecomment-727058990",
"url": "https://github.com/kamailio/kamailio/pull/2493#issuecomment-727058990",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>