Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stress tests module for Service Bus #29407

Merged
merged 44 commits into from
Dec 6, 2022

Conversation

liukun-msft
Copy link
Contributor

@liukun-msft liukun-msft commented Jun 13, 2022

Description

Add service bus stress tests project base on azure-sdk-chaos.

Resolve #23953.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@ghost ghost added the Service Bus label Jun 13, 2022
@liukun-msft liukun-msft force-pushed the feature/sb-stress-test branch from 458a8b9 to c50c222 Compare June 14, 2022 06:58
@liukun-msft liukun-msft force-pushed the feature/sb-stress-test branch from c50c222 to 4ad9809 Compare June 14, 2022 07:01
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Aug 19, 2022
@ghost ghost closed this Aug 26, 2022
@liukun-msft liukun-msft reopened this Oct 14, 2022
@ghost ghost removed the no-recent-activity There has been no recent activity on this issue. label Oct 14, 2022
@Azure Azure deleted a comment Oct 14, 2022
@Azure Azure deleted a comment Oct 14, 2022
.vscode/cspell.json Outdated Show resolved Hide resolved
@liukun-msft liukun-msft requested a review from conniey November 11, 2022 06:20
Copy link
Member

@conniey conniey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Just one comment

.vscode/cspell.json Outdated Show resolved Hide resolved
})
.buildProcessorClient();

client.start();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to close the client when the program ends?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with other clients. Does clean-up matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add close() for sender and sync receiver since we know the total send/receive messages. But for processor and async receiver, we don't know when we can close it. We keep the processor running until we manually shut down or deploy another test. If someone needs to, they can add a fix duration to processor test.

The clean-up will not impact test running and its results. Because we will run each test scenraio on different resource groups and all resources are auto-deleted after we end the test.

Copy link
Contributor

@ki1729 ki1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! As per our disscussion, let's add more cases to cover true stress tests scenarios - low memory, CPU restrictions, thread starvation, socket exhaustion, lags, custoffs and so on

@liukun-msft liukun-msft requested a review from conniey November 16, 2022 08:16
@liukun-msft liukun-msft merged commit 384a450 into Azure:main Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TEST] Migrate Service Bus Long Running Tests to Stress Framework
3 participants