diff options
Diffstat (limited to 'catlfish-benchmark/bench.sh')
-rw-r--r-- | catlfish-benchmark/bench.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/catlfish-benchmark/bench.sh b/catlfish-benchmark/bench.sh new file mode 100644 index 0000000..126b4af --- /dev/null +++ b/catlfish-benchmark/bench.sh @@ -0,0 +1,33 @@ +#! /bin/sh + +iterations=2 +chunksize=10000 +[ -n "$1" ] && { ierations=$1; shift; } +[ -n "$1" ] && { chunksize=$1; shift; } + +erlbase=/usr/local/catlfish + +for nodename in mergebackup signing fest; do + mkdir -p /var/run/catlfish/erlang_log/$nodename + echo "Starting $nodename" + $erlbase/bin/run_erl -daemon \ + /var/run/catlfish/ \ + /var/run/catlfish/erlang_log/$nodename/ \ + "exec $erlbase/bin/erl -config $nodename" +done + +for iter in $iterations; do + echo "Iteration ${iter}/${iterations} starting" + + ./submit.sh $chunksize + + echo "$0: merging" + date + python /usr/local/src/catlfish/tools/merge.py \ + --config /usr/local/etc/catlfish/catlfish.cfg \ + --localconfig /usr/local/etc/catlfish/merge.cfg \ + --timing + date + + echo "Iteration ${iter}/${iterations} finished" +done |