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

api: add ConnectionPoolSettings into ProxyProtocolUpstreamTransport #37177

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lambdai
Copy link
Contributor

@lambdai lambdai commented Nov 15, 2024

Commit Message:
Add ConnectionPoolSettings in proxy_protocol upstream transport socket.
It customizes the behavior of connection pool.

Additional Description:
Risk Level: LOW
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
Fixes #37126
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #37177 was opened by lambdai.

see: more, trace.

Context: envoyproxy#37126

ConnectionPoolSettings in proxy_protocol upstream socket customizes
the behavior of connection pool.

Signed-off-by: Yuchen Dai <[email protected]>
@lambdai
Copy link
Contributor Author

lambdai commented Nov 15, 2024

/retest

Comment on lines 28 to 34
// Control the connection pool settings for PROXY protocol socket.
// [#not-implemented-hide:]
ConnectionPoolSettings connection_pool_settings = 3;
}

// ConnectionPool settings for PROXY protocol socket.
message ConnectionPoolSettings {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think "connection pool" is the right term here? These are socket settings? Or just ProxyProtocolSettings? Can these settings just be inlined?

/wait

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are impacting envoy conn pool setting for proxy_procotol transport socket.

https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/connection_pooling#number-of-connection-pools

I put here because the ConnectionPoolSettings is in the uptream_proxy_protocol package.
Do you mean inline in ProxyProtocolUpstreamTransport?
Sure

Copy link
Member

Choose a reason for hiding this comment

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

I think I would just inline the settings. The the user the fact that they impact connection pool sharing is an implementation details. I would just document as appropriate what each setting does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Does the new proto align with your opinion?

Signed-off-by: Yuchen Dai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProxyProtocolUpstream Transport socket should support connection pool setting
2 participants