Broken persistance

From Tech-Wiki
Revision as of 15:56, 20 May 2019 by Fabricio.Lima (Talk | contribs) (Created page with "Category:F5 Networks '''Back to iRules''' when HTTP_REQUEST { set pserver [persist lookup uie [HTTP::cookie PersistCookie]] if { [LB::status...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to iRules

when HTTP_REQUEST {
 set pserver [persist lookup uie [HTTP::cookie PersistCookie]] 
 if { [LB::status pool http_pool member $pserver 80] eq "up" } {
   pool http_pool member $pserver 80
 } else {
   log "Persist server $pserver:80 down! Redirecting"
   HTTP::redirect "http://server.domain.com/BrokenPersistence.html"
 }
}