Skip to content

Commit

Permalink
Added comments to the generator config.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Jul 17, 2024
1 parent eaaf416 commit af3ac59
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tools/traffic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ import (
"github.com/urfave/cli"
)

// Config configures a traffic generator.
type Config struct {
clients.Config

NumInstances uint
RequestInterval time.Duration
DataSize uint64
LoggingConfig common.LoggerConfig
RandomizeBlobs bool
// The number of worker threads that generate write traffic.
NumInstances uint
// The period of the submission rate of new blobs for each worker thread.
RequestInterval time.Duration
// The size of each blob dispersed, in bytes.
DataSize uint64
// Configures logging for the traffic generator.
LoggingConfig common.LoggerConfig
// If true, then each blob will contain unique random data. If false, the same random data
// will be dispersed for each blob by a particular worker thread.
RandomizeBlobs bool
// The amount of time to sleep after launching each worker thread.
InstanceLaunchInterval time.Duration

SignerPrivateKey string
Expand Down

0 comments on commit af3ac59

Please sign in to comment.