[OpenSIPS-Users] [NEW] Load_Balancer modules: probing and disabling support

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 8 22:04:47 CEST 2009


Hi,

I just added in OpenSIPS 1.6 (trunk) support in Load Balancer module for 
destination probing and enabling / disabling.

The module has the capability to monitor the status of the destinations 
by doing SIP probing (sending SIP requests like OPTIONS).

For each destination, you can configure what kind of probing should be 
done (probe_mode column):

    * /(0)/ - no probing at all;
    * /(1)/ - probing only when the destination is in disabled mode
      (disabling via MI command will completely stop the probing also).
      The destination will be automatically re-enabled when the probing
      will succeed next time;
    * /(2)/ - probing all the time. If disabled, the destination will be
      automatically re-enabled when the probing will succeed next time;

A destination can become disabled in two ways:

    * /script detection/ - by calling from script the lb_disabled()
      function after trying the destination. In this case, if probing
      mode for the destination is (1) or (2), the destination will be
      automatically re-enabled when the probing will succeed.
    * /MI command/ - by calling the lb_status MI command for disabling
      (on demand) the destination. If so, the probing and re-enabling of
      this destination will be completely disabled until you re-enable
      it again via MI command - this is designed to allow controlled and
      complete disabling of some destination during maintenance.



The module have new module parameters for controlling the probing:
    - probing_interval
    - probing_method
    - probing_from
    - options_reply_codes
(see 
http://www.opensips.org/html/docs/modules/devel/load_balancer.html#id228135)

Also, a new function lb_disable() is available for marking the 
destination that failed.
See 
http://www.opensips.org/html/docs/modules/devel/load_balancer.html#id228408

A new MI function for getting or setting the status (enabled or 
disabled) of the destinations - mi_status.
See 
http://www.opensips.org/html/docs/modules/devel/load_balancer.html#id227044



In ~2 weeks, a new tool for provisioning LB module will be available in 
OpenSIPS Control Panel provisioning interface.

Best regards,
Bogdan




More information about the Users mailing list