Forum Discussion
irules or monitors
Hi
Are you able to use a monitor that checks a Receive String to determine availability?
If so, you could set up two pools. The first pool would be for your application traffic (and default pool for the VIP) and contain the monitor that checks for the service being up.
Then you can create a second identical pool, with a seperate monitor that has all of the same settings EXCEPT that Reverse is set to Yes. The logic being here that if the Receive String is found, the server gets marked as being down. If the string is not found then the server is marked as being Up.
Then, write some code similar to below that looks for the request from your script connection and send it to the 2nd pool.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool second_pool
}
}
Recent Discussions
Related Content
* 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