Forum Discussion
Kev_Pearce_1070
Nimbostratus
Aug 25, 2006Can I read the status of a pool in an iRule?
Hi,
I'm trying to write a very short simple iRule that says:
if pool1 is up then use pool1 else use pool2
But I can't find how to read the status of an pool in an iRule.
Anyone any ideas???
Cheers very much all
Kev/.
- Colin_Walker_12Historic F5 AccountFirst of all, this should be something you can achieve without the use of an iRule. If you specify a default pool for the Virtual Server in question, and then select a fallback option that's appropriate, sending traffic to the secondary pool, you should be able to achieve this via normal configuration options which we always encourage.
when HTTP_REQUEST { if { [active_members http_pool] >= 2 } { pool http_pool } }
when HTTP_REQUEST { if { [active_members http_pool] >= 1 } { pool http_pool } else { pool http_pool2 } }
- Kev_Pearce_1070
Nimbostratus
hi, - Deb_Allen_18Historic F5 AccountHi Kev -
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