Forum Discussion
Jonas_Karlsson1
Feb 15, 2005Historic F5 Account
Checking node status from iRules
Hi,
As far as I can see from documentation available and posts to this forum there is no way to check the status of a node from within an iRule. Correct?
Cheers
Jonas
- Brian_Gupta_115
Nimbostratus
This thread will get you started... - Brian_Gupta_115
Nimbostratus
You need to create a universal persistence profile that executes an iRule. (Or are you past that point?) - Brian_Gupta_115
Nimbostratus
Did you test this? Is there a reason you can't use a health monitor to take the node in question out of the pool. - Jonas_Karlsson1Historic F5 AccountHi,
- Brian_Gupta_115
Nimbostratus
I think the right approach is to use a health monitor to manage the pool's node status. And you can then write a custom universal persistence profile to manage the persistence info. - Jonas_Karlsson1Historic F5 AccountWould it be possible for persistence profile to select another node and have the iRule check what node was actually selected? Then I could modify the persistence entry to go point to that node instead.
- Brian_Gupta_115
Nimbostratus
I don't think you need to do that. Double check with support, but I'm pretty sure persistence entries for a node that is marked down by a monitor get invalidated. - unRuleY_95363Historic F5 AccountYes, Brian, you are correct on this. When a persist entry is used, it is first checked to see whether the resulting pool member is still active. If it is not still active, the persist entry will be replaced after the connection is re-load-balanced. This sounds like it should handle the scenario.
- Jonas_Karlsson1Historic F5 AccountGreat!
- JRahm
Admin
In regards to:
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