diff options
author | drebs <drebs@leap.se> | 2016-06-13 09:27:23 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-06-22 17:51:18 -0300 |
commit | e8d3f659fbd15f7024eba0a9316634fde31b6bdc (patch) | |
tree | 4c8a851fb3efab486e1a6e9611e7b351db5bfc06 /scripts/docker/Makefile | |
parent | e433353b877f9cfc735b4368d92b80d091264c65 (diff) |
[test] limit cpu sets for docker perf test containers
Diffstat (limited to 'scripts/docker/Makefile')
-rw-r--r-- | scripts/docker/Makefile | 2 |
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)" \ |