-
Notifications
You must be signed in to change notification settings - Fork 200
http-netty: use DefaultLoadBalancer API's #3350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
http-netty: use DefaultLoadBalancer API's #3350
Conversation
#### Motivation We have been using the RoundRobinLoadBalancers API's for a while which give us the ability to switch the default back to RoundRobinLoadBalancer if we have an emergency. DefaultLoadBalancer has been the default now for quite a while so lets cut over to the new API's and get off the deprecated ones. #### Modifications Switch to the new API's. #### Result Less deprecated usages.
...ttp-netty/src/main/java/io/servicetalk/http/netty/DefaultSingleAddressHttpClientBuilder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't matter which order you would like to go with, this change lgtm. Thank you
6621488
to
21a3180
Compare
|
||
/** | ||
* {@link OutlierDetectorConfig} that disables all outlier detection. | ||
* @return the {@link OutlierDetectorConfig} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return the {@link OutlierDetectorConfig} | |
* @return the {@link OutlierDetectorConfig} that disables all outlier detection. |
* The configuration values can be used as a base layer for configuration and then modified using the | ||
* {@link OutlierDetectorConfig.Builder} constructor as follows: | ||
* <pre>{@code | ||
* OutlierDetectorConfig config = new OutlierDetectorConfig.Builder(disabled()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This copy constructor is not public
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, consider adding @link
or @see
to OutlierDetectorConfigs
from OutlierDetectorConfig
and OutlierDetectorConfig.Builder
javadoc
|
||
/** | ||
* {@link OutlierDetectorConfig} that only enables the default consecutive connection failure detection. | ||
* @return the {@link OutlierDetectorConfig} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return the {@link OutlierDetectorConfig} | |
* @return the {@link OutlierDetectorConfig} that only enables the default consecutive connection failure detection. |
* {@link OutlierDetectorConfig} that only enables the default consecutive connection failure detection. | ||
* @return the {@link OutlierDetectorConfig} | ||
*/ | ||
public static OutlierDetectorConfig l4Only() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any other name ideas for this one? WDYT about onlyConnectFailures()
? l4 might be a bit encryptive for some users
Motivation
We have been using the RoundRobinLoadBalancers API's for a while which give us the ability to switch the default back to RoundRobinLoadBalancer if we have an emergency. DefaultLoadBalancer has been the default now for quite a while so lets cut over to the new API's and get off the deprecated ones.
Modifications
Switch to the new API's.
Result
Less deprecated usages.