Wil_Schultz_101
Aug 09, 2007Nimbostratus
LB_FAILED behavior, expected or not?
I have the following iRule, use if for when my nodes are down connections go to a different page.
when LB_FAILED {
switch [LB::server pool] {
default {
set remoteip [IP::remote_addr]
set uri [HTTP::uri]
set hostname [HTTP::host]
log local0. "$remoteip is looking up Hostname $hostname and URI $uri"
HTTP::redirect http://maint.my.com
}
}
}
I found something today that gives me different behavior than I would have expected. I have 3 servers in my pool and when one of them fails for whatever reason this above rule will actually send 1/3 of my traffic to this maintenance page until the BigIP marks the server as down. I've got my check set up in 5 second intervals, and fail at 16 seconds. So all the traffic that is sent to the one down server that has yet to be marked down will hit the redirect.
Is this expected behavior? Sounds to me that LB_FAILED should actually be LB_SERVER_FAILED