tfcache-comparison
Details
reduce.sh 3(+1 -2)
diff --git a/reduce.sh b/reduce.sh
index 5dd6121..a959893 100644
--- a/reduce.sh
+++ b/reduce.sh
@@ -37,8 +37,7 @@ for version in $versions; do
if [[ $host = "localhost" ]]; then
java $JAVA_OPTS -jar adapters/Cache/target/Cache-1.0.jar applications/output/$application-$version-${user}user-${execution}execution-cache applications/output/hits-distribution.csv $application,$version,$user,$execution,
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison java $JAVA_OPTS -jar adapters/Cache/target/Cache-1.0.jar applications/output/$application-$version-${user}user-${execution}execution-cache applications/output/hits-distribution.csv $application,$version,$user,$execution," >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison java $JAVA_OPTS -jar adapters/Cache/target/Cache-1.0.jar applications/output/$application-$version-${user}user-${execution}execution-cache applications/output/hits-distribution.csv $application,$version,$user,$execution," >/dev/tcp/$host/5000; do sleep 5; done
fi
done
done
run.sh 16(+6 -10)
diff --git a/run.sh b/run.sh
index 3c6a7e8..3d68646 100644
--- a/run.sh
+++ b/run.sh
@@ -29,7 +29,7 @@ for user in 1 10 50; do
else
existing_applications=$applications
fi
- echo "$(date '+%F %T') Running $execution execution with $user users of applications $existing_applications"
+ echo "$(date '+%F %T') Sampling with $user users in $version version of the applications $existing_applications"
for application in $existing_applications; do
application=${application%/}
for execution in {1..10}; do
@@ -39,16 +39,14 @@ for user in 1 10 50; do
export TRACER_ENABLE=false
docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison export TRACER_ENABLE=false && docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison export TRACER_ENABLE=false && docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000; do sleep 5; done
fi
while ! curl -s $host:8080 > /dev/null; do sleep 5; done
java $JAVA_OPTS -jar adapters/RequestsSimulator/target/RequestsSimulator-1.0.jar --profile=applications/workloads/$application.json --time=1500000 --users=$user --log=applications/workloads/$application-workload-${user}user.json --throughput=applications/output/$application-workload-${user}user-requests --host=$host > applications/output/$application-workload-${user}user-simulator.log 2>&1
if [[ $host = "localhost" ]]; then
docker-compose -f applications/uncached/$application/docker-compose.yml down -v
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000; do sleep 5; done
sleep 11
fi
fi
@@ -60,16 +58,14 @@ for user in 1 10 50; do
export CACHE_EVENTS=/caching-approaches-comparison/applications/output/$application-$version-${user}user-${execution}execution-cache
docker-compose -f applications/cached/$version/$application/docker-compose.yml up -d --build
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison export CACHE_EVENTS=/caching-approaches-comparison/applications/output/$application-$version-${user}user-${execution}execution-cache && docker-compose -f applications/cached/$version/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison export CACHE_EVENTS=/caching-approaches-comparison/applications/output/$application-$version-${user}user-${execution}execution-cache && docker-compose -f applications/cached/$version/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000; do sleep 5; done
fi
while ! curl -s $host:8080 > /dev/null; do sleep 5; done
- java $JAVA_OPTS -jar adapters/RequestsSimulator/target/RequestsSimulator-1.0.jar --profile=applications/workloads/$application.json --execute=applications/workloads/$application-workload-${user}user.json --throughput=applications/output/$application-$version-${user}user-${execution}execution-requests --host=$host > applications/output/$application-$version-${user}user-${execution}execution-simulator.log 2>&1
+ timeout 3000 java $JAVA_OPTS -jar adapters/RequestsSimulator/target/RequestsSimulator-1.0.jar --profile=applications/workloads/$application.json --execute=applications/workloads/$application-workload-${user}user.json --throughput=applications/output/$application-$version-${user}user-${execution}execution-requests --host=$host > applications/output/$application-$version-${user}user-${execution}execution-simulator.log 2>&1
if [[ $host = "localhost" ]]; then
docker-compose -f applications/cached/$version/$application/docker-compose.yml down -v
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison docker-compose -f applications/cached/$version/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison docker-compose -f applications/cached/$version/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000; do sleep 5; done
sleep 11
fi
fi
trace.sh 6(+2 -4)
diff --git a/trace.sh b/trace.sh
index 6b81b6a..07191a2 100644
--- a/trace.sh
+++ b/trace.sh
@@ -27,16 +27,14 @@ for application in $applications; do
export TRACER_ENABLE=true
docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison export TRACER_ENABLE=true && docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison export TRACER_ENABLE=true && docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000; do sleep 5; done
fi
while ! curl -s $host:8080 > /dev/null; do sleep 5; done
java $JAVA_OPTS -jar adapters/RequestsSimulator/target/RequestsSimulator-1.0.jar --profile=applications/workloads/$application.json --time=600000 --users=1 --log=applications/workloads/$application-execution-uncached.json --throughput=applications/output/$application-uncached-requests --host=$host > applications/output/$application-uncached-simulator.log 2>&1
if [[ $host = "localhost" ]]; then
docker-compose -f applications/uncached/$application/docker-compose.yml down -v
else
- while ! </dev/tcp/$host/5000; do sleep 5; done
- echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
+ while ! echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000; do sleep 5; done
sleep 11
fi
fi