Forum Discussion
Rick_110395
Nimbostratus
Aug 08, 2011iRule behavior when pools are down
For example......in this iRule what would happen if a connection was initiated to "host1.domain.com", but srvpool1 is down. What would the iRule do with the connection?
when HTTP_REQUES...
hoolio
Cirrostratus
Aug 08, 2011Hi Rick,
TMM would send a TCP reset as if the iRule wasn't there and the default pool was down. If you want to check the status of the pool before assigning it, you can use active_members. Or you could use the LB_FAILED event to handle this after a load balancing failure occurs.
http://devcentral.f5.com/wiki/iRules.active_members.ashx
http://devcentral.f5.com/wiki/iRules.lb_failed.ashx
You could also replace the if/elseif/else chain with a switch statement:
http://devcentral.f5.com/wiki/iRules.switch.ashx
Aaron
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
