summaryrefslogtreecommitdiff
path: root/catlfish-benchmark/bench.sh
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-10-29 16:12:30 +0100
committerLinus Nordberg <linus@nordu.net>2015-10-29 16:12:30 +0100
commit2c7fff406b1aa916aca399fe1e0f12dfaf6acbf2 (patch)
treef4be3ea95268c202c2b8c95977d1a0e523f33441 /catlfish-benchmark/bench.sh
parent4e16f940beb6d47e516b92696c0007f0f9891af8 (diff)
Add catlfish-benchmark embryo.
Diffstat (limited to 'catlfish-benchmark/bench.sh')
-rw-r--r--catlfish-benchmark/bench.sh33
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