Forum Discussion
Angus_2141
Jul 16, 2013Historic F5 Account
redirect based on monitor status
I would like to have a process where I am able to redirect a user to site down for maintenance page based on status of monitor. My workflow would be using a monitor to check for the content of a fil...
Angus_2141
Aug 02, 2013Historic F5 Account
Hi Nitass,
This works great and is really what I am working towards. I will expand the functionality to allow for a default behavior based on the monitor response allowing for a maintenance page and a technical issues type page.
The one additional issue I am struggling with now is that if I put all nodes in "disable mode" and then return a "maintenance" page I will interrupt existing sessions. I am wondering about trying to use something like LB:persist to determine if the client already has a session and if so allow them to age off normally but redirect any new sessions to the maintenance page. I tried to set a variable in a similar fashion to the is_disabled object and then make decision based on this value. However, I don't seem to be finding a session when I expect to using this function.
set client_session [LB::persist]
if { lindex $client_session 1 ] eq "0" }…
I tried this to see if I have a session
when HTTP_REQUEST {
set $client_session [ LB::persist ]
log local0. "The persistence entry is: $client_session and the key is [LB::persist key]"
}
But I don't see values for the key or value.
However, maybe there is a better way to try and determine if a client already has an active session?
Thanks.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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