Forum Discussion
name_65682
Nimbostratus
Sep 02, 2011Maintenance iRule
Hi,
Is it possible to write such an iRule?
We have:
LB --> VS_test --> test_poll --> 2 nodes
I would like to have an iRule which will check (once per minute ), if on on...
Michael_Yates
Nimbostratus
Sep 02, 2011A similar functionality to what you are wanting is possible, but it would require more configuration than just an iRule.
If you configure as good a Health Monitor as possible to apply to the pool and test the nodes then it can determine if and when to remove the nodes from the pool.
You can then use the "active_members" check inside of the iRule (http://devcentral.f5.com/wiki/iRules.active_members.ashx) and an action (route to or display a maintenance or oops page when less than 1 server is available). This could also have a conditional that if the IP Addresses of the incoming client is X or X to route them / to a different location (I would suggest using a Data Group for this to make it easier to add and remove IP Addresses without having to alter your iRule.
The logic in the "active_members" check portion of the iRule would re-enable access to the application once the node(s) passed the health monitor check that you configure and apply to the pool.
Does this sound like what you are looking for or similar?
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