Google's PerfKitBenchmarker configured and ready to run for the Alibaba Cloud.
I had some weird problems on Mac having multiple Python version installed and wasted quite some time to figure out what was going on since I'm not a Python Developer.
The current setup for the AliCloud Provider did not work for me so i made the decision to fix it and build it in a way other can use it.
I assume you have the aliyun-cli tools installed and configured for the current running user.
In the first release i map ${HOME}/.aliyuncli
inside the container to run without passing any credentials.
Here how to run a quick test with iperf
:
docker run \
-it \
-v "${HOME}/.aliyuncli:/home/perfkit/.aliyuncli:ro" \
ellerbrock/perfkit-alicloud \
--cloud=AliCloud \
--machine_type=ecs.sn1.medium \
--zones=eu-central-1a \
--benchmarks=iperf
In the repository you can find a run.sh
where i made machine type, zone and benchmark variable:
#!/usr/bin/env bash
MACHINE_TYPE="ecs.sn1.medium"
ZONE="eu-central-1a"
BENCHMARKS="iperf"
function main() {
docker run \
-it \
-v "${HOME}/.aliyuncli:/home/perfkit/.aliyuncli:ro" \
ellerbrock/perfkit-alicloud \
--cloud=AliCloud \
--machine_type=${MACHINE_TYPE} \
--zones=${ZONE} \
--benchmarks=${BENCHMARKS}
}
main
I'm currently developing on this project and will make further optimization.
So stay tuned and check for new releases ...
Sign up today and get $300 valid for the first 60 days to try Alibaba Cloud.