[sr-dev] [kamailio/kamailio] dispatcher: algorithm 13 latency optimized round-robin with failover (#2493)

Julien Chavanton notifications at github.com
Fri Nov 13 23:05:22 CET 2020


load tests at 250CPS 


3 gateways, one with excessive ( latency >30ms delta with the 2 others since a priority of 30 is set)
```
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
}
```


algorithm is doing round-robin on GW5072 and GW5073 and keep GW5071 for failover

```
 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]
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2493#issuecomment-727058990
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201113/cbbc4b99/attachment.htm>


More information about the sr-dev mailing list