close

Filter

loading table of contents...

Content Server Manual / Version 2512.1

Table Of Contents

2.4.1 Load Balancer Health Checks

Load balancers and orchestrators should only route traffic to a Content Server that is in run level online. Two health checks reflect this state:

gRPC port (default 6565)

Use the standard gRPC health checking protocol (grpc.health.v1.Health/Check) with the empty service name "", which reports the overall health of the server. The load balancer must speak HTTP/2 end to end to the server. The gRPC status code OK only means that the call succeeded; the actual health is the status field of the response. Configure the load balancer to require SERVING if it can evaluate the response. Otherwise, combine the gRPC check with the readiness endpoint described below.

The status is NOT_SERVING while the server starts up until it has reached its configured initial run level and the application is ready to accept traffic, whenever the run level is below online, and from the very beginning of the shutdown, so that load balancers stop routing requests before the gRPC server terminates. A pending run level switch does not change the status before the grace period has elapsed. Apart from the run level, the status aggregates all enabled Spring Boot health indicators, for example, the replicator indicator of a Replication Live Server if management.health.replicator.enabled is set. Hence, the gRPC health check is stricter than the readiness endpoint: whenever the readiness endpoint fails (HTTP status 503), the gRPC health check reports NOT_SERVING, but not vice versa.

The status is derived from the health indicators every second, configurable with spring.grpc.server.health.schedule.period, so it may follow a run level change with this delay. The switch to NOT_SERVING at the beginning of the shutdown happens immediately.

HTTP port (default 8080)

There is no dedicated health check path on the HTTP port. Use the readiness endpoint /actuator/health/readiness on the management port (default 8081) instead and configure the load balancer to use a different health check port than the traffic port. The readiness endpoint reports UP (HTTP status 200) only if the run level is online and reflects the readiness of all ports of the server.

The Workflow Server does not provide the gRPC health service. Check its readiness with /actuator/health/readiness on its management port.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.