Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 61afd56

Browse files
authored
Up metadata connection limits
1 parent 8e8d986 commit 61afd56

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cortex/memcached.libsonnet

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,9 @@ memcached {
5454
// Save memory by more tightly provisioning memcached chunks.
5555
memory_limit_mb: 6 * 1024,
5656
overprovision_factor: 1.05,
57+
connection_limit: 4096,
5758

5859
local container = $.core.v1.container,
59-
60-
// Raise connection limits now our clusters are bigger.
61-
memcached_container+::
62-
container.withArgsMixin(['-c 4096']),
6360
}
6461
else {},
6562

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

7270
// Metadata cache doesn't need much memory.
7371
memory_limit_mb: 512,

0 commit comments

Comments
 (0)