diff --git a/test/README.md b/test/README.md index 2368ef3..19e63b7 100644 --- a/test/README.md +++ b/test/README.md @@ -30,14 +30,14 @@ nohup sh cyc_attach_detach_test.sh 1000 default test1000v1.txt 30 & ### Portworx test scenario Because portworx has no attach operation, we use pv deletion for detach test. Use `attach_detach_test_portworx.sh` and `cyc_attach_detach_test_portworx.sh` for attach/detach test in portworx test scenario. ## Test scenario 2: pod failover test -In this scenario, we test 1 pod 3 pvc pod failover test. The time from pod deleted to pod ready will be calculated in the test script. Use `pod_failover_test.sh` for test. +In this scenario, we test 1 pod 3 pvc pod failover test. The time from pod deleted to pod ready will be calculated in the test script. Use `pod_failover_test_azure.sh` or `pod_failover_test_aws.sh` on azure or aws for test. -e.g. test 1 pod 3 pvc pod failover test for 300 times and write results in file.txt in background. +e.g. test 1 pod 3 pvc pod failover test for 300 times on azure and write results in file.txt in background. - Option#1. remote test ``` -curl -skSL https://raw.githubusercontent.com/Azure/kubernetes-volume-drivers/master/test/pod_failover_test.sh | nohup bash -s 300 file.txt & +curl -skSL https://raw.githubusercontent.com/Azure/kubernetes-volume-drivers/master/test/pod_failover_test_azure.sh | nohup bash -s 300 file.txt & ``` - Option#2. local test ``` -nohup sh pod_failover_test.sh 300 file.txt & +nohup sh pod_failover_test_azure.sh 300 file.txt & ``` diff --git a/test/pod_failover_test_aws.sh b/test/pod_failover_test_aws.sh new file mode 100644 index 0000000..99472c6 --- /dev/null +++ b/test/pod_failover_test_aws.sh @@ -0,0 +1,161 @@ +# use sh pod_failover_test_aws.sh 100 file.txt to test 1 pod 3 pvc pod failover test on aws for 100 times and write results in file.txt. +kubectl create ns ebs-pod-failover-1pod3pvc +cat <> $2 +kubectl uncordon $nodename +done +kubectl delete ns ebs-pod-failover-1pod3pvc +kubectl delete storageclass ebs-pod-failover-1pod3pvc-sc diff --git a/test/pod_failover_test.sh b/test/pod_failover_test_azure.sh similarity index 98% rename from test/pod_failover_test.sh rename to test/pod_failover_test_azure.sh index dab454d..42b2f77 100644 --- a/test/pod_failover_test.sh +++ b/test/pod_failover_test_azure.sh @@ -1,4 +1,4 @@ -# use sh pod_failover_test.sh 100 file.txt to test 1 pod 3 pvc pod failover test for 100 times and write results in file.txt. +# use sh pod_failover_test.sh 100 file.txt to test 1 pod 3 pvc pod failover test on azure for 100 times and write results in file.txt. kubectl create ns azdisk-pod-failover-1pod3pvc cat <