Forum Discussion

bjones2480's avatar
bjones2480
Icon for Nimbostratus rankNimbostratus
Sep 10, 2024

Help me understand Load Balancing

Good afternoon everyone, 

I am hoping someone can help me understand the difference between something that is "failing a healthcheck" in an F5 and something that is "Forced Offline" and how the load balancer would react to both.

At my company I notice that if I have a server failing the healthcheck in the load balancer, that load balancer will still send requests to that server experiencing issues. But if I force that server offline manually, then the load balancer respects that the server is down and doesn't send it any requests until we bring it back up manually. Is this the expected behavior from an F5 load balancer? Or does it depend on the version of the device in question or the software? 

According to the manager that runs this system, they are telling me this is how it is and that the load balancer isn't "smart" enough to know unless we manually force it offline. Does this pass the sniff test or they being misleading? To me this sounds misleading at best. Because what is the point of having an active health check if the load balancer is still going to send requests to servers that fail the health check?

I am just trying to educate myself on this and since this is not my area of expertise. I would think a load balancer should be smart enough OOB to handle functionality like this. But I also want to make sure I am not "inventing" functionality that may not be there or is supported through a different license. Any type of info would be appreciated and thank you in advance for anyone who takes the time to read and reply to this post!

 

Respectfully, 

Brian Jones

  • Hello

    For education you can use F5 article and devCentral youtub vedios. Just search your query in in Google and you will get article relating to that. Also so many education vedios are available in YouTube devCentral page.

     

    For eg : https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-monitors-reference-12-0-0/2.html

  • Hi @bjones2480

    Review the timers or the intervals that you set in this Active Health monitor if it's in the default values ( Interval 5 seconds & Timeout on 16 Seconds ) Bigip will mark this Pool member as an offline "Red Rhombus" after 16 seconds then it will not send any further requests.

    But within 16 second it will use this pool member in load balancing decisions. 

     

    you can lower the interval and timeout values, so Bigip will mark it offline quickly and prevent any requests from passing to this pool member.

    • bjones2480's avatar
      bjones2480
      Icon for Nimbostratus rankNimbostratus

      Mohamed, 

      Thank you for this information and we are in fact using the defaults. 

      If I understand you right. 5 seconds is the duration between the health checks and 16 seconds is the time the server has to respond before being marked as failing the health check?

      However what we are seeing is the LTM sending requests to these servers failing the health check. Is there an instance or a config that would allow this to happen in BigIP? 

       

       

      • Hi, 

        Do you mean Bigip sends requests to a down pool member even after the monitor marks it down ??!! 
        I doubt that happens, Bigip will send requests till the timeout value reached ~"16" seconds but after that the assigned health monitor will mark this pool member as down and stop sending traffic to it.

         

        Take a packet capture for a minute to validate that 
        or reset pool member stats after being down and see packet in/out to confirm this.