tfcache-comparison
Details
reduce.sh 2(+1 -1)
diff --git a/reduce.sh b/reduce.sh
index d091366..16b1ad4 100644
--- a/reduce.sh
+++ b/reduce.sh
@@ -38,7 +38,7 @@ for version in $versions; do
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," | netcat -w0 $host 5000
+ 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
fi
done
done
run.sh 12(+6 -6)
diff --git a/run.sh b/run.sh
index 73b4780..aaa3a9a 100644
--- a/run.sh
+++ b/run.sh
@@ -40,8 +40,8 @@ for execution in {1..10}; do
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" | netcat -w0 $host 5000
- echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison export TRACER_ENABLE=false" >/dev/tcp/$host/5000
+ echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
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
@@ -49,7 +49,7 @@ for execution in {1..10}; do
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" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
sleep 11
fi
fi
@@ -59,8 +59,8 @@ for execution in {1..10}; do
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" | netcat -w0 $host 5000
- echo "caching-approaches-comparison docker-compose -f applications/cached/$version/$application/docker-compose.yml up -d --build" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison export CACHE_EVENTS=/caching-approaches-comparison/applications/output/$application-$version-${user}user-${execution}execution-cache" >/dev/tcp/$host/5000
+ echo "caching-approaches-comparison docker-compose -f applications/cached/$version/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
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
@@ -68,7 +68,7 @@ for execution in {1..10}; do
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" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison docker-compose -f applications/cached/$version/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
sleep 11
fi
done
trace.sh 6(+3 -3)
diff --git a/trace.sh b/trace.sh
index 2780d50..47fb44b 100644
--- a/trace.sh
+++ b/trace.sh
@@ -25,8 +25,8 @@ for application in $applications; do
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" | netcat -w0 $host 5000
- echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison export TRACER_ENABLE=true" >/dev/tcp/$host/5000
+ echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml up -d --build" >/dev/tcp/$host/5000
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
@@ -34,7 +34,7 @@ for application in $applications; do
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" | netcat -w0 $host 5000
+ echo "caching-approaches-comparison docker-compose -f applications/uncached/$application/docker-compose.yml down -v" >/dev/tcp/$host/5000
sleep 11
fi
done