reselect pool node based on http uri and status of the current selected node
Hi,
I have a problem creating an irules to force selection of another node based on the HTTP uri and the current selected node state.
I need this irules to help our developer to install new version of their application.
We are using cookie based persistence. Our node monitor is http based. If response is "200 OK" then the node is UP and if the response is "404" the node is session_disabled (only current active session continue to use this node until the session is finished.).
Everything work fine, but the problem is people that never terminate their session…
So, I need the irule to terminate the session and select another node when the user hit a specific uri (for example : login.php)
The actual irule that seems to work. I only can't find a way to reselect a node…
when HTTP_REQUEST {
if {[LB::status] == "session_disabled" && [HTTP::uri] == "/index.php"} {
}
}
I tried to use a variable and use its value in LB_SELECTED event
I tried to delete the cookie (HTTP::cookie remove "cookie_name")
I tried to end the sessions (session delete)
But nothing of those worked.
So, I decided to find a solution here…