-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Users should be able to configure max HTTP concurrent connections #27066
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@splunkericl PTAL at open-telemetry/opentelemetry-collector#8632. We are working towards moving |
open-telemetry/opentelemetry-collector#8632 is definitely better than what is proposed here. In the end we want to protect the otel collector host from running out of memory. |
I'm going to close this issue in favor of open-telemetry/opentelemetry-collector#8632?, as it looks like that would accomplish the goal here. Let me know if I misunderstood or if there's anything else to discuss though! |
Component(s)
receiver/splunkhec
Is your feature request related to a problem? Please describe.
As a user of splunk hec receiver, I want to be able to configure the max concurrent connections my http server can serve. This protects the server from being bombarded by requests and cause OOM.
As splunkhecreceiver uses
HTTPServerSettings
, which is shared inside the collector repo. This change will apply to any receivers that spawn a http server.Describe the solution you'd like
A new config option should be added in
HTTPServerSettings
:The number defaults to 0, which means no limit. If a number is set for this field, a rate limiting listener would be added.
New instrument should be added for the connection also. A gauge should be added to tracks the number of connections opened.
Describe alternatives you've considered
No response
Additional context
Limit Listener: https://pkg.go.dev/golang.org/x/net/netutil#LimitListener
The text was updated successfully, but these errors were encountered: