Forum Discussion
Example is:
when LB_FAILED { if { [active_members [LB::server pool]] != 0 } { HTTP::fallback "; } else { HTTP::fallback "; } }
- RaghavendraSY_7Feb 20, 2019Cumulonimbus
is above iRule worked for you?
- Paul_Visser_193Feb 20, 2019Nimbostratus
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
-
- RaghavendraSY_7Feb 20, 2019Cumulonimbus
Yep.correct.
- Paul_Visser_193Feb 20, 2019Nimbostratus
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?
- RaghavendraSY_7Feb 20, 2019Cumulonimbus
if both pool members are goes down it will invoke test2
- Paul_Visser_193Feb 20, 2019Nimbostratus
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.
- RaghavendraSY_7Feb 21, 2019Cumulonimbus
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.