parent
4c9877371b
commit
8ce7dd328e
@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function usage {
|
||||||
|
echo "$0 [cpu-log]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#basepath=$(cd `dirname $0`; pwd)
|
||||||
|
#cpu_log=$1
|
||||||
|
|
||||||
|
#if [ -z $cpu_log ]
|
||||||
|
#then
|
||||||
|
# usage
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
#node1_cpu_file=$cpu_log"_node1_cpu.log"
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
#test c3
|
||||||
|
server_log_file="execution_mix_srsf_3.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 3
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c5
|
||||||
|
server_log_file="execution_mix_srsf_5.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 5
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c7
|
||||||
|
server_log_file="execution_mix_srsf_7.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 7
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c10
|
||||||
|
server_log_file="execution_mix_srsf_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 10
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
@ -0,0 +1,147 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function usage {
|
||||||
|
echo "$0 [cpu-log]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#basepath=$(cd `dirname $0`; pwd)
|
||||||
|
#cpu_log=$1
|
||||||
|
|
||||||
|
#if [ -z $cpu_log ]
|
||||||
|
#then
|
||||||
|
# usage
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
#node1_cpu_file=$cpu_log"_node1_cpu.log"
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
#test single c10
|
||||||
|
f1="105k_edf_single_10.txt"
|
||||||
|
server_log_file="execution_edf_single_105k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 10 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="105k_edf_single_20.txt"
|
||||||
|
server_log_file="execution_edf_single_105k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 20 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="105k_edf_single_30.txt"
|
||||||
|
server_log_file="execution_edf_single_105k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 30 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="105k_edf_single_40.txt"
|
||||||
|
server_log_file="execution_edf_single_105k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 40 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
#test single c10
|
||||||
|
f1="305k_edf_single_10.txt"
|
||||||
|
server_log_file="execution_edf_single_305k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 10 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="305k_edf_single_20.txt"
|
||||||
|
server_log_file="execution_edf_single_305k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 20 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="305k_edf_single_30.txt"
|
||||||
|
server_log_file="execution_edf_single_305k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 30 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="305k_edf_single_40.txt"
|
||||||
|
server_log_file="execution_edf_single_305k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 40 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
#test single c10
|
||||||
|
f1="5k_edf_single_10.txt"
|
||||||
|
server_log_file="execution_edf_single_5k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 10 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="5k_edf_single_20.txt"
|
||||||
|
server_log_file="execution_edf_single_5k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 20 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="5k_edf_single_30.txt"
|
||||||
|
server_log_file="execution_edf_single_5k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 30 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="5k_edf_single_40.txt"
|
||||||
|
server_log_file="execution_edf_single_5k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 40 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
#test single c10
|
||||||
|
f1="40k_edf_single_10.txt"
|
||||||
|
server_log_file="execution_edf_single_40k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 10 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="40k_edf_single_20.txt"
|
||||||
|
server_log_file="execution_edf_single_40k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 20 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="40k_edf_single_30.txt"
|
||||||
|
server_log_file="execution_edf_single_40k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 30 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="40k_edf_single_40.txt"
|
||||||
|
server_log_file="execution_edf_single_40k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 40 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function usage {
|
||||||
|
echo "$0 [cpu-log]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#basepath=$(cd `dirname $0`; pwd)
|
||||||
|
#cpu_log=$1
|
||||||
|
|
||||||
|
#if [ -z $cpu_log ]
|
||||||
|
#then
|
||||||
|
# usage
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
#node1_cpu_file=$cpu_log"_node1_cpu.log"
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
#test c3
|
||||||
|
server_log_file="edf_15.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 15
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c5
|
||||||
|
server_log_file="edf_22.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 22
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c7
|
||||||
|
server_log_file="edf_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 30
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c10
|
||||||
|
server_log_file="edf_38.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 120 38
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
@ -0,0 +1,175 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function usage {
|
||||||
|
echo "$0 [cpu-log]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#basepath=$(cd `dirname $0`; pwd)
|
||||||
|
#cpu_log=$1
|
||||||
|
|
||||||
|
#if [ -z $cpu_log ]
|
||||||
|
#then
|
||||||
|
# usage
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
#node1_cpu_file=$cpu_log"_node1_cpu.log"
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
#test c3
|
||||||
|
server_log_file="execution_mix_3.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 300 3
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c5
|
||||||
|
server_log_file="execution_mix_5.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 300 5
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c7
|
||||||
|
server_log_file="execution_mix_7.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 300 7
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test c10
|
||||||
|
server_log_file="execution_mix_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
echo "sledge is running"
|
||||||
|
./hey_test_8c.sh 300 10
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
#test single c10
|
||||||
|
f1="105k_single_10.txt"
|
||||||
|
server_log_file="execution_single_105k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 10 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="105k_single_20.txt"
|
||||||
|
server_log_file="execution_single_105k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 20 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="105k_single_30.txt"
|
||||||
|
server_log_file="execution_single_105k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 30 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="105k_single_40.txt"
|
||||||
|
server_log_file="execution_single_105k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 40 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
#test single c10
|
||||||
|
f1="305k_single_10.txt"
|
||||||
|
server_log_file="execution_single_305k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 10 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="305k_single_20.txt"
|
||||||
|
server_log_file="execution_single_305k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 20 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="305k_single_30.txt"
|
||||||
|
server_log_file="execution_single_305k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 30 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="305k_single_40.txt"
|
||||||
|
server_log_file="execution_single_305k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 40 305k.jpg 10003
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
#test single c10
|
||||||
|
f1="5k_single_10.txt"
|
||||||
|
server_log_file="execution_single_5k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 10 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="5k_single_20.txt"
|
||||||
|
server_log_file="execution_single_5k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 20 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="5k_single_30.txt"
|
||||||
|
server_log_file="execution_single_5k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 30 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="5k_single_40.txt"
|
||||||
|
server_log_file="execution_single_5k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 40 5k.jpg 10006
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
#test single c10
|
||||||
|
f1="40k_single_10.txt"
|
||||||
|
server_log_file="execution_single_40k_10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 10 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="40k_single_20.txt"
|
||||||
|
server_log_file="execution_single_40k_20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 20 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="40k_single_30.txt"
|
||||||
|
server_log_file="execution_single_40k_30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 30 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="40k_single_40.txt"
|
||||||
|
server_log_file="execution_single_40k_40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 300 40 40k.jpg 10009
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
@ -1,19 +1,21 @@
|
|||||||
function usage {
|
function usage {
|
||||||
echo "$0 [output file] [duration(s)] [rps] [image file] [port]"
|
echo "$0 [output file] [duration(s)] [concurrency] [image file] [port]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# != 5 ] ; then
|
if [ $# != 5 ] ; then
|
||||||
|
echo "input parameters are not 5"
|
||||||
usage
|
usage
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
output=$1
|
output=$1
|
||||||
duration=$2
|
duration=$2
|
||||||
rps=$3
|
concurrency=$3
|
||||||
image=$4
|
image=$4
|
||||||
port=$5
|
port=$5
|
||||||
|
|
||||||
#hey -disable-compression -disable-keepalive -disable-redirects -c 1 -q $rps -z $duration\s -cpus 1 -t 0 -m GET -D "$image" "http://10.10.1.1:$port"
|
#hey -disable-compression -disable-keepalive -disable-redirects -c 1 -q $rps -z $duration\s -cpus 1 -t 0 -m GET -D "$image" "http://10.10.1.1:$port"
|
||||||
hey -disable-compression -disable-keepalive -disable-redirects -c 8 -z $duration\s -t 0 -m GET -D "$image" "http://10.10.1.1:$port" > $output
|
#hey -disable-compression -disable-keepalive -disable-redirects -c $concurrency -z 20s -t 0 -m GET -D "$image" "http://10.10.1.1:$port"
|
||||||
|
hey -disable-compression -disable-keepalive -disable-redirects -c $concurrency -z $duration\s -t 0 -m GET -D "$image" "http://10.10.1.1:$port" > $output
|
||||||
|
|
||||||
|
@ -0,0 +1,96 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function usage {
|
||||||
|
echo "$0 [cpu-log]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#basepath=$(cd `dirname $0`; pwd)
|
||||||
|
#cpu_log=$1
|
||||||
|
|
||||||
|
#if [ -z $cpu_log ]
|
||||||
|
#then
|
||||||
|
# usage
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
#node1_cpu_file=$cpu_log"_node1_cpu.log"
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single1.txt"
|
||||||
|
server_log_file="srsf_single1.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 1 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single5.txt"
|
||||||
|
server_log_file="srsf_single5.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 5 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single10.txt"
|
||||||
|
server_log_file="srsf_single10.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 10 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single20.txt"
|
||||||
|
server_log_file="srsf_single20.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 20 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single30.txt"
|
||||||
|
server_log_file="srsf_single30.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 30 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single40.txt"
|
||||||
|
server_log_file="srsf_single40.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 40 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single50.txt"
|
||||||
|
server_log_file="srsf_single50.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 50 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="srsf_single60.txt"
|
||||||
|
server_log_file="srsf_single60.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 60 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c30
|
||||||
|
f1="srsf_single70.txt"
|
||||||
|
server_log_file="srsf_single70.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 70 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
||||||
|
#test single c40
|
||||||
|
f1="srsf_single80.txt"
|
||||||
|
server_log_file="srsf_single80.log"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
./test_8c.sh $f1 120 80 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
chmod 400 ./id_rsa
|
||||||
|
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||||
|
|
||||||
|
|
||||||
|
#test single c10
|
||||||
|
f1="30cpucore_single40.txt"
|
||||||
|
server_log_file="30cpucore_single40.log"
|
||||||
|
vmstat_file="30cpucore_single1_vmstat.txt"
|
||||||
|
pidstat_file="30cpucore_single1_pidstat.txt"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log_file >/dev/null 2>&1 &"
|
||||||
|
#ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start_monitor.sh $vmstat_file $pidstat_file"
|
||||||
|
./test_8c.sh $f1 120 40 105k.jpg 10000
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
#ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/stop_monitor.sh"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue