From e8d3f659fbd15f7024eba0a9316634fde31b6bdc Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 13 Jun 2016 09:27:23 -0300 Subject: [test] limit cpu sets for docker perf test containers --- scripts/docker/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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)" \ -- cgit v1.2.3