[OpenSIPS-Devel] [OpenSIPS/opensips] a7549e: changed load_ballance() function to

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 22 13:57:53 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a7549e00bdd3fd13fc20777bccf935d41303980e
      https://github.com/OpenSIPS/opensips/commit/a7549e00bdd3fd13fc20777bccf935d41303980e
  Author: shripchenko <shripchenko at intermedia.net>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  changed load_ballance() function to
1. save profiles applied in the current iteration
2. process previous iteration's profiles to clean them up
3. allow group and/or resources list changes in subsequent calls
4. sanity check if dst_bitmap size chaged


  Commit: 301e6d321d00b75afd93aa6dd4238b7fb96dcde1
      https://github.com/OpenSIPS/opensips/commit/301e6d321d00b75afd93aa6dd4238b7fb96dcde1
  Author: shripchenko <shripchenko at intermedia.net>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  add lb_reset() function to reset LB state in case you want to stop load-ballancing call
and proxy call somewere else and clean LB usage (dialog profiles) for this call.
(or re-start LB process from the beginning)


  Commit: cd0ac1465bf589319df18cea043be3ccd5404622
      https://github.com/OpenSIPS/opensips/commit/cd0ac1465bf589319df18cea043be3ccd5404622
  Author: shripchenko <shripchenko at intermedia.net>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  changed lb_count_call(ip,port,grp,resources[,mode]) function to allow one parameter
that trigger whenever this function will actually 'count' call (add LB profiles) or
'un-count' call (clean up things after convential lb_count_call() call)

this might be needed if we count call for particular resources and then need to un-count it.


  Commit: 598607431a15f44157376aba26bb3669eb60067b
      https://github.com/OpenSIPS/opensips/commit/598607431a15f44157376aba26bb3669eb60067b
  Author: shripchenko <shripchenko at intermedia.net>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h

  Log Message:
  -----------
  introduced two more algorithms for load_balance() that the same as existing, but
do not ignore resources with negative availability, and thus able to
select for load balancing destinations with exceeded capacity.
this might be needed in scenarios where we want to limit generic calls volume
and always pass important/high-priority calls.


  Commit: f43a40561ad55602be09ed3e9f7ae8f819b30d7b
      https://github.com/OpenSIPS/opensips/commit/f43a40561ad55602be09ed3e9f7ae8f819b30d7b
  Author: Sergey Khripchenko <shripchenko at intermedia.net>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  next round of changes.
cumulative commit:
1. get rid of load_balance() in favor of lb_*() family of functions to make the workflow more clear and defined:
       lb_start() - strictly used to start LB session. if sessions already started, old session will be lost and re-started again.
       lb_next() - strictly used to to continue LB session previousely started by lb_start().
       lb_is_started() - used to check whenever LB session is already started or not.
       lb_reset() - used to clean up LB session and everything LB internally does for this dialog.
       ln_disable_dst() - mark destination currently choosen by LB in current active LB session as disabled.
       lb_start_and_next() - is simply a shorthand for 'lb_is_started()?lb_next():lb_start()' to simplify scripting.
           this function logically almost the same as old load_balance() function,
           so we could leave old name for compatibility reasons.
       lb_count_call() - manually register call as a load for particular resource(es).

2. lb_start(..., alg) parameter changed to 'flags' parameter with possible values:
      'r' - use relative versus absolute estimation
      'n' - do not skip negative loads

3. new module parameter 'probing_verbose' to log INFO message whenever we enable/disable destinations by probing/MI.


  Commit: b7180d04c2baeaafe84f7eb4350ebde6693017ec
      https://github.com/OpenSIPS/opensips/commit/b7180d04c2baeaafe84f7eb4350ebde6693017ec
  Author: Sergey Khripchenko <shripchenko at intermedia.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c

  Log Message:
  -----------
  correct logging levels from dev LM_ERR to production LM_DBG


  Commit: f45733447611d4e6bd3d2f2a31225941809c6b50
      https://github.com/OpenSIPS/opensips/commit/f45733447611d4e6bd3d2f2a31225941809c6b50
  Author: Sergey Khripchenko <shripchenko at intermedia.net>
  Date:   2014-11-27 (Thu, 27 Nov 2014)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  changed lb_disable_dst() to rize event if we disable destination from script and do logging if 'prob_verbose' is set


  Commit: 02a20250a216d3125a46863e5b139a940c444b58
      https://github.com/OpenSIPS/opensips/commit/02a20250a216d3125a46863e5b139a940c444b58
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-01-22 (Thu, 22 Jan 2015)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  Merge branch 'master' of git://github.com/shripchenko/opensips into shripchenko-master

Conflicts:
	modules/load_balancer/lb_data.c


  Commit: ca45388c21a927714a6ca4cd626aa602f8b83859
      https://github.com/OpenSIPS/opensips/commit/ca45388c21a927714a6ca4cd626aa602f8b83859
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-01-22 (Thu, 22 Jan 2015)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  Small fixes.


  Commit: 4324f714e6c82994005d1064c6d6f0877a78046f
      https://github.com/OpenSIPS/opensips/commit/4324f714e6c82994005d1064c6d6f0877a78046f
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-01-22 (Thu, 22 Jan 2015)

  Changed paths:
    M modules/load_balancer/lb_data.c
    M modules/load_balancer/lb_data.h
    M modules/load_balancer/load_balancer.c

  Log Message:
  -----------
  Merge branch 'shripchenko-master'


Compare: https://github.com/OpenSIPS/opensips/compare/2fdeba6fa8ee...4324f714e6c8


More information about the Devel mailing list