cmd

package
v0.0.0-...-4b634d0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use: "fbender",
	Long: `FBender is a load tester tool for various protocols. It provides two different
approaches to load testing: Throughput and Concurrency and each of them can have
either fixed or constraints based test values. Throughput tests give the tester
control over the throughput (QPS), but not over concurrency. The second gives
the user control over the concurrency but not over the throughput.
  * fixed - runs a single test for each of the specified values.
  * constraint - runs tests adjusting load based on the growth and constraints.

Target:
Target format may vary depending on the protocol, however most of them accept
ipv4, ipv6, hostname with an optional port. Use "fbender protocol --help" to get
the documentation on the target format for a specific protocol.

Input:
Unless explicitly stated in the command documentation one request is generated
per input line, skipping the lines with improper format. Use "fbender
protocol help" to get the documentation on the input format for a specific
protocol. The generated requests are then reused in a round-robin manner.

Output:
All important information is printed to stdout. Test logs can be redirected
using the output flag. They can also be filtered based on the message verbosity
level. Note that this filters/redirect only test logs and not the summary and
other output. Available levels (both numbers and literals are accepted):
  * panic/0
  * fatal/1
  * error/2
  * warning/3 - log when an *error response* is received
  * info/4 - log when a *successful response* is received
  * debug/5 - log when a *request* is sent
`,
	Example: `  fbender dns throughput fixed -t $TARGET 100
  fbender tftp concurrency fixed -t $TARGET -o /dev/null 10
  fbender udp throughput fixed -t $TARGET -d 5m 100 200 300
  fbender http concurrency constraints -t $TARGET 20 -c "MAX(errors)<5"
  fbender dhcpv6 throughput constraints -t $TARGET 50 -c "MIN(latency)<20"
  fbender dns throughput constraints -t $TARGET 40 -c -g ^10 "MAX(errors)<5"`,
}

Command is the root command for the CLI.

Subcommands are the protocol subcommands.

Functions

func Execute

func Execute()

Execute runs the Command.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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