[OpenSIPS-Devel] [OpenSIPS/opensips] 444b68: Fix balancing on failover.

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jan 21 17:37:37 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 444b6802980edd4931106b4db1d8c99dd479bb32
      https://github.com/OpenSIPS/opensips/commit/444b6802980edd4931106b4db1d8c99dd479bb32
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-01-21 (Wed, 21 Jan 2015)

  Changed paths:
    M modules/dispatcher/dispatch.c
    M modules/dispatcher/dispatch.h
    M modules/dispatcher/dispatcher.c

  Log Message:
  -----------
  Fix balancing on failover.

First, the way the calls were re-distributed if the calculated destination is inactive was completely unbalanced and did not respect the hashing concepts (same hash hits the same destination). Along with this problem, the fix covers the re-balancing problem - if a destination becomes inactive, the balancing over the remaining destination should not be affected (if hash H1 hits destination D1, after D2 goes inactive, H1 must still hit D1).
The use_default concept was reworked to properly work with all algorithms and in all cases (with or without weights).

Closes #387.




More information about the Devel mailing list