-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable RRLB health-checking for
DiscoveryStrategy.ON_NEW_CONNECTION
(
#2772) Motivation: When `DiscoveryStrategy.ON_NEW_CONNECTION` mode is used, LB will have a single unresolved entry, the actual IP address will be resolved by a `ConnectionFactory`. We should not run health-checking logic in this case because it can lead to "all unhealthy" state. We should run a new connection attempt all the time and fail with an exception from transport. Modifications: - Configure a custom `loadBalancerFactory` on a client builder when `DiscoveryStrategy.ON_NEW_CONNECTION` is used; Result: No health-checking for an unresolved address when `DiscoveryStrategy.ON_NEW_CONNECTION` is used.
- Loading branch information
1 parent
112fb07
commit 3266749
Showing
2 changed files
with
23 additions
and
0 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
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