-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Reenable HTTP/2 for internal communication #26895
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
base: master
Are you sure you want to change the base?
Conversation
Lower number of TCP/IP connections for HTTP/2
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR reenables HTTP/2 for internal communication by setting the default to enabled in the InternalCommunicationConfig, updating the internal HTTP client setup to adjust maxConnectionsPerServer based on the HTTP/2 flag, and revising tests to align with the new defaults and explicit property mappings. Sequence diagram for internal HTTP client configuration based on HTTP/2 flagsequenceDiagram
participant CoordinatorModule
participant InternalCommunicationConfig
participant HttpClientConfig
CoordinatorModule->>InternalCommunicationConfig: buildConfigObject()
InternalCommunicationConfig-->>CoordinatorModule: http2Enabled (default true)
CoordinatorModule->>HttpClientConfig: withConfigDefaults()
alt HTTP/2 enabled
CoordinatorModule->>HttpClientConfig: setMaxConnectionsPerServer(64)
else HTTP/2 disabled
CoordinatorModule->>HttpClientConfig: setMaxConnectionsPerServer(250)
end
Class diagram for updated InternalCommunicationConfigclassDiagram
class InternalCommunicationConfig {
- String sharedSecret
- boolean http2Enabled = true
- boolean httpsRequired
- String keyStorePath
- String keyStorePassword
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Started benchmark workflow for this PR with test type =
|
Started benchmark workflow for this PR with test type =
|
Lower number of TCP/IP connections for HTTP/2
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:
Summary by Sourcery
Enable HTTP/2 for internal Trino communication by default and adjust connection limits accordingly
Enhancements: