Limit memcached to 50% of RAM instead of 95%

memcached allocates too much RAM as under heavy load conditions.
memcached should not grow higher than 50% of RAM. OOM may kill the
process when server run out of free RAM.

Change-Id: I9b4b0597bcc3e5aadb7905e16ac160d5bebfd00d
Closes-Bug: 1439882
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
This commit is contained in:
Sergii Golovatiuk 2015-04-03 01:02:58 +02:00
parent 8a921d9494
commit 4bad49340d
2 changed files with 2 additions and 6 deletions

View File

@ -43,11 +43,6 @@ class openstack::horizon (
$servername = $::hostname,
) {
# class { 'memcached':
# listen_ip => $cache_server_ip,
# tcp_port => $cache_server_port,
# udp_port => $cache_server_port,
# }
if $debug { #syslog and nondebug case
#We don't realy want django debug, it is too verbose.
$django_debug = false

View File

@ -1,4 +1,5 @@
notice('MODULAR: memcached.pp')
class { 'memcached':
listen_ip => hiera('internal_address'),
listen_ip => hiera('internal_address'),
max_memory => '50%',
}