Skip to content

Commit

Permalink
tsdb: Use literal numbers instead of variables
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
  • Loading branch information
aknuds1 committed Nov 2, 2021
1 parent e751ecc commit e3956bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cortex/tsdb.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,13 @@
'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-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 e3956bd

Please sign in to comment.