Skip to content

Commit

Permalink
Adding store.enable-index-header-lazy-reader to store-gw template. (#696
Browse files Browse the repository at this point in the history
)

Reference: https://thanos.io/tip/components/store.md/

Signed-off-by: Moad Zardab <[email protected]>
  • Loading branch information
moadz authored Nov 20, 2024
1 parent e98a151 commit abbb6e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/services/observatorium-metrics-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -3169,6 +3170,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -3426,6 +3428,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -3683,6 +3686,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -3940,6 +3944,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -4197,6 +4202,7 @@ objects:
- --store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}
- --store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}
- --max-time=${THANOS_STORE_MAX_TIME}
- --store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}
env:
- name: OBJSTORE_CONFIG
valueFrom:
Expand Down Expand Up @@ -4615,6 +4621,8 @@ parameters:
value: "5"
- name: THANOS_STORE_MAX_TIME
value: "9999-12-31T23:59:59Z"
- name: THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER
value: "false"
- name: CONFIGMAP_RELOADER_IMAGE
value: quay.io/openshift/origin-configmap-reloader
- name: CONFIGMAP_RELOADER_IMAGE_TAG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ local thanosRuleSyncer = import './sidecars/thanos-rule-syncer.libsonnet';
'--store.grpc.touched-series-limit=${THANOS_STORE_SERIES_TOUCHED_LIMIT}',
'--store.grpc.series-sample-limit=${THANOS_STORE_SERIES_SAMPLE_LIMIT}',
'--max-time=${THANOS_STORE_MAX_TIME}',
'--store.enable-index-header-lazy-reader=${THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER}',
],
} else c
for c in super.containers
Expand Down
1 change: 1 addition & 0 deletions services/observatorium-metrics-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ local obs = import 'observatorium.libsonnet';
{ name: 'THANOS_STORE_MEMORY_REQUEST', value: '1Gi' },
{ name: 'THANOS_STORE_REPLICAS', value: '5' },
{ name: 'THANOS_STORE_MAX_TIME', value: '9999-12-31T23:59:59Z' },
{ name: 'THANOS_STORE_ENABLE_INDEX_HEADER_LAZY_READER', value: 'false' },
{ name: 'CONFIGMAP_RELOADER_IMAGE', value: 'quay.io/openshift/origin-configmap-reloader' },
{ name: 'CONFIGMAP_RELOADER_IMAGE_TAG', value: '4.5.0' },
],
Expand Down

0 comments on commit abbb6e8

Please sign in to comment.