Skip to content

Conversation

bryce-anderson
Copy link
Contributor

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.

 #### 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.
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a 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


/**
* {@link OutlierDetectorConfig} that disables all outlier detection.
* @return the {@link OutlierDetectorConfig}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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())
Copy link
Member

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

Copy link
Member

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}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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() {
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants