stresstest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

stresstest exposes a StressTest() function which can be used to stress test ldlm. It's particularly useful when checking for race conditions. It's meant to be used by ldlm developers and is not exposed via -help. To run:

ldlm-stress -help

Index

Constants

This section is empty.

Variables

View Source
var (
	NoTimeout = uint32(0)
)

Functions

func Run

func Run(conf *Config)

Types

type Config

type Config struct {
	SleepForMaxSeconds uint32        `` /* 140-byte string literal not displayed */
	NumClients         uint32        `desc:"Number of clients to run" default:"80" short:"c"`
	NumLocks           uint32        `desc:"Number of locks to create" default:"24" short:"l"`
	Address            string        `desc:"Address (host:port) at which the ldlm server is listening" default:"localhost:3144" short:"a"`
	RandomizeNames     bool          `desc:"Randomize lock names" default:"true" short:"r"`
	RandomizeInterval  time.Duration `desc:"Interval at which to randomize lock names" default:"7s" short:"i"`
	UseTls             bool          `desc:"Use SSL" default:"false"`
	SkipVerify         bool          `desc:"Skip SSL verification" default:"false"`
	CAFile             string        `desc:"File containing client CA certificate." default:""`
	TlsCert            string        `desc:"File containing TLS certificate" default:""`
	TlsKey             string        `desc:"File containing TLS key" default:""`
	Password           string        `desc:"Password to send" default:""`
}

Jump to

Keyboard shortcuts

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