GSLB service pools marked down due to health monitor response code mismatch
search cancel

GSLB service pools marked down due to health monitor response code mismatch

book

Article ID: 439062

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

In VMware Avi Load Balancer, GSLB (Global Server Load Balancing) service pool members may be marked as "Down" even if the backend server is reachable.

This typically occurs when the health monitor receives an HTTP response code that does not match the configured "Expected Response Code" range, such as a 2xx success code.

Environment

  • VMware Avi Load Balancer
  • Component: GSLB

Cause

  • GSLB Service pool member status shows as "Down."
  • Health monitor failure logs indicate: Server Down due to Response code mismatch
  • Expected Response Code - 2xx but the server returns a different code (e.g., during maintenance or configuration changes).
  • The health monitor is configured to expect a specific HTTP response (e.g., 200 OK).
  • If the backend application or server returns a different code—often due to scheduled maintenance, application errors, or incorrect health monitor paths—Service Engine marks the pool member as down to prevent traffic from being routed to a potentially unhealthy site.

Resolution

To restore the GSLB service pool member, verify the GSLB pool member server health and health monitor configuration:

  1. Verify the current status of the GSLB pool member server directly.
  2. Check if the server is undergoing scheduled maintenance that might cause it to return non-2xx codes.
  3. Review the Health Monitor configuration in the Avi UI:
    • Navigate to Infrastructure > GSLB > GSLB Services.
    • Edit the impacted GSLB service and inspect the Health Monitor settings.
    • Confirm the Expected Response Code matches what the application is currently sending.
  4. If the application is healthy but returning a different code intentionally, update the health monitor's expected codes to include the new value.

Additional Information