Increase swap size

While testing incoming release of eventlet 0.20.1 we've
discovered that it's increasing memory usage for processes
using eventlet. It has been reported upstream [1] but
aparently this is expected.

p-o-i scenario003 is pretty heavy in terms of memory. Before new
eventlet version it's already using ~700-800MB swap in my tests and
with new eventlet (not pushed to RDO Testing repo yet) it has failed
with out-of-memory problems from time to time.

With this patch, i'm increasing swap size from 2GB to 4GB to avoid
oom problems. Note that this may derive in performance issues if
we start having too much swap usage, but i haven't hit it in my
local tests.

[1] https://github.com/eventlet/eventlet/issues/412

Change-Id: If333ae62dbae3f597d2b14ae1dd4c174ecdf51fc
This commit is contained in:
Alfredo Moralejo 2017-05-23 13:14:08 +02:00
parent 1201ccbb3d
commit 06c2b1389a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export SCENARIO=${SCENARIO:-scenario001}
export MANAGE_PUPPET_MODULES=${MANAGE_PUPPET_MODULES:-true}
export MANAGE_REPOS=${MANAGE_REPOS:-true}
export ADD_SWAP=${ADD_SWAP:-true}
export SWAP_SIZE_GB=${SWAP_SIZE_GB:-2}
export SWAP_SIZE_GB=${SWAP_SIZE_GB:-4}
export HIERA_CONFIG=${HIERA_CONFIG:-${SCRIPT_DIR}/hiera/hiera.yaml}
export MANAGE_HIERA=${MANAGE_HIERA:-true}
export PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --color=false --test --trace --hiera_config ${HIERA_CONFIG} --logdest ${WORKSPACE}/puppet.log"