-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[confighttp] add max_concurrent_connections to HTTPServerSettings #8633
Conversation
@dmitryax do you happen to know who has capacity to review this? |
f2f9b96
to
499d61c
Compare
adding @atoulme as well. We want to introduce this for splunkhecreceiver but this will modify the httpserversettings for every component that uses it. Do you know who is the right POC to consult about this change? |
499d61c
to
6a87a54
Compare
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
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.
Please break this PR down:
- Limit config option
- Telemetry (it has to be emitted in both opencensus and otel as all other metrics)
// Enabled is set to enable opencensus metrics | ||
Enabled bool `mapstructure:"enabled"` | ||
// ExtraAttributes is the extra attributes for metrics | ||
ExtraAttributes map[string]string `mapstructure:"extra_attributes"` |
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.
Why do you need this parameter? Collector provides a way to add extra resource attributes to the emitted metrics in the service::telemetry::resource
config.
Let's hold off until discussion open-telemetry/opentelemetry-collector-contrib#27066 (comment) is resolved |
it looks that mem is what we are expecting. this would overall resolve the underlying issue. i've talked to @splunkericl. we're likely to close this out in favor of #8632 |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description:
Adding
max_concurrent_connections
to allow http server to limits http connection. this protects the server from being bombarded by tons of connection in-process and result in OOM.telemetry is an optional metrics to instrument httpserver with opencensus.
Link to tracking Issue:
open-telemetry/opentelemetry-collector-contrib#27066
Testing:
unit test
Documentation:
updated confighttp README with
max_concurrent_connections
andtelemetry