Forum Discussion
Ryan_Crowley_18
Nimbostratus
May 18, 2009How to cause a failover to another server when a error string is present in a response?
Ok,
totally new to writing iRules here, so bear with me through a couple stupid questions.
My situation is that i am using ColdFusion (and JRun) as an application server...
hoolio
Cirrostratus
May 19, 2009As cmbhatt and Denny said, monitors would be a much better solution. You could configure a standard HTTP monitor which checks for a string that isn't found in the 200 response with an error message. Or you could check for a 200 with a normal monitor and then look for (?:JRun closed connection|Server Error) in a reverse monitor.
I'd try to avoid buffering any amount of response content for every response just to check for an error string. I don't think the added value of hiding an error message from some clients is worth the added overhead and latency for all clients.
Aaron
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