OK, guys,

It seems I did the pull request right this time.  Now it contains only my changes, as I verified my forked repo was in full sync with kamailio:master.

if one of the maintainers could take a look at this pull request, please? It'd be great if it could be at release 5.4.0.

It's a very small change, just about 50 lines, and a very simple concept. Just rehash of hash, a limited amount of times, when destinations are not available.

Best regards,

Luis Rojas (Kalki70 at github)


On Wed, Jun 17, 2020 at 9:30 AM Kalki70 <notifications@github.com> wrote:

Pre-Submission Checklist

Type Of Change

Checklist:

Description

When a destination is selected using one of the hash algorithms (over Call-ID, From, etc.)
and destination is not available, then the next is selected. This causes the following problem :
All messages to the unavailable destination will be sent to the same unique destination.
This will cause that one destination will receive double load and the rest will continue with the same.

Solution : To better distribute messages, while also guaranteeing the same distribution of the hash, a re-hash of the hash is made.

As the rehash could select the same or other failed destination, it can rehash several times. The number of rehashes made is controlled by :

modparam("dispatcher", "ds_rehash_max", -1)

Which can take the following values :

-1 : The total count of destinations is used
0 : Disabled. Reverts to original implementation.
Positive number. Maximum number of rehashes.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/2363

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


--
Ayudemos a niñas que lo necesitan !
www.lascreches.cl !