#!/bin/bash function usage { echo "$0 [cpu-log]" exit 1 } chmod 400 ./id_rsa path="/home/weihao/sledge/sledge_tree/runtime/tests" #test single c5 50% max RPS (500) f1="5k_single_50.txt" server_log_file="execution_single_5k_50.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_8c.sh $f1 120 50 5k.jpg 10006 2>&1 & pid5=$! wait -f $pid5 $path/kill_sledge.sh #test single c5 60% max RPS f1="5k_single_60.txt" server_log_file="execution_single_5k_60.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_rps.sh $f1 30 60 5k.jpg 10006 2>&1 & pid1=$! wait -f $pid1 $path/kill_sledge.sh #test single c5 70% max RPS f1="5k_single_70.txt" server_log_file="execution_single_5k_70.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_rps.sh $f1 30 70 5k.jpg 10006 2>&1 & pid2=$! wait -f $pid2 $path/kill_sledge.sh #test single c5 80% max RPS f1="5k_single_80.txt" server_log_file="execution_single_5k_80.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_rps.sh $f1 30 80 5k.jpg 10006 2>&1 & pid3=$! wait -f $pid3 $path/kill_sledge.sh #test single c5 90% max RPS f1="5k_single_90.txt" server_log_file="execution_single_5k_90.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_rps.sh $f1 30 90 5k.jpg 10006 2>&1 & pid4=$! wait -f $pid4 $path/kill_sledge.sh