From 44e74b4c20e8e6562dae23931f5872a34364d554 Mon Sep 17 00:00:00 2001 From: derekwaynecarr Date: Wed, 2 Sep 2015 17:02:23 -0400 Subject: [PATCH] Disable swap memory on vagrant nodes to support qos properly --- cluster/vagrant/provision-minion.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/vagrant/provision-minion.sh b/cluster/vagrant/provision-minion.sh index 68c7ad6c0f9..cff40ae0428 100755 --- a/cluster/vagrant/provision-minion.sh +++ b/cluster/vagrant/provision-minion.sh @@ -155,6 +155,10 @@ grains: docker_opts: '$(echo "$DOCKER_OPTS" | sed -e "s/'/''/g")' EOF +# QoS support requires that swap memory is disabled on each of the minions +echo "Disable swap memory to ensure proper QoS" +swapoff -a + # we will run provision to update code each time we test, so we do not want to do salt install each time if ! which salt-minion >/dev/null 2>&1; then # Install Salt