From 6aa5f04a581a6bb6e4f35ccca2ef6e2c316d4d73 Mon Sep 17 00:00:00 2001 From: Tuomo Date: Mon, 23 Sep 2024 09:28:10 +0300 Subject: [PATCH] add max_conns_per_host config to helm chart --- deploy/k8s/chart/templates/configmap.yaml | 1 + deploy/k8s/chart/values.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/deploy/k8s/chart/templates/configmap.yaml b/deploy/k8s/chart/templates/configmap.yaml index 1cde27f..d42bdf3 100644 --- a/deploy/k8s/chart/templates/configmap.yaml +++ b/deploy/k8s/chart/templates/configmap.yaml @@ -17,6 +17,7 @@ data: metadata: {{ .Values.config.metadata }} log_response_errors: {{ .Values.config.log_response_errors }} max_connection_duration: {{ .Values.config.max_connection_duration }} + max_conns_per_host: {{ .Values.config.max_conns_per_host }} {{- if .Values.config.auth.enabled }} auth: egress: diff --git a/deploy/k8s/chart/values.yaml b/deploy/k8s/chart/values.yaml index 3341f00..772638c 100644 --- a/deploy/k8s/chart/values.yaml +++ b/deploy/k8s/chart/values.yaml @@ -87,6 +87,11 @@ config: # Use 0 to keep them indefinitely # (env: `CT_MAX_CONN_DURATION`) max_connection_duration: 0s + # -- This parameter sets the limit for the count of outgoing concurrent connections to Cortex / Mimir. + # By default it's 64 and if all of these connections are busy you will get errors when pushing from Prometheus. + # If your `target` is a DNS name that resolves to several IPs then this will be a per-IP limit. + # (env: `CT_MAX_CONNS_PER_HOST`) + max_conns_per_host: 64 # Authentication (optional) auth: