Module: kamailio Branch: master Commit: 02c0e0b1b0f84754c468e97ae7f2c09e7c13e8ee URL: https://github.com/kamailio/kamailio/commit/02c0e0b1b0f84754c468e97ae7f2c09e7c13e8ee
Author: Julien Chavanton <jchavan...@gmail.com> Committer: Henning Westerholt <h...@gilawa.com> Date: 2025-09-10T14:13:15+02:00 dispatcher: update the default value and docs of ds_latency_estimator_alpha This is to match the recent adjustement made in "dispatcher: fix ds_latency_estimator_alpha meaning" --- Modified: src/modules/dispatcher/dispatcher.c Modified: src/modules/dispatcher/doc/dispatcher_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/02c0e0b1b0f84754c468e97ae7f2c09e7c13e8ee.diff Patch: https://github.com/kamailio/kamailio/commit/02c0e0b1b0f84754c468e97ae7f2c09e7c13e8ee.patch --- diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c index b0f5942e6e7..b186988e853 100644 --- a/src/modules/dispatcher/dispatcher.c +++ b/src/modules/dispatcher/dispatcher.c @@ -105,8 +105,8 @@ static int ds_ping_interval = 0; int ds_ping_latency_stats = 0; int ds_ping_fr_timeout = 0; int ds_retain_latency_stats = 0; -int ds_latency_estimator_alpha_i = 900; -float ds_latency_estimator_alpha = 0.9f; +int ds_latency_estimator_alpha_i = 100; +float ds_latency_estimator_alpha = 0.1f; int ds_probing_mode = DS_PROBE_NONE; static str ds_ping_reply_codes_str= STR_NULL; diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml index 06b3a9eee11..77c89c289e1 100644 --- a/src/modules/dispatcher/doc/dispatcher_admin.xml +++ b/src/modules/dispatcher/doc/dispatcher_admin.xml @@ -813,15 +813,14 @@ modparam("dispatcher", "ds_retain_latency_stats", 1) <section id="dispatcher.p.ds_latency_estimator_alpha"> <title><varname>ds_latency_estimator_alpha</varname> (int)</title> <para> - The value to be used to control the memory of the estimator EWMA "exponential weighted moving average" or - "the speed at which the older samples are dampened" - a good explanation can be found here : http://www.itl.nist.gov/div898/handbook/pmc/section3/pmc324.htm + The parameter decides how important each latency ping observation is in the calculation of the EWMA. + The higher the value of alpha, the more closely the EWMA tracks the original time series. Because Kamailio doesn't support float parameter types, the value in the parameter is divided by 1000 and stored as float. - For example, if you want to set the alpha to be 0.75, use value 750 here. + For example, if you want to set the alpha to be 0.25, use value 250 here. </para> <para> <emphasis> - Default value is <quote>900 => 0.9</quote>. + Default value is <quote>100 => 0.1</quote>. </emphasis> </para> <example> _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!