Skip to content

Commit

Permalink
Adding store.limits for Receive pods in base template (#615)
Browse files Browse the repository at this point in the history
Signed-off-by: mzardab <[email protected]>
  • Loading branch information
moadz authored Oct 4, 2023
1 parent 95e9bd6 commit eb5bfce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/services/observatorium-metrics-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2085,6 +2085,8 @@ objects:
- --receive.grpc-compression=none
- --receive.hashrings-algorithm=${THANOS_RECEIVE_HASHRINGS_ALGORITHM}
- --receive.hashrings-file-refresh-interval=5s
- --store.limits.request-series=${THANOS_RECEIVE_REQUEST_SERIES_LIMIT}
- --store.limits.request-samples=${THANOS_RECEIVE_REQUEST_SAMPLES_LIMIT}
env:
- name: NAME
valueFrom:
Expand Down Expand Up @@ -4752,6 +4754,10 @@ parameters:
value: hashmod
- name: THANOS_RECEIVE_LIMIT_CONFIG
value: '{"write":{"default":{"request":{"samples_limit":0,"series_limit":0,"size_bytes_limit":0}},"global":{"max_concurrency":0}}}'
- name: THANOS_RECEIVE_REQUEST_SERIES_LIMIT
value: "0"
- name: THANOS_RECEIVE_REQUEST_SAMPLES_LIMIT
value: "0"
- name: THANOS_RULE_SYNCER_IMAGE
value: quay.io/observatorium/thanos-rule-syncer
- name: THANOS_RULE_SYNCER_IMAGE_TAG
Expand Down
2 changes: 2 additions & 0 deletions services/observatorium-metrics-template-overwrites.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ local thanosRuleSyncer = import './sidecars/thanos-rule-syncer.libsonnet';
'--receive.grpc-compression=none',
'--receive.hashrings-algorithm=${THANOS_RECEIVE_HASHRINGS_ALGORITHM}',
'--receive.hashrings-file-refresh-interval=5s',
'--store.limits.request-series=${THANOS_RECEIVE_REQUEST_SERIES_LIMIT}',
'--store.limits.request-samples=${THANOS_RECEIVE_REQUEST_SAMPLES_LIMIT}',
],
env+: s3EnvVars + [{
name: 'DEBUG',
Expand Down
2 changes: 2 additions & 0 deletions services/observatorium-metrics-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ local obs = import 'observatorium.libsonnet';
{ name: 'THANOS_RECEIVE_HASHRING_SERVICE_NAME', value: 'observatorium-thanos-receive-default' },
{ name: 'THANOS_RECEIVE_HASHRINGS_ALGORITHM', value: 'hashmod' },
{ name: 'THANOS_RECEIVE_LIMIT_CONFIG', value: std.manifestJsonMinified(defaultReceiveLimits) },
{ name: 'THANOS_RECEIVE_REQUEST_SERIES_LIMIT', value: '0' },
{ name: 'THANOS_RECEIVE_REQUEST_SAMPLES_LIMIT', value: '0' },
{ name: 'THANOS_RULE_SYNCER_IMAGE', value: 'quay.io/observatorium/thanos-rule-syncer' },
{ name: 'THANOS_RULE_SYNCER_IMAGE_TAG', value: 'main-2022-09-14-338f9ec' },
{ name: 'THANOS_RULER_CPU_LIMIT', value: '1' },
Expand Down

0 comments on commit eb5bfce

Please sign in to comment.