-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6ed317
commit 62d8532
Showing
5 changed files
with
237 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
perfscale_regression_ci/scripts/scalability/router-scale/router-scale.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#/!/bin/bash | ||
################################################ | ||
## Auth=qili@redhat.com | ||
## Desription: Script for router scale test | ||
## Polarion test case: OCP-43281 | ||
## https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-43281 | ||
## Cluster config: 3 master (m5.2xlarge), 9 workers(m5.xlarge), 3 infras(c5.4xlarge), no not move component to infra nodes before the test | ||
## ingress-perf config: standard-3replicas.yml, standard-4replicas.yml | ||
## optional PARAMETERS: number of JOB_ITERATION | ||
################################################ | ||
set -o errexit | ||
|
||
source ../../common.sh | ||
source ../../../utils/run_workload.sh | ||
|
||
echo "[INFO] Patch threadCount as 4" | ||
oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec":{"tuningOptions": {"threadCount": 4}}}' | ||
oc -n openshift-ingress get deploy router-default -o yaml | grep " ROUTER_THREADS" -A 1 | ||
|
||
echo "[INFO] run ingress-perf with thread=4, replica=2" | ||
run_ingress_perf | ||
#run ingress-perf with thread=4, replica=3 | ||
export CONFIG=../../../standard-3replicas.yml | ||
run_ingress_perf | ||
|
||
echo "[INFO] scale infra replicas to 4" | ||
machineset=$(oc get machinesets -n openshift-machine-api --no-headers | head -n 1 | awk {'print $1'}) | ||
oc scale machineset --replicas=2 ${machineset} -n openshift-machine-api | ||
oc get machinesets -n openshift-machine-api | ||
|
||
echo "[INFO] run ingress-perf with thread=4, replica=4" | ||
export CONFIG=../../../standard-4replicas.yml | ||
run_ingress_perf | ||
|
||
echo "[INFO] Patch threadCount as 8" | ||
oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec":{"tuningOptions": {"threadCount": 8}}}' | ||
oc -n openshift-ingress get deploy router-default -o yaml | grep " ROUTER_THREADS" -A 1 | ||
|
||
echo "[INFO] run ingress-perf with thread=8, replica=4" | ||
export CONFIG=../../../standard-4replicas.yml | ||
run_ingress_perf | ||
|
||
echo "[INFO] run ingress-perf with thread=8, replica=3" | ||
export CONFIG=../../../standard-3replicas.yml | ||
run_ingress_perf | ||
|
||
echo "[INFO] run ingress-perf with thread=8, replica=2" | ||
unset CONFIG | ||
run_ingress_perf | ||
|
||
echo "[INFO] Test is finished. Pleaset check results in the grafana and dittybopper dashboards." |
82 changes: 82 additions & 0 deletions
82
perfscale_regression_ci/scripts/scalability/router-scale/standard-3replicas.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# vi: expandtab shiftwidth=2 softtabstop=2 | ||
|
||
# First scenario is configured as warmup and it will also tune the default ingress-controller to assign the router pods to the infra nodes | ||
- termination: http | ||
connections: 200 | ||
samples: 5 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
tuningPatch: '{"spec":{"nodePlacement": {"nodeSelector": {"matchLabels": {"node-role.kubernetes.io/infra": ""}}}, "replicas": 3}}' | ||
delay: 10s | ||
requestTimeout: 10s | ||
warmup: true | ||
|
||
- termination: http | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: edge | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: reencrypt | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: passthrough | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: reencrypt | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: hloader | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
tuningPatch: '{"metadata":{"annotations": {"ingress.operator.openshift.io/default-enable-http2": "true"}}}' | ||
http2: true | ||
|
||
- termination: passthrough | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: hloader | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
http2: true |
82 changes: 82 additions & 0 deletions
82
perfscale_regression_ci/scripts/scalability/router-scale/standard-4replicas.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# vi: expandtab shiftwidth=2 softtabstop=2 | ||
|
||
# First scenario is configured as warmup and it will also tune the default ingress-controller to assign the router pods to the infra nodes | ||
- termination: http | ||
connections: 200 | ||
samples: 5 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
tuningPatch: '{"spec":{"nodePlacement": {"nodeSelector": {"matchLabels": {"node-role.kubernetes.io/infra": ""}}}, "replicas": 4}}' | ||
delay: 10s | ||
requestTimeout: 10s | ||
warmup: true | ||
|
||
- termination: http | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: edge | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: reencrypt | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: passthrough | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: wrk | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
delay: 10s | ||
|
||
- termination: reencrypt | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: hloader | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
tuningPatch: '{"metadata":{"annotations": {"ingress.operator.openshift.io/default-enable-http2": "true"}}}' | ||
http2: true | ||
|
||
- termination: passthrough | ||
connections: 200 | ||
samples: 2 | ||
duration: 3m | ||
path: /1024.html | ||
concurrency: 18 | ||
tool: hloader | ||
serverReplicas: 45 | ||
requestTimeout: 10s | ||
http2: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters