-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathrun_workload.sh
44 lines (38 loc) · 1.35 KB
/
run_workload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
set -ex
setup(){
rm -rf e2e-benchmarking
# Clone the e2e repo
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
E2E_VERSION="v2.2.5"
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
}
cleanup(){
rm -rf e2e-benchmarking
}
run_workload(){
if [[ ! -d e2e-benchmarking/workloads/kube-burner ]]; then
setup
fi
cd e2e-benchmarking/workloads/kube-burner
./run.sh |& tee "kube-burner-$(date +%Y%m%d%H%M%S).out"
cd ../../.. #prepare for cleanup
cleanup
}
run_ingress_perf(){
if [[ ! -d e2e-benchmarking/workloads/ingress-perf ]]; then
setup
fi
pushd e2e-benchmarking/workloads/ingress-perf
export ES_USERNAME=${ES_USERNAME}
export ES_PASSWORD=${ES_PASSWORD}
export ES_SERVER="https://$ES_USERNAME:$ES_PASSWORD@search-ocp-qe-perf-scale-test-elk-hcm7wtsqpxy7xogbu72bor4uve.us-east-1.es.amazonaws.com"
export ES_INDEX="ingress-performance"
export CONFIG=${CONFIG:-"config/standard.yml"}
echo "[INFO] Will run ingress-perf with config $CONFIG"
./run.sh |& tee "/tmp/ingress-perf-$(date +%Y%m%d%H%M%S).out"
popd
}
set +ex