cluster_name="my-cluster"
client_name="my-client"
ams_name="ams"
namespace="test"
backend="aws"
aws_region="ca-central-1"
aws_az="ca-central-1a"
aws_instance_type_server="t3a.medium"
aws_instance_type_ams="t3a.large"
aws_instance_type_client="t3a.medium"
The above variables are examples. Adjust them as necessary for your AWS configuration.
aerolab config backend -t ${backend} -r ${aws_region}
aerolab cluster create -c 5 -n ${cluster_name} -I ${aws_instance_type_server} -U ${aws_az}
aerolab cluster add exporter -n ${cluster_name}
aerolab client create ams -n ${ams_name} -s ${cluster_name} -I ${aws_instance_type_ams} -U ${aws_az}
aerolab client create tools -n ${client_name} -c 5 -I ${aws_instance_type_client} -U ${aws_az}
aerolab client configure tools -l all -n ${client_name} --ams ${ams_name}
aerolab client list
Note down the IP address of the AMS
machine. Navigate in your browser to this
address on port 3000, for example http://1.2.3.4:3000
(or http://127.0.0.1:3000
if deploying AMS with Docker's port forwarding).
aerolab client attach -n ${client_name} -l all --detach -- /bin/bash -c "run_asbench ...asbench-params..."
aerolab client attach -n ${client_name} -l all -- pkill -9 asbench
aerolab cluster destroy -f -n ${cluster_name}
aerolab client destroy -f -n ${client_name}
aerolab client destroy -f -n ${ams_name}
NODEIP=$(aerolab cluster list -i |grep ${cluster_name} |head -1 |egrep -o 'ext_ip=.*' |awk -F'=' '{print $2}')
echo "Seed: ${NODEIP}"
aerolab client attach -n ${client_name} -l all --detach -- /bin/bash -c "run_asbench -h ${NODEIP}:3000 -U superman -Pkrypton -n ${namespace} -s \$(hostname) --latency -b testbin -K 0 -k 1000000 -z 16 -t 0 -o I1 -w I --socket-timeout 200 --timeout 1000 -B allowReplica --max-retries 2"
aerolab client attach -n ${client_name} -l all -- ps -ef |grep asbench
aerolab client attach -n ${client_name} -l all -- pkill -9 asbench
aerolab client attach -n ${client_name} -l all --detach -- /bin/bash -c "run_asbench -h ${NODEIP}:3000 -U superman -Pkrypton -n ${namespace} -s \$(hostname) --latency -b testbin -K 0 -k 1000000 -z 16 -t 86400 -g 1000 -o I1 -w RU,80 --socket-timeout 200 --timeout 1000 -B allowReplica --max-retries 2"