Forum Discussion
Bret_McGinnis_1
Nimbostratus
Jan 09, 2006Action On Service Down vs LB::reselect
Hi,
I would like to know the advantages/disadvantage and when I should use "Action On Service Down" vs LB::reselect. Things like:
- Performance diferences
- Does "Action On Service Down" have loop control?
- Should they be used together or are they generally mutualy exclusive
I am running 9.1 (expecting to upgrade to 9.1.1 soon). Not expecting to upgrade to 9.2 until 9.2.3
Regards,
Bret
- unRuleY_95363Historic F5 AccountAction on Service Down mainly effects existing connections to the server going down. You have three options - do nothing, send a reset to the client, rebind the connection to another server.
- JRahm
Admin
What occurs after the LB::reselect in the LB_FAILED event? Does it just reselect a server, or does it retrigger any of the prior events? I am trying to account for clients who don't allow cookies with this rule (I am using cookie insert persistence on the virtual as well)when HTTP_RESPONSE { if { [HTTP::cookie exists "JSESSIONID"] } { set trimID [lindex [split [HTTP::cookie "JSESSIONID"] "!" ] 0 ] if { [session lookup uie $trimID] equals "" } { session add uie $trimID [IP::server_addr] 1800 log "added server entry [session lookup uie $trimID] for jsessionID $trimID " } else { log "existing server entry [session lookup uie $trimID] for jsessionID $trimID" } } } when HTTP_REQUEST { if { [active_members MyPool] == 0 } { HTTP::redirect "http://[HTTP::header "X-Forwarded-Host"]/unavailable/unavailable.html" } if { [HTTP::header exists "X-Forwarded-Host"] } { HTTP::header replace "Host" [HTTP::header "X-Forwarded-Host"] } if { not [HTTP::cookie exists "MyCookie"] } { if { [findstr [HTTP::uri] "jsessionid" 11 "!"] != "" } { pool MyPool member [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "!"] ] log "jsessionID [findstr [HTTP::uri] "jsessionid" 11 "!"] sent to [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "!"] ]" } else { if { [HTTP::cookie exists "JSESSIONID"] } { log "used Cookie Insert, value is [HTTP::cookie "MyCookie"]" } } } } when LB_FAILED { LB::reselect pool MyPool LB::reselect log "server reselected due to failure!" }
- JRahm
Admin
I added some additional logging to confirm the same server is being selected, even though there are 15 other servers that could be tried: - Casey_Lucas_167
Nimbostratus
Any luck on this issue? I'm having the same (or very similar) problem.
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