Repository navigation
Restore connection-level limiter - #5372
Merged
michel-laterman merged 4 commits intoAug 29, 2025
Merged
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
michel-laterman
force-pushed
the
fix/restore-conn-limiter
branch
from
August 28, 2025 19:46
59626ad to
d3641d8
Compare
blakerouse
reviewed
Aug 29, 2025
blakerouse
left a comment
Contributor
There was a problem hiding this comment.
Overall this looks good, but unit tests for the listener would be great. Could you add those?
added 2 commits
August 29, 2025 12:01
|
blakerouse
approved these changes
Aug 29, 2025
blakerouse
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the added unit tests. Looks good.
Contributor
|
@Mergifyio backport 8.17 8.18 8.19 9.0 9.1 |
Contributor
✅ Backports have been createdDetails
|
mergify Bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go
mergify Bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go
This was referenced Aug 29, 2025
mergify Bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # go.mod # internal/pkg/api/server.go
6 tasks done
mergify Bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go
mergify Bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # go.mod # internal/pkg/api/server.go
This was referenced Aug 29, 2025
michel-laterman
added a commit
that referenced
this pull request
Aug 29, 2025
* Restore connection-level limiter (#5372) Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # go.mod # internal/pkg/api/server.go * Fix merge --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
michel-laterman
added a commit
that referenced
this pull request
Aug 30, 2025
* Restore connection-level limiter (#5372) Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # go.mod # internal/pkg/api/server.go * Fix merge --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
michel-laterman
added a commit
that referenced
this pull request
Aug 30, 2025
* Restore connection-level limiter (#5372) Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go * Fix merge * Fix file --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
michel-laterman
added a commit
that referenced
this pull request
Sep 4, 2025
* Restore connection-level limiter (#5372) Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go * Fix merge * Fix file --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
michel-laterman
added a commit
that referenced
this pull request
Sep 4, 2025
* Restore connection-level limiter (#5372) Restore connection level limiter to prevent OOM incidents. (removed in #4402) This limiter is used in addition to the request-level throttle so that once our in-flight requests reaches max_connections a 429 is returned, but if the total connections the server uses is over max_connections*1.1 the server drops the connection before the TLS handshake. (cherry picked from commit 39199ef) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/pkg/api/server.go * Fix merge --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
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.
What is the problem this PR solves?
Use of only the throttle middleware can result in OOM incidents under high load.
How does this PR solve the problem?
Restore connection level limiter to prevent OOM incidents. (removed in #4402)
This limiter is used in addition to the request-level throttle so that once
our in-flight requests reaches max_connections a 429 is returned, but if the
total connections the server uses is over max_connections*1.1 the server drops
the connection before the TLS handshake.
Design Checklist
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool