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

[grpclb] Use a separate channel arg to enable load reporting filter #33465

Merged

Conversation

markdroth
Copy link
Member

This avoids overloading the GRPC_ARG_LB_POLICY_NAME channel arg, which is really intended for passing from the application to the client channel.

args_
.Set(GRPC_ARG_ADDRESS_IS_BACKEND_FROM_GRPCLB_LOAD_BALANCER,
is_backend_from_grpclb_load_balancer)
.Set(GRPC_ARG_GRPCLB_ENABLE_LOAD_REPORTING_FILTER, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

if is_backend_from_grpclb_load_balancer == false, i.e. if we're using fallback addresses, is it still correct to enable the load reporting filter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Arguably no, but that's the existing behavior, so I don't want to change it.

@markdroth markdroth merged commit 32a46a9 into grpc:master Jun 22, 2023
@markdroth markdroth deleted the grpclb_load_reporting_filter_channel_arg branch June 22, 2023 20:40
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Jun 23, 2023
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jul 13, 2023
…rpc#33465)

This avoids overloading the GRPC_ARG_LB_POLICY_NAME channel arg, which
is really intended for passing from the application to the client
channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bloat/none imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants