taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 4b2f0f326b839c7af7d9579d922adc3ea3a13e3f
parent 4b47817978479f5585f0774127658da577213725
Author: MS <ms@taler.net>
Date:   Thu, 27 Jul 2023 13:11:56 +0200

NLnet task 5, get benchmark to complete.

Diffstat:
Anlnet/task5/performance/.start.sh.swp | 0
Mnlnet/task5/performance/Dockerfile | 1+
Mnlnet/task5/performance/start.sh | 28+++++++++++++++-------------
3 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/nlnet/task5/performance/.start.sh.swp b/nlnet/task5/performance/.start.sh.swp Binary files differ. diff --git a/nlnet/task5/performance/Dockerfile b/nlnet/task5/performance/Dockerfile @@ -66,4 +66,5 @@ WORKDIR / COPY start.sh / RUN apt-get install -y wget +RUN apt-get install -y bc ENTRYPOINT ["/start.sh"] diff --git a/nlnet/task5/performance/start.sh b/nlnet/task5/performance/start.sh @@ -26,7 +26,7 @@ export LD_LIBRARY_PATH=/usr/local/lib prepare_and_run () { taler-unified-setup.sh \ - -Wemtns \ + -Wwemtns \ -c /exchange/src/benchmark/benchmark-cs.conf \ -u exchange-account-2 &> /check_ready.txt & # Wait that the prep. went through. @@ -47,18 +47,7 @@ prepare_and_run () { echo FAIL exit 1 fi - NEXUS_PID=$(cat /libeufin-nexus.pid) - SANDBOX_PID=$(cat /libeufin-sandbox.pid) - - if test -z $NEXUS_PID; then - echo Could not find Nexus PID, failing. - exit 1 - fi - - if test -z $SANDBOX_PID; then - echo Could not find Sandbox PID, failing. - exit 1 - fi + echo Running the benchmark.. taler-exchange-benchmark \ -c /exchange/src/benchmark/benchmark-cs.conf.edited \ @@ -71,6 +60,19 @@ prepare_and_run () { export -f prepare_and_run /usr/bin/time -o /benchmark-wall-clock-time.txt --format=%e bash -c "prepare_and_run" +NEXUS_PID=$(cat /libeufin-nexus.pid) +SANDBOX_PID=$(cat /libeufin-sandbox.pid) + +if test -z $NEXUS_PID; then + echo Could not find Nexus PID, failing. + exit 1 +fi + +if test -z $SANDBOX_PID; then + echo Could not find Sandbox PID, failing. + exit 1 +fi + # Convert the wall clock time to milliseconds, to make # it compatible with the format as GREPped through Postgres logs. BENCHMARK_TOT_MS=$(awk -F. '{t=($1 * 1000 + $2 * 10)} END {print t}' /benchmark-wall-clock-time.txt)