Skip to content

Commit

Permalink
Up metadata connection limits
Browse files Browse the repository at this point in the history
  • Loading branch information
gouthamve authored Mar 3, 2021
1 parent 8e8d986 commit 61afd56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cortex/memcached.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ memcached {
// Save memory by more tightly provisioning memcached chunks.
memory_limit_mb: 6 * 1024,
overprovision_factor: 1.05,
connection_limit: 4096,

local container = $.core.v1.container,

// Raise connection limits now our clusters are bigger.
memcached_container+::
container.withArgsMixin(['-c 4096']),
}
else {},

Expand All @@ -68,6 +65,7 @@ memcached {
$.memcached {
name: 'memcached-metadata',
max_item_size: '%dm' % [$._config.memcached_metadata_max_item_size_mb],
connection_limit: 4096,

// Metadata cache doesn't need much memory.
memory_limit_mb: 512,
Expand Down

0 comments on commit 61afd56

Please sign in to comment.