Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#414 from grafana/chore/tsdb…
Browse files Browse the repository at this point in the history
…-add-multi-concurrency

tsdb: Add multi concurrency and max idle connections store gateway params
  • Loading branch information
aknuds1 authored Nov 2, 2021
2 parents 1b9c03d + 75ae394 commit ca0bdc6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions operations/mimir/tsdb.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,20 @@
'blocks-storage.bucket-store.index-header-lazy-loading-idle-timeout': '60m',

'blocks-storage.bucket-store.max-chunk-pool-bytes': 12 * 1024 * 1024 * 1024,

// We should keep a number of idle connections equal to the max "get" concurrency,
// in order to avoid re-opening connections continuously (this would be slower
// and fill up the conntrack table too).
//
// The downside of this approach is that we'll end up with an higher number of
// active connections to memcached, so we have to make sure connections limit
// set in memcached is high enough.
'blocks-storage.bucket-store.index-cache.memcached.max-get-multi-concurrency': 100,
'blocks-storage.bucket-store.chunks-cache.memcached.max-get-multi-concurrency': 100,
'blocks-storage.bucket-store.metadata-cache.memcached.max-get-multi-concurrency': 100,
'blocks-storage.bucket-store.index-cache.memcached.max-idle-connections': $.store_gateway_args['blocks-storage.bucket-store.index-cache.memcached.max-get-multi-concurrency'],
'blocks-storage.bucket-store.chunks-cache.memcached.max-idle-connections': $.store_gateway_args['blocks-storage.bucket-store.chunks-cache.memcached.max-get-multi-concurrency'],
'blocks-storage.bucket-store.metadata-cache.memcached.max-idle-connections': $.store_gateway_args['blocks-storage.bucket-store.metadata-cache.memcached.max-get-multi-concurrency'],
} +
$.blocks_chunks_caching_config +
$.blocks_metadata_caching_config +
Expand Down

0 comments on commit ca0bdc6

Please sign in to comment.