router: add experimental HTTP/1.1 kTLS body-splice fast path#45581
Open
agrawroh wants to merge 1 commit into
Open
router: add experimental HTTP/1.1 kTLS body-splice fast path#45581agrawroh wants to merge 1 commit into
agrawroh wants to merge 1 commit into
Conversation
|
CC @envoyproxy/coverage-shephards: FYI only for changes made to |
93dba8f to
dcbb415
Compare
Relay a Content-Length HTTP/1.1 body between a kernel-TLS upstream and a
plaintext or kernel-TLS peer with an in-kernel splice(), bypassing the
userspace buffers and codec filter chains in both directions (download and
upload). Dark by default behind the runtime flag
envoy.reloadable_features.http1_ktls_body_splice and observable via the
cluster.<name>.http1_ktls_splice.{engaged,abandoned,completed,truncated}
counters.
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
dcbb415 to
e6e3275
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds an experimental, disabled-by-default HTTP/1.1 kTLS body-splice fast path. When eligible, Envoy can relay a
Content-Lengthrequest or response body with in-kernelsplice(), bypassing user-space body buffers and codec filter-chain body processing while preserving HTTP/1.1 keep-alive reuse.The fast path is guarded by
envoy.reloadable_features.http1_ktls_body_spliceand only engages for single HTTP/1.1 socket legs with trusted upstream kTLS and a plaintext or installed-kTLS peer. Per-cluster lifecycle counters trackengaged,abandoned,completed, andtruncatedsplice decisions.Commit Message: router: add experimental HTTP/1.1 kTLS body-splice fast path
Additional Description: Added an experimental, disabled-by-default HTTP/1.1 kTLS body-splice fast path.
Risk Level: Low
Testing: Added Unit + Integration Tests
Docs Changes: Added
Release Notes: Added