stress

command
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT Imports: 5 Imported by: 0

README

Event Hubs package reliability tests

These are the stress/reliability tests for the azeventhubs package.

The entrypoint for the tests is stress.go. All of the individual tests are in the tests sub-folder. These tests should run fine on your local machine - you'll need to create an .env file, in the root of the azeventhubs module, with the following values:

EVENTHUB_CONNECTION_STRING=<connection string to the Event Hubs namespace>
EVENTHUB_NAME=<already created Event Hub - should have at least 4 partitions>
CHECKPOINTSTORE_STORAGE_CONNECTION_STRING=<connection string to an Azure Storage account>
APPINSIGHTS_INSTRUMENTATIONKEY=<instrumentation key for appinsights>

There are two types of tests - batch and processor. Each test takes a variety of flags to control the duration, number of events, etc..

For instance, to run a Processor test to receive events:

go run . processor

To see more options just run:

go run . processor --help

For convenience there's a deploy.ps1 file that'll launch the deployment - by default it'll go to the pg cluster, which we use for adhoc workloads. For more information about prerequisites look at the official stress test docs here: stress test readme.md.

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL