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
|
||||
ALLOWED_BOOTSTRAP=190
|
||||
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
|
||||
docker run \
|
||||
|
@ -24,11 +24,12 @@ docker run \
|
|||
docker run \
|
||||
--privileged \
|
||||
--rm \
|
||||
-d \
|
||||
--name "$XP_ID-server" \
|
||||
-v `pwd`/shared:/home/donar/shared \
|
||||
-v `pwd`/log:/home/donar/log \
|
||||
registry.gitlab.inria.fr/qdufour/donar \
|
||||
${XP_NAME}-server &
|
||||
${XP_NAME}-server
|
||||
|
||||
sleep 10
|
||||
|
||||
|
@ -36,12 +37,13 @@ sleep 10
|
|||
docker run \
|
||||
--privileged \
|
||||
--rm \
|
||||
-d \
|
||||
--name "$XP_ID-client" \
|
||||
-v `pwd`/res:/home/donar/res \
|
||||
-v `pwd`/shared:/home/donar/shared \
|
||||
-v `pwd`/log:/home/donar/log \
|
||||
registry.gitlab.inria.fr/qdufour/donar \
|
||||
${XP_NAME}-client $COUNT $INTERVAL $SIZE &
|
||||
${XP_NAME}-client $COUNT $INTERVAL $SIZE
|
||||
|
||||
sleep $ALLOWED_TIME
|
||||
|
||||
|
|
Loading…
Reference in a new issue