[OpenSIPS-Users] [NEW] Load_Balancer modules: probing and disabling support
bogdan at voice-system.ro
Wed Jul 8 22:04:47 CEST 2009
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:
Also, a new function lb_disable() is available for marking the
destination that failed.
A new MI function for getting or setting the status (enabled or
disabled) of the destinations - mi_status.
In ~2 weeks, a new tool for provisioning LB module will be available in
OpenSIPS Control Panel provisioning interface.
More information about the Users