Forum Discussion
David_X_20743
Nimbostratus
Jan 29, 2009timer trigger event
Hi,
I am not sure if there is any timer trigger event has been implemented.
The case is we have customer, they want to use F5 to LB a primary pool between Server A and Server B. If both Server A and Server B failed. They want to wait up to 10 Minutes before F5 decided to switch to a backup pool.
It would be very easy to achieve if there is no waiting time there.
So I am wondering if there is timer event can be used in iRules at all to achieve that.
Any suggest would be really appeciated.
Thank you.
5 Replies
- Colin_Walker_12Historic F5 AccountThere is not currently a timer event within iRules, but it sounds like you should be able to accomplish pretty close to what you're looking for with just a normal VIP/Pool config and a very long interval period on a monitor. If you set a monitor with a very long poll interval on both of your systems, then you'd be able to determine if they've both been down for 10 minutes, then use a fallback host for a new pool. You'd likely only want to set the polling interval to 5 minutes, but that should get you close to what you're looking for.
- David_X_20743
Nimbostratus
Hi Thanks for the reply. That is what I am currently doing at the moment. However the problems is if I setup the monitor timeout for 10 mintues. even the node down, the F5 will not take it out of pool before 10 minutes expired. - David_X_20743
Nimbostratus
Hi - Colin_Walker_12Historic F5 AccountYou could certainly do something that's a variation on that. There's no reason that I can see, given your current requirements, to wait for the LB_FAILED event. If we're going to manually check the active_members count of the pool we know is configured for the VIP anyway, we can do that in the HTTP_REQUEST.
when CLIENT_ACCEPTED { set loop 0 } when HTTP_REQUEST { if {[active_members primarypool] == 0} { if { $loop == 0} { set first [clock seconds] set loop 1 } elseif { [expr [clock seconds] - $first] >= 600} { pool backuppool } } }
- David_X_20743
Nimbostratus
Thank you for this. I think we probably would send a like message back from LTM.
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