4. Monitoring, Logging and Statistics

balancerHealthMonitor

Version

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 result: If a health URL is configured for the node, it performs an HTTP request against that endpoint. Otherwise, it performs a TCP check against the node's host and port. This ensures the load balancer always has up-to-date status for routing decisions.

Example:

health monitor example

Attributes

NameRequiredDefaultDescriptionExamples
intervalfalse10000Sets the health check interval (in milliseconds).30000

Child Elements

ElementDescriptionCardinality
httpClientConfigConfiguration container for Membrane's HTTP client. Allows defining proxy, connection, authentication, TLS, and retry behavior. Can be used as a reusable bean and referenced via . Most of its sub-elements are optional.0..1

Can be used in