-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RoundRobinLoadBalancer
: increase visibility into health-checking (#…
…2182) Motivation: Currently, health-checking events are logged at `DEBUG` level and the failure cause is not propagated. Users have to change the logging level and reproduce in order to understand the root cause. Modifications: - Log each failed attempt to create a connection at `INFO` level for visibility; - Log at `WARN` level when the health-checking is triggered; - Retain the last cause that triggered health-checking inside `HealthCheck` state to use it for `toString()`; Result: Users see when a connectivity issue occurs, cause is logged and propagated for subsequent selection attempts if there are no other `ACTIVE` hosts.
- Loading branch information
1 parent
6fd32bb
commit fce6b3e
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters