Daemonify xp in instance runner
This commit is contained in:
parent
dd16d6db03
commit
c989b3e516
1 changed files with 5 additions and 3 deletions
|
@ -10,7 +10,7 @@ INTERVAL=$3
|
||||||
SIZE=$4
|
SIZE=$4
|
||||||
ALLOWED_BOOTSTRAP=190
|
ALLOWED_BOOTSTRAP=190
|
||||||
ALLOWED_TIME=`expr $(expr ${COUNT} * ${INTERVAL}) / 1000 + ${ALLOWED_BOOTSTRAP}`
|
ALLOWED_TIME=`expr $(expr ${COUNT} * ${INTERVAL}) / 1000 + ${ALLOWED_BOOTSTRAP}`
|
||||||
echo "Will run for ${ALLOWED_TIME} (count=$COUNT, interval=$INTERVAL)"
|
echo "Will run for ${ALLOWED_TIME} (count=$1, interval=$2)"
|
||||||
|
|
||||||
# Create folders
|
# Create folders
|
||||||
docker run \
|
docker run \
|
||||||
|
@ -24,11 +24,12 @@ docker run \
|
||||||
docker run \
|
docker run \
|
||||||
--privileged \
|
--privileged \
|
||||||
--rm \
|
--rm \
|
||||||
|
-d \
|
||||||
--name "$XP_ID-server" \
|
--name "$XP_ID-server" \
|
||||||
-v `pwd`/shared:/home/donar/shared \
|
-v `pwd`/shared:/home/donar/shared \
|
||||||
-v `pwd`/log:/home/donar/log \
|
-v `pwd`/log:/home/donar/log \
|
||||||
registry.gitlab.inria.fr/qdufour/donar \
|
registry.gitlab.inria.fr/qdufour/donar \
|
||||||
${XP_NAME}-server &
|
${XP_NAME}-server
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
|
@ -36,12 +37,13 @@ sleep 10
|
||||||
docker run \
|
docker run \
|
||||||
--privileged \
|
--privileged \
|
||||||
--rm \
|
--rm \
|
||||||
|
-d \
|
||||||
--name "$XP_ID-client" \
|
--name "$XP_ID-client" \
|
||||||
-v `pwd`/res:/home/donar/res \
|
-v `pwd`/res:/home/donar/res \
|
||||||
-v `pwd`/shared:/home/donar/shared \
|
-v `pwd`/shared:/home/donar/shared \
|
||||||
-v `pwd`/log:/home/donar/log \
|
-v `pwd`/log:/home/donar/log \
|
||||||
registry.gitlab.inria.fr/qdufour/donar \
|
registry.gitlab.inria.fr/qdufour/donar \
|
||||||
${XP_NAME}-client $COUNT $INTERVAL $SIZE &
|
${XP_NAME}-client $COUNT $INTERVAL $SIZE
|
||||||
|
|
||||||
sleep $ALLOWED_TIME
|
sleep $ALLOWED_TIME
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue