Forum Discussion
Is it possible to have two different fallback pages?
Example is:
when LB_FAILED { if { [active_members [LB::server pool]] != 0 } { HTTP::fallback "; } else { HTTP::fallback "; } }
- RaghavendraSYFeb 20, 2019
Altostratus
is above iRule worked for you?
- Paul_Visser_193Feb 20, 2019
Nimbostratus
Do I interpret the above rule correctly that you are saying?
-
If loadbalancing fails with still server(s) in the pool fall back to test1
-
If loadbalancing fails with NO server(s) in the pool fall back to test2
-
- RaghavendraSYFeb 20, 2019
Altostratus
Yep.correct.
- Paul_Visser_193Feb 20, 2019
Nimbostratus
let me explain the situation a bit more. I have 2 nodes in a pool, on each node there is a html file with the content "serverup". A monitor does a get for that file on both nodes, and when the content is something else then "serverup" the pool goes down. Then the virtual-server uses the fallback configured in a http profile.
If the pool goes down according to the above situation will that invoke test1 or test2?
- RaghavendraSYFeb 20, 2019
Altostratus
if both pool members are goes down it will invoke test2
- Paul_Visser_193Feb 20, 2019
Nimbostratus
Ok, but when does test1 get invoked then? How do I get LB_Failed and still a member in the pool?
BTW, I appreciate your help in this, thanks.
- RaghavendraSYFeb 21, 2019
Altostratus
LB_FAILED Trigger points:
- When failed to select a pool member
- When Pool member selected is not reachable from F5
- When Pool member fails to respond to connection
When LB_Failed trigger happens request will go to Test1 if a server dies in the middle of an active connection, and send clients to Test2 if there are no active pool members to load balance.
hope this clears.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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