It sounds like you're looking for "Call Load Distribution", provided by the
dispatcher module, algorithm 10 in 'ds_select_dst'.

https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html

Search the page for references to "call load" to see how 'ds_load_update()'
and 'ds_load_unset()' are used.

You will need to set ds_hash_size to a power of two large enough to track
your peak concurrent sessions. Each destination in a set will need a
unique 'duid' string, and optionally 'maxload'.



On Mon, Jan 22, 2024 at 9:06 AM Unai Rodriguez via sr-users <
[email protected]> wrote:

> Dear List,
>
> We're load balancing MRCP requests using Kamailio dispatcher module's call
> load distribution algorithm.
>
> We want to achieve the same maximum number of concurrent sessions on each
> MRCP backend but because the duration of each request varies, we’re unable
> to achieve this (at the moment we send the same number of requests to each
> backend but they all have different maximum concurrent requests).
>
> Is there a way/module that will send requests to the backend with the
> least number of ongoing sessions? My guess is, this module needs to connect
> to the backends to know their status. Any pointers appreciated.
>
> Thank you
>
> With best wishes,
> Unai Rodriguez
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to