Hello,

you can find more details about that in the module documentation:

“Using this algorithm, you can also enable congestion control by setting the 
attribute 'cc=1', when 'cc' is enabled the 'weight' attribute will also be used 
to control congestion tolerance. When facing congestion the weight of a gateway 
is lowered by 1 for every ms of estimated congestion, a 'rweight' value of 50 
is recommended. See the example "configuring load balancing with congestion 
detection" below.“

https://kamailio.org/docs/modules/5.6.x/modules/dispatcher.html#dispatcher.f.ds_select_dst

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: satyaprakash ch <[email protected]>
Sent: Monday, November 14, 2022 9:17 AM
To: Henning Westerholt <[email protected]>
Cc: Kamailio (SER) - Users Mailing List <[email protected]>
Subject: Re: [SR-Users] Uneven-distribution of calls

Hi,

But we are having 2 setups in which

1st setup - we are having 3 freeswitch.
2nd setup - we are having 4 freeswitch.   with the same dispatcher 
configuration as the above chain mail.

However, we are getting an issue of uneven distribution of calls in only 2nd 
setup. and 1st setup is working fine.

Note: can you explain to me some brief on congestion control (cc=1).
Thanks and Regards,
Satyaprakash.

On Mon, Nov 14, 2022 at 1:07 PM Henning Westerholt 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

The 5.4.x branch has reached its end of life. You could try to update to the 
latest version 5.4.9, or even better, do an update to a newer version of the 
5.5.x or 5.6.x branch.

It could be also an effect of the congestion control (cc=1). You could try to 
deactivate it.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: satyaprakash ch 
<[email protected]<mailto:[email protected]>>
Sent: Monday, November 14, 2022 8:29 AM
To: Henning Westerholt <[email protected]<mailto:[email protected]>>
Cc: Kamailio (SER) - Users Mailing List 
<[email protected]<mailto:[email protected]>>
Subject: Re: [SR-Users] Uneven-distribution of calls

Hi,

We are using the version kamailio 5.4.7.

Thanks and regards,
Satyaprakash.

On Mon, Nov 14, 2022 at 12:57 PM Henning Westerholt 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

ok – which version of Kamailio do you use? There might be some bug fixes in 
later version and it would be good to check.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: satyaprakash ch 
<[email protected]<mailto:[email protected]>>
Sent: Monday, November 14, 2022 7:22 AM
To: Henning Westerholt <[email protected]<mailto:[email protected]>>
Cc: Kamailio (SER) - Users Mailing List 
<[email protected]<mailto:[email protected]>>
Subject: Re: [SR-Users] Uneven-distribution of calls

Hi,

We are using the dispatcher module with weight-based distribution.
We have 2 proxies and 4 freeswitches where the calls from the 2 proxies will be 
distributed to 4 freeswitches with the dispatcher module.

The dispatcher module parameters are as follows:
#--- Dispatcher params ----
modparam("dispatcher", "db_url", DBURL_LOCAL)
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "xavp_dst", "ds_dst")
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_ping_interval", 30)
modparam("dispatcher", "ds_ping_from", "sip:proxy@VAR_LOCAL_IP")

The weight based distributions are given in database as follows:
rweight=50;weight=50;cc=1;

Let me know the details which you need from me.

Thanks and regards,
Satyaprakash.

On Fri, Nov 11, 2022 at 1:14 AM Henning Westerholt 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

it could be because of the input for the distribution hash function.

Can you give a bit more details how you actually use the module, like the 
function with parameter etc..

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users 
<[email protected]<mailto:[email protected]>>
 On Behalf Of satyaprakash ch
Sent: Thursday, November 10, 2022 12:48 AM
To: [email protected]<mailto:[email protected]>
Subject: [SR-Users] Uneven-distribution of calls

Hi,

what would be the reason for the Un-even distribution of calls from kamailio 
proxy to freeswitches. The dispatcher lists are having the same weight.

For example: If we are having 4 freeswitches, the calls are evenly distributing 
for 3 freeswitches but there is high calls for the 4th freeswitch.

The dispatcher weight for the freeswitches are:  rweight=50;weight=50;cc=1;

Thanks and regards,
Satya
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
[email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to