Skip to content
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

Limit ring hash max size to 4K #9709

Merged
merged 14 commits into from Nov 29, 2022
Merged

Limit ring hash max size to 4K #9709

merged 14 commits into from Nov 29, 2022

Conversation

apolcyn
Copy link
Contributor

@apolcyn apolcyn commented Nov 21, 2022

Implements grpc/proposal#338 for Java.

Note: a configuration option (preferable taking the form of a dial option, but possibly using a global) is left as a TODO.

cc @ejona86

@apolcyn apolcyn marked this pull request as ready for review November 21, 2022 22:16
@ejona86
Copy link
Member

ejona86 commented Nov 22, 2022

There's quite a few parts from grpc/proposal#338 missing, as the xds resource processing also has to be adjusted to pass down 8 MB when unset. That's mostly internal, so I think the biggest thing that is needed before merging is some sort of option to change the limit. That was the biggest concern with this change.

@apolcyn
Copy link
Contributor Author

apolcyn commented Nov 22, 2022

Sure we can add the option to this PR, but @ejona86 can you propose an API?

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Some editorial stuff and nits, but otherwise LGTM

xds/src/main/java/io/grpc/xds/RingHashOptions.java Outdated Show resolved Hide resolved
xds/src/main/java/io/grpc/xds/RingHashOptions.java Outdated Show resolved Hide resolved
xds/src/main/java/io/grpc/xds/RingHashOptions.java Outdated Show resolved Hide resolved
@ejona86 ejona86 merged commit a5f458a into grpc:master Nov 29, 2022
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Dec 1, 2022
@YifeiZhuang YifeiZhuang removed the TODO:backport PR needs to be backported. Removed after backport complete label Feb 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants