Server rename for benchmarks
[bluesky.git] / microbench / run-spec.sh
1 #!/bin/bash
2
3 BASEDIR=$(dirname $(which $0))
4 . $BASEDIR/run-common.sh
5
6
7 run_spec() {
8     BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1
9     SPEC_CONF=$2
10
11     $HOME/bin/s3-cleanup.py mvrable-bluesky
12     $HOME/bin/s3-cleanup.py mvrable-bluesky-west
13     run_cmd $PROXY cleanup-proxy
14     run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 &
15     proxy_pid=$!
16     sleep 10
17
18     run_cmd $BENCHER run-specsfs
19
20     run_cmd $PROXY stop-proxy
21     echo "Waiting for proxy to stop..."
22     wait $proxy_pid
23 }
24
25 run_spec s3-west sfs_bluesky