fuel-library/deployment/puppet/osnailyfacter/modular/memcached/memcached.pp
Sergii Golovatiuk 4bad49340d 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>
2015-04-03 08:51:33 +02:00

6 lines
121 B
Puppet

notice('MODULAR: memcached.pp')
class { 'memcached':
listen_ip => hiera('internal_address'),
max_memory => '50%',
}