Forum Discussion
guy_deffaux_215
Nimbostratus
Apr 04, 2006Similar feature to LB::status under v9.0.5
Hi,
We are about to use iRules to load balance servers based on the state of other servers. For example the rule would look like "if poolB-node3 down go node poolA-node1 else use poolA".
Our production system runs under BIGIP v9.0.5, but the key feature LB::status is only available from v9.2.0.
Is there something approaching to LB::status on 9.0.5 or my only option is to upgrade OS?
Thanks for the help
- unRuleY_95363Historic F5 AccountYou could still pick the specific pool member and if it turns out to be down, the LB_FAILED event would be triggered and you could reselect another pool member or repick the pool to have it load-balance to any other available pool member. The LB::server command is available in 9.0.5 and it will return the currently selected pool/member so you can test which pool member is down. You may also want to use a variable to additionally control the behavior in the LB_FAILED event since it may be triggered multiple times in the event additional pool members are down.
- guy_deffaux_215
Nimbostratus
Thanks for the very quick reply. We used the function active_members which I was not aware before. - guy_deffaux_215
Nimbostratus
rather straight foward. Srv1 = COM+ and Svc2 = MQwhen CLIENT_ACCEPTED { log "Client accepted" if { [active_members Test_iRule_HTTPS_Pool] < 2 } { log "0 or 1 HTTPS (COM+) node up -> use HTTPS pool Test_iRule_HTTPS_Pool" pool Test_iRule_HTTPS_Pool } else { 2 nodes up on POOL_HTTPS if { [active_members Test_iRule_MQ_Pool] > 0 } { log "2 HTTPS (COM+) nodes up, 1 or 2 MQ nodes up -> use MQ pool Test_iRule_MQ_Pool" pool Test_iRule_MQ_Pool } else { log "2 HTTPS (COM+) nodes up, 0 MQ node up -> use HTTPS pool Test_iRule_HTTPS_Pool" pool Test_iRule_HTTPS_Pool } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects