forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update messaging stress to use addons parallel job configuration (Azu…
- Loading branch information
1 parent
d253081
commit ef86729
Showing
8 changed files
with
49 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: stress-test-addons | ||
repository: https://stresstestcharts.blob.core.windows.net/helm/ | ||
version: 0.1.20 | ||
digest: sha256:174a2f4b768cb47718d4b3d5a506330aa781abb31803fbeaeba3b7eef87a9f38 | ||
generated: "2022-07-26T17:51:35.3973882-04:00" | ||
version: 0.3.0 | ||
digest: sha256:3e21a7fdf5d6b37e871a6dd9f755888166fbb24802aa517f51d1d9223b47656e | ||
generated: "2023-09-25T17:38:32.837147193-04:00" |
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
14 changes: 9 additions & 5 deletions
14
sdk/eventhub/Azure.Messaging.EventHubs/stress/scenarios-matrix.yaml
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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
matrix: | ||
scenarios: | ||
consumer: | ||
scenarioName: "Consumer" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "Consumer" | ||
eventprod: | ||
scenarioName: "EventProd" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "EventProd" | ||
buffprod: | ||
scenarioName: "BuffProd" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "BuffProd" | ||
burstbuffprod: | ||
scenarioName: "BurstBuffProd" | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "BurstBuffProd" | ||
processor: | ||
scenarioName: "Processor" | ||
parallel: 3 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "Processor" |
55 changes: 11 additions & 44 deletions
55
sdk/eventhub/Azure.Messaging.EventHubs/stress/templates/deploy-job.yaml
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 |
---|---|---|
@@ -1,47 +1,14 @@ | ||
{{- include "stress.deploy-job-template.from-job" (list . "stress.event-hubs-net") -}} | ||
{{- include "stress-test-addons.deploy-job-template.from-pod" (list . "stress.event-hubs-net") -}} | ||
{{- define "stress.event-hubs-net" -}} | ||
metadata: | ||
labels: | ||
testName: "net-eh-stress-{{ lower .Stress.scenarioName }}" | ||
testInstance: "eventhubs-{{ lower .Stress.scenarioName }}-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
spec: | ||
{{ if eq .Stress.scenarioName "EventProd" }} | ||
completions: 2 | ||
parallelism: 2 | ||
{{ end }} | ||
{{ if eq .Stress.scenarioName "BuffProd" }} | ||
completions: 2 | ||
parallelism: 2 | ||
{{ end }} | ||
{{ if eq .Stress.scenarioName "Processor" }} | ||
completions: 3 | ||
parallelism: 3 | ||
{{ end }} | ||
{{ if eq .Stress.scenarioName "Consumer" }} | ||
completions: 2 | ||
parallelism: 2 | ||
{{ end }} | ||
completionMode: Indexed | ||
template: | ||
metadata: | ||
labels: | ||
testName: "net-eh-stress-{{ lower .Stress.scenarioName }}" | ||
testInstance: "eventhubs-{{ lower .Stress.scenarioName }}-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
spec: | ||
containers: | ||
- name: role | ||
image: {{ .Stress.imageTag }} | ||
command: ['dotnet', "Azure.Messaging.EventHubs.Stress.dll", "--test", "{{ .Stress.scenarioName }}", "--role", "$(JOB_COMPLETION_INDEX)"] | ||
imagePullPolicy: Always | ||
{{- include "stress-test-addons.container-env" . | nindent 10 }} | ||
containers: | ||
- name: role | ||
image: {{ .Stress.imageTag }} | ||
command: ['dotnet', "Azure.Messaging.EventHubs.Stress.dll", "--test", "{{ .Stress.scenarioName }}", "--role", "$(JOB_COMPLETION_INDEX)"] | ||
imagePullPolicy: Always | ||
{{- include "stress-test-addons.container-env" . | nindent 6 }} | ||
{{- end -}} | ||
|
||
{{- define "stress.deploy-job-template.from-job" -}} | ||
{{- $global := index . 0 -}} | ||
{{- $jobOverrideDefinition := index . 1 -}} | ||
# Configmap template that adds the stress test ARM template for mounting | ||
{{- include "stress-test-addons.deploy-configmap" $global }} | ||
{{- range (default (list "stress") $global.Values.scenarios) }} | ||
--- | ||
{{ $jobCtx := fromYaml (include "stress-test-addons.util.mergeStressContext" (list $global . )) }} | ||
{{- $jobOverride := fromYaml (include $jobOverrideDefinition $jobCtx) -}} | ||
{{- $tpl := fromYaml (include "stress-test-addons.deploy-job-template.tpl" $jobCtx) -}} | ||
{{- toYaml (merge $jobOverride $tpl) -}} | ||
{{- end }} | ||
{{- end -}} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: stress-test-addons | ||
repository: https://stresstestcharts.blob.core.windows.net/helm/ | ||
version: 0.2.0 | ||
digest: sha256:53cbe4c0fed047f6c611523bd34181b21a310e7a3a21cb14f649bb09e4a77648 | ||
generated: "2022-10-28T12:40:54.5657204-07:00" | ||
version: 0.3.0 | ||
digest: sha256:3e21a7fdf5d6b37e871a6dd9f755888166fbb24802aa517f51d1d9223b47656e | ||
generated: "2023-09-25T21:42:38.685809722-04:00" |
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
15 changes: 10 additions & 5 deletions
15
sdk/servicebus/Azure.Messaging.ServiceBus/stress/scenarios-matrix.yaml
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
matrix: | ||
scenarios: | ||
sendrec: | ||
scenarioName: "SendRec" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "SendRec" | ||
sendrecbatch: | ||
scenarioName: "SendRecBatch" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "SendRecBatch" | ||
sesssendrec: | ||
scenarioName: "SessionSendRec" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "SessionSendRec" | ||
sesssendproc: | ||
scenarioName: "SessionSendProc" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "SessionSendProc" | ||
sendproc: | ||
scenarioName: "SendProc" | ||
parallel: 2 | ||
image: Dockerfile | ||
imageBuildDir: "../../../.." | ||
scenarioName: "SendProc" |
41 changes: 11 additions & 30 deletions
41
sdk/servicebus/Azure.Messaging.ServiceBus/stress/templates/deploy-job.yaml
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 |
---|---|---|
@@ -1,33 +1,14 @@ | ||
{{- include "stress.deploy-job-template.from-job" (list . "stress.service-bus") -}} | ||
{{- include "stress-test-addons.deploy-job-template.from-pod" (list . "stress.service-bus") -}} | ||
{{- define "stress.service-bus" -}} | ||
metadata: | ||
labels: | ||
testName: "net-sb-stress-{{ lower .Stress.scenarioName }}" | ||
testInstance: "servicebus-{{ lower .Stress.scenarioName }}-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
spec: | ||
completions: 2 | ||
parallelism: 2 | ||
completionMode: Indexed | ||
template: | ||
metadata: | ||
labels: | ||
testName: "net-sb-stress-{{ lower .Stress.scenarioName }}" | ||
testInstance: "servicebus-{{ lower .Stress.scenarioName }}-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
spec: | ||
containers: | ||
- name: role | ||
image: {{ .Stress.imageTag }} | ||
command: ['dotnet', "Azure.Messaging.ServiceBus.Stress.dll", "--test", "{{ .Stress.scenarioName }}", "--role", "$(JOB_COMPLETION_INDEX)"] | ||
imagePullPolicy: Always | ||
{{- include "stress-test-addons.container-env" . | nindent 10 }} | ||
containers: | ||
- name: role | ||
image: {{ .Stress.imageTag }} | ||
command: ['dotnet', "Azure.Messaging.ServiceBus.Stress.dll", "--test", "{{ .Stress.scenarioName }}", "--role", "$(JOB_COMPLETION_INDEX)"] | ||
imagePullPolicy: Always | ||
{{- include "stress-test-addons.container-env" . | nindent 6 }} | ||
{{- end -}} | ||
|
||
{{- define "stress.deploy-job-template.from-job" -}} | ||
{{- $global := index . 0 -}} | ||
{{- $jobOverrideDefinition := index . 1 -}} | ||
# Configmap template that adds the stress test ARM template for mounting | ||
{{- include "stress-test-addons.deploy-configmap" $global }} | ||
{{- range (default (list "stress") $global.Values.scenarios) }} | ||
--- | ||
{{ $jobCtx := fromYaml (include "stress-test-addons.util.mergeStressContext" (list $global . )) }} | ||
{{- $jobOverride := fromYaml (include $jobOverrideDefinition $jobCtx) -}} | ||
{{- $tpl := fromYaml (include "stress-test-addons.deploy-job-template.tpl" $jobCtx) -}} | ||
{{- toYaml (merge $jobOverride $tpl) -}} | ||
{{- end }} | ||
{{- end -}} |