forked from Azure/azure-sdk-for-python
-
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.
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
…into response_backcompat_mixin * 'main' of https://github.com/Azure/azure-sdk-for-python: [rest] add backcompat mixin to rest requests (Azure#20599) [EventHubs] Stress test refactor (Azure#20389)
- Loading branch information
Showing
20 changed files
with
415 additions
and
40 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
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,6 @@ | ||
dependencies: | ||
- name: stress-test-addons | ||
repository: https://stresstestcharts.blob.core.windows.net/helm/ | ||
version: 0.1.6 | ||
digest: sha256:b97697ef5f303eec43e9a94fca8e312d20b8aed71318250499344aeca9880d31 | ||
generated: "2021-08-24T11:24:15.375395-07: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v2 | ||
name: python-eventhubs-stress-test | ||
description: python event hubs stress test. | ||
version: 0.1.2 | ||
appVersion: v0.2 | ||
annotations: | ||
stressTest: 'true' | ||
namespace: python-eventhubs-stress-test-ns | ||
|
||
dependencies: | ||
- name: stress-test-addons | ||
version: 0.1.6 | ||
repository: https://stresstestcharts.blob.core.windows.net/helm/ |
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,10 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.8-slim-buster | ||
|
||
WORKDIR /app | ||
|
||
COPY ./scripts /app/stress/scripts | ||
|
||
WORKDIR /app/stress/scripts | ||
RUN pip3 install -r dev_requirement.txt |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { } | ||
} |
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
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
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
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
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
sdk/eventhub/azure-eventhub/stress/scripts/dev_requirement.txt
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,9 @@ | ||
psutil | ||
azure-eventhub | ||
azure-eventhub-checkpointstoreblob | ||
azure-eventhub-checkpointstoreblob-aio | ||
azure-servicebus==0.50.3 | ||
azure-storage-blob | ||
azure-identity | ||
opencensus-ext-azure | ||
python-dotenv |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
sdk/eventhub/azure-eventhub/stress/templates/network_loss.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: chaos-mesh.org/v1alpha1 | ||
kind: NetworkChaos | ||
metadata: | ||
name: '{{ .Release.Name }}-{{ .Release.Revision }}' | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
experiment.chaos-mesh.org/pause: 'true' | ||
labels: | ||
scenario: 'stress' | ||
release: '{{ .Release.Name }}' | ||
revision: '{{ .Release.Revision }}' | ||
spec: | ||
scheduler: | ||
cron: '@every 30s' | ||
duration: '10s' | ||
action: loss | ||
direction: to | ||
externalTargets: | ||
- 'eh-stress-{{ .Release.Name }}-{{ .Release.Revision }}.servicebus.windows.net' | ||
mode: one | ||
selector: | ||
labelSelectors: | ||
testInstance: "eventhub-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
chaos: 'true' | ||
namespaces: | ||
- {{ .Release.Namespace }} | ||
podPhaseSelectors: | ||
- 'Running' | ||
loss: | ||
loss: '100' | ||
correlation: '100' |
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,16 @@ | ||
{{- include "stress-test-addons.deploy-job-template.from-pod" (list . "stress.python-eh-stress") -}} | ||
{{- define "stress.python-eh-stress" -}} | ||
metadata: | ||
labels: | ||
testName: "deploy-python-eh-stress" | ||
testInstance: "eventhub-{{ .Release.Name }}-{{ .Release.Revision }}" | ||
chaos: "true" | ||
spec: | ||
containers: | ||
- name: python-eh-stress | ||
image: {{ default "stresstestregistry.azurecr.io/python" .Values.repository }}/stress:{{ default "v2" .Values.tag }} | ||
command: ['bash', '-c', 'python3 azure_eventhub_producer_stress.py & python3 azure_eventhub_consumer_stress_sync.py'] | ||
{{- include "stress-test-addons.container-env" . | nindent 6 }} | ||
# async test command | ||
# command: ['bash', '-c', 'python3 azure_eventhub_producer_stress.py -m stress_send_list_async & python3 azure_eventhub_consumer_stress_async.py'] | ||
{{- end -}} |
Oops, something went wrong.