Forum Discussion

eden191456's avatar
eden191456
Icon for Nimbostratus rankNimbostratus
Aug 06, 2019

Retrying a different application server after receiving error 503

We use F5 Big-IP load-balancer (LB) with 2 application servers, A1 and A2.

When sending 10 requests to the LB, 5 of them are being sent to A1, and 5 to A2.

However, if 10 request are sent while A1 returns HTTP code 503 Service Unavailable, A2 still gets only 5 requests. The expected behavior would be that when the LB gets a 503 response, it will try to send the same request to A2, and eventually A2 will handle 10 requests.

 

What should be done to achieve it?

3 Replies

  • You need an http monitor looking for 200 as response. When the Application server returns 503 to the BigIP, the BigIP will mark this server as down and send any subsequent requests to the other server. The interval of the monitor is important here as the 10 requests may be sent before the BigIP has a chance to mark it down.

  • Can you share your pool & monitor configuration details,

    tmsh list ltm pool <pool name>
    tmsh list ltm monitor <monitor type> <monitor name>