Hi,

The ramp-up, steady-state, and ramp-down times are defined to be 10, 30, and 10 
seconds respectively in the benchmark. You can change these values in the 
run.xml configuration file. First start the client like this:


docker run -dt --net=wsnet --name=faban_client --entrypoint=/bin/bash 
cloudsuite/web-serving:faban_client


Then you will need to run the series of commands that the bootstrap script for 
the client normally does. Among these you can change the values in run.xml. For 
example, you can create a script like this:


#!/bin/bash

WEB_SERVER_IP=$(docker inspect --format '{{ 
.NetworkSettings.Networks.wsnet.IPAddress }}' web_server)
LOAD_SCALE=10
RAMP_UP=10
RAMP_DOWN=10
STEADY_STATE=60

docker exec faban_client sh -c "/faban/master/bin/startup.sh"
docker exec faban_client sh -c "cd /web20_benchmark/build && java -jar 
Usergen.jar http://${WEB_SERVER_IP}:8080";
docker exec faban_client sh -c "sed -i 
's/<fa:scale.*/<fa:scale>${LOAD_SCALE}<\\/fa:scale>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 
's/<fa:rampUp.*/<fa:rampUp>${RAMP_UP}<\\/fa:rampUp>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 
's/<fa:rampDown.*/<fa:rampDown>${RAMP_DOWN}<\\/fa:rampDown>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 
's/<fa:steadyState.*/<fa:steadyState>${STEADY_STATE}<\\/fa:steadyState>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 
's/<host.*/<host>${WEB_SERVER_IP}<\\/host>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<port.*/<port>8080<\\/port>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 
's/<outputDir.*/<outputDir>\/faban\/output<\\/outputDir>/' 
/web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "cd /web20_benchmark && ant run"
docker exec faban_client sh -c "cat /faban/output/*/summary.xml"


I hope this helps.


Best,

Ivo

________________________________
From: Seyedhamid Mashhadi Moghaddam <[email protected]>
Sent: Tuesday, May 31, 2016 5:49 AM
To: [email protected]
Subject: Running benchmark for longer time

Hi All,

I was wondering whether it is possible to run web serving benchmark for 24 
hours. It is worth noting that I tried to increase steady time but some errors 
happened.

--
Regards,
Seyedhamid Mashhadi Moghaddam

Reply via email to