You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sledge/runtime/tests/client_nodes/cpu_insensive.sh

29 lines
616 B

#!/bin/bash
function usage {
echo "$0 [prefix] [port] [times] "
exit 1
}
if [ $# != 3 ] ; then
usage
exit 1;
fi
prefix=$1
port=$2
time=$3
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
chmod 400 $path/id_rsa
input=0
server_log="fibnacci_"$prefix".log"
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$time".txt"
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"