Skip to content

Commit

Permalink
thanos: increase RF
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <[email protected]>
  • Loading branch information
paulfantom committed Sep 25, 2024
1 parent c07674c commit 902516e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
namespace: datalake-metrics
spec:
minReadySeconds: 0
replicas: 2
replicas: 3
selector:
matchLabels:
app.kubernetes.io/component: database-write-hashring
Expand Down Expand Up @@ -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)"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions apps/datalake-metrics/manifests/receiveRouter/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions apps/datalake-metrics/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ objectStorageConfig:
ingressAuthHTPasswdRef: THANOS_INGRESS_HTPASSWD

receiveIngestor:
replicas: 2
replicas: 3
retention: 2d
resources:
requests:
Expand All @@ -41,7 +41,7 @@ receiveIngestor:
# cpu: 700m
# memory: 2Gi
replicaLabels: ['replica', 'receive_replica']
replicationFactor: 1
replicationFactor: 3
serviceMonitor: true
volumeClaimTemplate:
spec:
Expand All @@ -61,7 +61,7 @@ receiveRouter:
# cpu: 300m
# memory: 200Mi
replicaLabels: ['replica', 'receive_replica']
replicationFactor: 1
replicationFactor: 3

store:
replicas: 2
Expand Down

0 comments on commit 902516e

Please sign in to comment.