Skip to content

Conversation

@vparfonov
Copy link

@vparfonov vparfonov commented Oct 10, 2025

This PR adds a new HttpClient::new_with_connection_config constructor to expose pool_idle_timeout and pool_max_idle_per_host settings from the underlying Hyper client. This new constructor is now used by the Splunk and Elasticsearch sinks to pass their specific connection configurations.
By default Vector used:

pool_config: pool::Config {
                idle_timeout: Some(Duration::from_secs(90)),
                max_idle_per_host: std::usize::MAX,
            }, 

Sample of configuration:

[sinks.my_sink_id]
inputs = ["local_logs"]
type = "splunk_hec_logs"
endpoint = "http://splunk-hec-splunk"
default_token = "xxxx"
connection.idle_timeout_secs = 30
connection.pool_idle_per_host = 50 

@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vparfonov
Once this PR has been reviewed and has the lgtm label, please assign alanconway for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot requested a review from syedriko October 10, 2025 15:19
@jcantrill
Copy link
Member

you should additionally add this config to the other http transport we support:

  • loki
  • http
  • aws cloudwatch
  • aws s3
  • opentelemetry
  • azure?
  • GCP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants