Skip to content

A110: Child Channel Options#529

Open
AgraVator wants to merge 19 commits into
grpc:masterfrom
AgraVator:child-channel-plugins
Open

A110: Child Channel Options#529
AgraVator wants to merge 19 commits into
grpc:masterfrom
AgraVator:child-channel-plugins

Conversation

@AgraVator

Copy link
Copy Markdown
Contributor

No description provided.

@markdroth markdroth changed the title A110: Child Channel Plugins A110: Child Channel Options Dec 24, 2025

@markdroth markdroth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The overall design looks good, but I think the doc needs work.

My main concern is that we need a much better description of the overall design in a language-agnostic way, rather than just saying that we have a different design for each language. It's true that each language has its own APIs for how per-channel options are set, but the overall goal here is still to have a way to pass a set of options to be used in child channels. The semantics for that should be the same in all languages.

Please let me know if you have any questions. Thanks!

Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
@AgraVator
AgraVator requested a review from markdroth December 29, 2025 15:56
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md

@markdroth markdroth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is looking much better!

Please let me know if you have any questions. Thanks!

Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md Outdated

@markdroth markdroth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is looking really good! The only really substantive remaining comment from me is the one from my last review pass about making sure we can plumb this into channels created via an LB policy or resolver.

Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
@AgraVator
AgraVator requested a review from ejona86 March 25, 2026 09:24
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md
@AgraVator
AgraVator requested review from easwars and markdroth May 12, 2026 06:23
Comment thread A110-child-channel-plugins.md
Comment thread A110-child-channel-plugins.md Outdated
@AgraVator
AgraVator requested a review from easwars June 15, 2026 15:21
Comment thread A110-child-channel-plugins.md Outdated

@markdroth markdroth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just one small remaining comment, otherwise looks great!

Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md Outdated
Comment thread A110-child-channel-plugins.md
@AgraVator
AgraVator requested a review from ejona86 July 7, 2026 07:58
AgraVator added a commit to grpc/grpc-java that referenced this pull request Jul 7, 2026
options:

* Java: When an LB policy creates an out-of-band (OOB) child channel via
`LoadBalancer.Helper` (e.g., `createResolvingOobChannelBuilder()` or

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the current ManagedChannelBuilder.childChannelConfigurator() API, I suspect we'd want "whatever is calling build() should be applying the child config." Otherwise, that component can't compose its own configuration to child channels; if it calls childChannelConfigurator() it will overwrite any previous configuration.

Either we could move the responsibility to whatever component calls build(), or we could have managedChannelBuilder.childChannelConfigurator() append the provided configurator. It currently overwrites the previous configurator. (Note that we don't have to have a list, we could just make a new configurator that calls the old configurator first, then the newly-passed configurator.)

Note that Go and C's approaches here allow a component to supplement the child configuration; only Java and only createResolvingOobChannelBuilder() has the limitation.

@kannanjgithub, thoughts?

@AgraVator AgraVator Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we could do something like below for composition

@Override
public ManagedChannelImplBuilder childChannelConfigurator(ChannelConfigurator channelConfigurator) {
  checkNotNull(channelConfigurator, "channelConfigurator");
  ChannelConfigurator previous = this.channelConfigurator;
  this.channelConfigurator = builder -> {
    previous.configureChannelBuilder(builder);
    channelConfigurator.configureChannelBuilder(builder);
  };
  return this;
}

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.

8 participants