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:
parent
8a921d9494
commit
4bad49340d
@ -43,11 +43,6 @@ class openstack::horizon (
|
|||||||
$servername = $::hostname,
|
$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
|
if $debug { #syslog and nondebug case
|
||||||
#We don't realy want django debug, it is too verbose.
|
#We don't realy want django debug, it is too verbose.
|
||||||
$django_debug = false
|
$django_debug = false
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
notice('MODULAR: memcached.pp')
|
notice('MODULAR: memcached.pp')
|
||||||
class { 'memcached':
|
class { 'memcached':
|
||||||
listen_ip => hiera('internal_address'),
|
listen_ip => hiera('internal_address'),
|
||||||
|
max_memory => '50%',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user