Skip to content
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

Closed

Conversation

timannguyen
Copy link
Contributor

@timannguyen timannguyen commented Oct 6, 2023

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 and telemetry

@timannguyen timannguyen requested review from a team and bogdandrutu October 6, 2023 17:26
@timannguyen timannguyen changed the title confighttp: add max_concurrent_connections to HTTPServerSettings [confighttp] add max_concurrent_connections to HTTPServerSettings Oct 6, 2023
@timannguyen
Copy link
Contributor Author

@dmitryax do you happen to know who has capacity to review this?

@splunkericl
Copy link
Contributor

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?

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 56 lines in your changes are missing coverage. Please review.

Files Coverage Δ
config/confighttp/confighttp.go 85.42% <16.66%> (-6.84%) ⬇️
config/confighttp/metrics.go 0.00% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

Copy link
Member

@dmitryax dmitryax left a 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:

  1. Limit config option
  2. 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"`
Copy link
Member

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.

@dmitryax
Copy link
Member

Let's hold off until discussion open-telemetry/opentelemetry-collector-contrib#27066 (comment) is resolved

@timannguyen
Copy link
Contributor Author

timannguyen commented Oct 20, 2023

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

Copy link
Contributor

github-actions bot commented Nov 4, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants