summaryrefslogtreecommitdiff
path: root/scripts/docker/Makefile
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-06-13 09:27:23 -0300
committerdrebs <drebs@leap.se>2016-06-22 17:51:18 -0300
commite8d3f659fbd15f7024eba0a9316634fde31b6bdc (patch)
tree4c8a851fb3efab486e1a6e9611e7b351db5bfc06 /scripts/docker/Makefile
parente433353b877f9cfc735b4368d92b80d091264c65 (diff)
[test] limit cpu sets for docker perf test containers
Diffstat (limited to 'scripts/docker/Makefile')
-rw-r--r--scripts/docker/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/docker/Makefile b/scripts/docker/Makefile
index 9d669097..4fa2e264 100644
--- a/scripts/docker/Makefile
+++ b/scripts/docker/Makefile
@@ -43,6 +43,7 @@ run-server:
fi
docker run \
--memory="$(MEMORY)" \
+ --cpuset-cpus=0 \
--env="SOLEDAD_REMOTE=$(SOLEDAD_REMOTE)" \
--env="SOLEDAD_BRANCH=$(SOLEDAD_BRANCH)" \
--env="SOLEDAD_PRELOAD_NUM=$(SOLEDAD_PRELOAD_NUM)" \
@@ -95,6 +96,7 @@ run-client-perf:
server_ip=`./helper/get-container-ip.sh $${container_id}`; \
docker run -t -i \
--memory="$(MEMORY)" \
+ --cpuset-cpus=1 \
--cidfile=$(CONTAINER_ID_FILE)-perf \
--env="SOLEDAD_REMOTE=$(SOLEDAD_REMOTE)" \
--env="SOLEDAD_BRANCH=$(SOLEDAD_BRANCH)" \