From 902516e272507bfcb3bec64b26a1d4523ac6b79b Mon Sep 17 00:00:00 2001 From: paulfantom Date: Wed, 25 Sep 2024 11:22:23 +0200 Subject: [PATCH] thanos: increase RF Signed-off-by: paulfantom --- .../receiveIngestor/ingestor-default-statefulSet.yaml | 4 ++-- .../datalake-metrics/manifests/receiveRouter/configmap.yaml | 2 +- .../manifests/receiveRouter/deployment.yaml | 4 ++-- apps/datalake-metrics/settings.yaml | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/datalake-metrics/manifests/receiveIngestor/ingestor-default-statefulSet.yaml b/apps/datalake-metrics/manifests/receiveIngestor/ingestor-default-statefulSet.yaml index 6f3e1a5dc..1f7d1928d 100644 --- a/apps/datalake-metrics/manifests/receiveIngestor/ingestor-default-statefulSet.yaml +++ b/apps/datalake-metrics/manifests/receiveIngestor/ingestor-default-statefulSet.yaml @@ -12,7 +12,7 @@ metadata: namespace: datalake-metrics spec: minReadySeconds: 0 - replicas: 2 + replicas: 3 selector: matchLabels: app.kubernetes.io/component: database-write-hashring @@ -70,7 +70,7 @@ spec: - --grpc-address=0.0.0.0:10901 - --http-address=0.0.0.0:10902 - --remote-write.address=0.0.0.0:19291 - - --receive.replication-factor=1 + - --receive.replication-factor=3 - --tsdb.path=/var/thanos/receive - --tsdb.retention=2d - --label=replica="$(NAME)" diff --git a/apps/datalake-metrics/manifests/receiveRouter/configmap.yaml b/apps/datalake-metrics/manifests/receiveRouter/configmap.yaml index 7194eebaf..3cc77397a 100644 --- a/apps/datalake-metrics/manifests/receiveRouter/configmap.yaml +++ b/apps/datalake-metrics/manifests/receiveRouter/configmap.yaml @@ -1,6 +1,6 @@ apiVersion: v1 data: - hashrings.json: '[{"endpoints": ["thanos-receive-ingestor-default-0.thanos-receive-ingestor-default.datalake-metrics.svc.cluster.local:10901", "thanos-receive-ingestor-default-1.thanos-receive-ingestor-default.datalake-metrics.svc.cluster.local:10901"], "hashring": "default", "tenants": [ ]}]' + hashrings.json: '[{"endpoints": ["thanos-receive-ingestor-default-0.thanos-receive-ingestor-default.datalake-metrics.svc.cluster.local:10901", "thanos-receive-ingestor-default-1.thanos-receive-ingestor-default.datalake-metrics.svc.cluster.local:10901", "thanos-receive-ingestor-default-2.thanos-receive-ingestor-default.datalake-metrics.svc.cluster.local:10901"], "hashring": "default", "tenants": [ ]}]' kind: ConfigMap metadata: name: hashring-config diff --git a/apps/datalake-metrics/manifests/receiveRouter/deployment.yaml b/apps/datalake-metrics/manifests/receiveRouter/deployment.yaml index e4a7ac111..653479fcf 100644 --- a/apps/datalake-metrics/manifests/receiveRouter/deployment.yaml +++ b/apps/datalake-metrics/manifests/receiveRouter/deployment.yaml @@ -9,7 +9,7 @@ metadata: name: thanos-receive-router namespace: datalake-metrics spec: - replicas: 1 + replicas: 3 selector: matchLabels: app.kubernetes.io/component: thanos-receive-router @@ -32,7 +32,7 @@ spec: - --grpc-address=0.0.0.0:10901 - --http-address=0.0.0.0:10902 - --remote-write.address=0.0.0.0:19291 - - --receive.replication-factor=1 + - --receive.replication-factor=3 - --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json - --label=replica="$(NAME)" - --label=receive="true" diff --git a/apps/datalake-metrics/settings.yaml b/apps/datalake-metrics/settings.yaml index 147bc7c0c..53770c866 100644 --- a/apps/datalake-metrics/settings.yaml +++ b/apps/datalake-metrics/settings.yaml @@ -31,7 +31,7 @@ objectStorageConfig: ingressAuthHTPasswdRef: THANOS_INGRESS_HTPASSWD receiveIngestor: - replicas: 2 + replicas: 3 retention: 2d resources: requests: @@ -41,7 +41,7 @@ receiveIngestor: # cpu: 700m # memory: 2Gi replicaLabels: ['replica', 'receive_replica'] - replicationFactor: 1 + replicationFactor: 3 serviceMonitor: true volumeClaimTemplate: spec: @@ -61,7 +61,7 @@ receiveRouter: # cpu: 300m # memory: 200Mi replicaLabels: ['replica', 'receive_replica'] - replicationFactor: 1 + replicationFactor: 3 store: replicas: 2