Forum Discussion
Keith_Richards_
Nimbostratus
Jul 05, 2007LB_FAILED event
Please can someone tell me how long the LTM will wait, given that the selected server hasn't responded, before triggering the LB_FAILED event.
I have noticed that when people are using LB_FAILED for passive monitoring they also put in an LB:detach and LB:down. I don't understand why you use the LB:detach - is it just good housekeeping on the LTM? When we used the LB:down on our system there were pool members getting removed due to slow response even though they weren't really down/offline.
Oh, and sorry, but another thing. I'm using universal persistence as below:
when HTTP_REQUEST {
set uri [HTTP::uri]
set jsess [findstr $uri "jsessionid" 11 "?"]
log local0. "Entering REQUEST, jsess is: $jsess"
if { $jsess != "" } {
persist uie $jsess
}
}
when HTTP_RESPONSE {
if { [findstr $uri "jsessionid"] > 0}{
set jsess1 [findstr $uri "jsessionid" 11 "?"]
log local0. "jsessionid found, jsess is: $jsess1"
persist add uie $jsess1
}
}
The virtual server uses a second iRule for LB_FAILED events. I have seen other examples in the forum delete the persistence using a 'persist delete' statement - should I use this? I assumed that if a connection to a member fails with event LB_FAILED that that connection will be reselected (as below) and a new persistence record created?
when LB_FAILED {
set selected_server [LB::server addr]
if {$selected_server == ""} {
log local0. "No mdex node available"
}
else {
log local0. "Node: ${selected_server} not responding."
Select another node
LB::reselect
}
}
Thanks, Keith
- Deb_Allen_18Historic F5 AccountNot sure what the timeout is before LB_FAILED is triggered, anybody else know?
- JRahm
Admin
An oldie but goodie from Dr. Teeth: - Deb_Allen_18Historic F5 AccountAh, nice work! Didn't think of that, & didn't realize that was in the profile.
Trying 172.24.2.200... 11:26:24.455153 172.24.2.41.55507 > 172.24.2.200.http: S ... 11:26:27.452465 172.24.2.41.55507 > 172.24.2.200.http: S ... 11:26:33.452465 172.24.2.41.55507 > 172.24.2.200.http: S ... 11:26:45.452465 172.24.2.41.55507 > 172.24.2.200.http: S ... 11:27:09.452481 172.24.2.41.55507 > 172.24.2.200.http: S ... 11:27:57.452466 172.24.2.41.55507 > 172.24.2.200.http: S ... telnet: connect to address 172.24.2.200: Connection timed out
1st SYN: 0 2nd SYN: +3 seconds 3rd SYN: +6 seconds 4th SYN: +12 seconds 5th SYN: +24 seconds ====================== LB_FAILED: 45 seconds
- Hey Deb,
- hoolio
Cirrostratus
Hi Andrew, - brad_11480
Nimbostratus
Just want to note that the code segment above that tests to see if a member was selected (set selected_server [LB::server addr]) and then triggers the else to LB::reselect can/will send this bugger into a loop of reselection. I just did that and while I don't know how to get the thing to stop (which maybe someone knows a way to stop an iRule gracefully?? ), i failed the box over to the HA partner and restarted TMM. - What_Lies_Bene1
Cirrostratus
Not sure this helps but are you SNATting? If so, perhaps the server is accepting connections from the F5 Self-IP address but not the SNAT address?when CLIENT_ACCEPTED { set loopcounter 0 } when LB_FAILED { set selected_server [LB::server addr] if {$selected_server == ""} { log local0. "No mdex node available" } elseif { loopcounter <=4 } { log local0. "Node: ${selected_server} not responding." Select another node LB::reselect incr loopcounter } }
- Affa_1992
Nimbostratus
Can I create a virtual server (VS_Primary) with the iRule like the following:
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