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

Update default channel pool options when creating grpc channels #887

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

jasonmreding
Copy link
Collaborator

What does this Pull Request accomplish?

Updates the channel pool so that by default it:

  • Does not limit the size of messages that can be sent across a channel.
  • Disables http proxy if it determines the target address is for the localhost. DNS lookups are not performed as part of this calculation for simplicity and performance for what is expected to be the most common scenarios.

Why should this Pull Request be merged?

This minimizes support issues with http proxies that are often difficult to diagnose.

What testing has been done?

  • Added unit tests for logic which determines whether an address string is for the localhost or not.
  • I manually tested with the http_proxy environment variable set before and after this change. I validated that example measurements fail to start successfully before the change (can't connect to discovery when trying to register themselves), and they start successfully after this change.

…nnel and will bypass proxies when target address is on the localhost.
Copy link

github-actions bot commented Sep 13, 2024

Test Results

    30 files  ±  0      30 suites  ±0   45m 25s ⏱️ + 6m 40s
   665 tests + 14     665 ✅ + 14      0 💤 ±0  0 ❌ ±0 
16 550 runs  +420  15 480 ✅ +420  1 070 💤 ±0  0 ❌ ±0 

Results for commit 56d048e. ± Comparison against base commit d67c244.

♻️ This comment has been updated with latest results.

@bkeryan bkeryan linked an issue Sep 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

@jasonmreding jasonmreding merged commit 4bb38e9 into main Sep 17, 2024
17 checks passed
@dixonjoel dixonjoel deleted the users/jreding/ChannelPool branch September 23, 2024 15:36
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.

GrpcChannelPool should configure unlimited max message size
3 participants