Broken persistance

From Tech-Wiki
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"
 }
}