From 50dfb90e8dfa5b3ad4cec225324aaa1f3fffa9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa=20=28paulfantom=29?= Date: Thu, 27 Oct 2022 15:41:30 +0200 Subject: [PATCH] chart: tune TSDB for promscale usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Krupa (paulfantom) --- chart/Chart.yaml | 2 +- chart/values.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index fb10a665..135c7f66 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -12,7 +12,7 @@ keywords: - monitoring - tracing - opentelemetry -version: 17.4.0 +version: 17.5.0 # TODO(paulfantom): Enable after kubernetes 1.22 reaches EOL (2022-10-28) # kubeVersion: ">= 1.23.0" dependencies: diff --git a/chart/values.yaml b/chart/values.yaml index 589e0738..52adcec0 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -32,6 +32,17 @@ timescaledb-single: # PGBACKREST_REPO1_S3_KEY_SECRET backup: enabled: false + # Applying tuning to TimescaleDB as per + # https://docs.timescale.com/promscale/latest/recommendations/config-recomm/#database-configuration + patroni: + bootstrap: + dcs: + postgresql: + parameters: + checkpoint_timeout: 15min + bgwriter_delay: 10ms + bgwriter_lru_maxpages: 100000 + # synchronous_commit: "off" # TimescaleDB PVC sizes persistentVolumes: data: