4. Monitoring, Logging and Statistics

balancerHealthMonitor

Health monitor for a {@link LoadBalancingInterceptor} {@link Cluster}. Periodically checks the health of all clusters registered on the router and updates each {@link Node}'s status accordingly. When initialized, it schedules a task to call each {@link Node}'s health endpoint and marks nodes as {@link Status#UP} or {@link Status#DOWN} based on the HTTP response. This ensures the load balancer always has up-to-date status for routing decisions.

Example:

health monitor example

Can be used in:

bean

Attributes

NameRequiredDefaultDescriptionExample
interval false 10000
Sets the health check interval (in milliseconds).
30000

Child Elements

ElementsDescriptionCardinality
httpClientConfig Optional HTTP client configuration for health probes (e.g., timeouts, TLS). If provided, it is used when creating the {@link HttpClient} via the router's client factory. 0..1