Forum Discussion
Manuel_Gabaldon
May 06, 2008Nimbostratus
Hi,
Yes, you can force a Redirection, or even make a response telling your users about the issue. But you should know about the LB_FAILED event, since it will never be triggered if the real server has been marked down by a monitor. LB_FAILED only triggers when nobody is avalilable to handle your request:
http://devcentral.f5.com/wiki/default.aspx/iRules/LB_FAILED.html
It's the same thing with "action on service down".
What you should try to do is this: keep your user's session information (for instance, in the persistence table, with a lookup on the persistence table) and check the availability of its pool member before forwarding the request. You can do it with the lb:status commands.
http://devcentral.f5.com/wiki/default.aspx/iRules/LB__status.html
Regards.