doc/
subfolder, the README file is autogenerated)With the proposed modification the dispatcher can now compute the latency of all the nodes it is pinging and also report timeouts counts.
Default module behavior is unchanged, the stats needs to be explicitly activated.
In this first stage, the objective is to start to monitor latency and intermittent timeouts and share the result to be used by an external monitoring system.
The metrics are only expose using kamcmd dispatcher.list
maybe they should be made available elsewhere, for example from the routing script ? but this can be done later ...
DEST: {
URI: sip:1.2.3.4
FLAGS: AX
PRIORITY: 9
LATENCY: {
AVG: 24.250000 # weigthed moving average for the last few weeks
STD: 1.035000 # standard deviation of AVG
EST: 25.000000 # short term estimate, see parameter: ds_latency_estimator_alpha
MAX: 26 # maximun value seen
TIMEOUT: 0 # count of ping timeouts
}
}
Another stage would probably be to adjust the load distribution/weight considering the latency estimator, the dispatcher would be able to detect intermittent remote server lags and minimize the impact.
tested :
Some tests done on the calculation generating billions of fake samples to verify calculations.
ds_reload :
https://github.com/kamailio/kamailio/pull/1234
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.