From 34b2fad770f502a35dd33d68d02b5797fff0c04e Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 2 Nov 2021 10:00:08 +0100 Subject: [PATCH] tsdb: Add multi concurrency and max idle connections store gateway params Signed-off-by: Arve Knudsen --- CHANGELOG.md | 6 ++++++ cortex/tsdb.libsonnet | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 877c0d3..f098c45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## master / unreleased +* [CHANGE] Store gateway: set `-blocks-storage.bucket-store.index-cache.memcached.max-get-multi-concurrency`, + `-blocks-storage.bucket-store.chunks-cache.memcached.max-get-multi-concurrency`, + `-blocks-storage.bucket-store.metadata-cache.memcached.max-get-multi-concurrency`, + `-blocks-storage.bucket-store.index-cache.memcached.max-idle-connections`, + `-blocks-storage.bucket-store.chunks-cache.memcached.max-idle-connections`, + `-blocks-storage.bucket-store.metadata-cache.memcached.max-idle-connections` to 100 #414 * [CHANGE] Update grafana-builder dependency: use $__rate_interval in qpsPanel and latencyPanel. #372 * [CHANGE] `namespace` template variable in dashboards now only selects namespaces for selected clusters. #311 * [CHANGE] Alertmanager: mounted overrides configmap to alertmanager too. #315 diff --git a/cortex/tsdb.libsonnet b/cortex/tsdb.libsonnet index 1ce3c02..eb76fa2 100644 --- a/cortex/tsdb.libsonnet +++ b/cortex/tsdb.libsonnet @@ -222,7 +222,17 @@ 'blocks-storage.bucket-store.index-header-lazy-loading-enabled': 'true', 'blocks-storage.bucket-store.index-header-lazy-loading-idle-timeout': '60m', + local indexMaxConcurrency = 100, + local chunksMaxConcurrency = 100, + local metaMaxConcurrency = 100, 'blocks-storage.bucket-store.max-chunk-pool-bytes': 12 * 1024 * 1024 * 1024, + 'blocks-storage.bucket-store.index-cache.memcached.max-get-multi-concurrency': indexMaxConcurrency, + 'blocks-storage.bucket-store.chunks-cache.memcached.max-get-multi-concurrency': chunksMaxConcurrency, + 'blocks-storage.bucket-store.metadata-cache.memcached.max-get-multi-concurrency': metaMaxConcurrency, + 'blocks-storage.bucket-store.index-cache.memcached.max-idle-connections': indexMaxConcurrency, + 'blocks-storage.bucket-store.chunks-cache.memcached.max-idle-connections': chunksMaxConcurrency, + 'blocks-storage.bucket-store.metadata-cache.memcached.max-idle-connections': metaMaxConcurrency, + } + $.blocks_chunks_caching_config + $.blocks_metadata_caching_config +