Presentation
The OVHcloud Load Balancer service acts by default as a proxy. That is to say, it distributes the load (requests) it receives between all the servers of the desired farm.
Each server can be configured for the load balancer to check its status frequently.
Once a server is detected as "down", the load balancer no longer sends any data to it and distributes the load among the remaining servers.
This can be practical in the case of server maintenance: you can take the server out of the farm, perform maintenance, and then reintegrate it into the farm.
However, when a server is removed from the farm by the load balancer beyond our control, it can be interesting to know about it and why.
This tutorial explains how to know the health status of each server for each instance of your OVHcloud Load Balancer.
Retrieve the health status of the servers
Via API
In the API, server health status is available in the serverState table:
GET /ipLoadbalancing/{serviceName}/http/farm/{farmId}/server/{serverId}
GET /ipLoadbalancing/{serviceName}/tcp/farm/{farmId}/server/{serverId}
In the results, the status line shows that server is "active."
Appendix
Getting the list of instances of your OVHcloud Load Balancer
GET /ipLoadbalancing/{serviceName}/instancesState
Go further
For more information and tutorials, please see our other OVHcloud Load Balancer guides or explore the guides for other OVHcloud products and services.