package tests
import "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/eh/stress/tests"
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
Index ¶
- Constants
- func BalanceTester(ctx context.Context) error
- func BatchStressTester(ctx context.Context) error
- func MultiBalanceTester(ctx context.Context) error
- func ProcessorStressTester(ctx context.Context) error
- type Event
- type Metric
Constants ¶
Functions ¶
func BalanceTester ¶
BalanceTester checks that we can properly distribute partitions and maintain it over time.
func BatchStressTester ¶
BatchStressTester sends a limited number of events and then consumes that set of events over and over to see what we get with different wait times.
func MultiBalanceTester ¶
MultiBalanceTester runs the BalanceTest multiple times against different combinations of partition acquisition strategy and number of processors.
NOTE: this test assumes that the Event Hub you're using has 32 partitions.
func ProcessorStressTester ¶
Types ¶
type Event ¶
type Event string
const ( EventUnbalanced Event = "Unbalanced" EventBalanced Event = "Balanced" EventEnd Event = "end" EventStart Event = "start" )
type Metric ¶
type Metric string
const ( // standard to all tests MetricNameSent Metric = "Sent" MetricNameReceived Metric = "Received" MetricNameOwnershipLost Metric = "OwnershipLost" // go specific MetricDeadlineExceeded Metric = "DeadlineExceeded" )
Source Files ¶
balance_tester.go batch_stress_tester.go metric_names.go multi_balance_tester.go processor_stress_tester.go shared.go
- Version
- v1.3.0 (latest)
- Published
- Feb 8, 2025
- Platform
- linux/amd64
- Imports
- 25 packages
- Last checked
- 4 months ago –
Tools for package owners.