Bad HTTP status received 503
A new virtual service was created, however, the real server is not passing health checks.
I created a new virtual service and the real server is showing as down.
|Steps to Reproduce:|
|Error Message:||Bad HTTP status received|
The health check tries to access the root page URL by default to determine if the machine is available.
Checks were failing since the root page is not an available service and has no content.
The real server was failing due to Bad HTTP Status 503 which would mean the server is unavailable at the root page since this is checked by default.
Navigating to the real server directly returned a 503 status code.
Since there was no service available within the root page, an available directory needed to be specified within the health check parameters.
Once a URL was configured within the health checking parameters the virtual service began passing health checks.
To specify the URL, navigate to Virtual Services > View/Modify Services > Modify > Real Servers > URL.
Health check status codes can be set to override default functionality when the 503 status code is specified within the health check parameters.
Changing the status code would also work, however, if the site becomes unavailable the LoadMaster may not detect it since the root page is not actually available.
It may be best to check on an active URL rather than specifying the status code that the root page is returning.
Virtual Services > View/Modify Services > Modify > Real Servers > Status Codes.
Acceptable status codes would be anything between 200-299, 301, 302, or 401