cmd

package
v0.0.0-...-a137165 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUM_READERS_CMD_NAME    = "numreaders"
	NUM_READERS_CMD_DEFAULT = 100
	NUM_READERS_CMD_DESC    = "The number of unique readers that will read documents.  Each reader runs concurrently in it's own goroutine"

	NUM_WRITERS_CMD_NAME    = "numwriters"
	NUM_WRITERS_CMD_DEFAULT = 100
	NUM_WRITERS_CMD_DESC    = "The number of unique users that will write documents.  Each writer runs concurrently in it's own goroutine"

	WRITER_DELAY_CMD_NAME    = "writerdelayms"
	WRITER_DELAY_CMD_DEFAULT = 10000
	WRITER_DELAY_CMD_DESC    = "" /* 213-byte string literal not displayed */

	CREATE_WRITERS_CMD_NAME    = "createwriters"
	CREATE_WRITERS_CMD_DEFAULT = false
	CREATE_WRITERS_CMD_DESC    = "Add this flag if you need the test to create SG users for writers."

	NUM_CHANS_PER_READER_CMD_NAME    = "num-chans-per-reader"
	NUM_CHANS_PER_READER_CMD_DEFAULT = 1
	NUM_CHANS_PER_READER_CMD_DESC    = "The number of channels that each reader has access to."

	CREATE_READERS_CMD_NAME    = "createreaders"
	CREATE_READERS_CMD_DEFAULT = false
	CREATE_READERS_CMD_DESC    = "Add this flag if you need the test to create SG users for readers."

	SKIP_WRITELOAD_CMD_NAME    = "skipwriteload"
	SKIP_WRITELOAD_CMD_DEFAULT = false
	SKIP_WRITELOAD_CMD_DESC    = "" /* 141-byte string literal not displayed */

	NUM_UPDATERS_CMD_NAME    = "numupdaters"
	NUM_UPDATERS_CMD_DEFAULT = 100
	NUM_UPDATERS_CMD_DESC    = "The number of unique users that will update documents.  Each updater runs concurrently in it's own goroutine"

	FEED_TYPE_CMD_NAME    = "readerfeedtype"
	FEED_TYPE_CMD_DEFAULT = "longpoll"
	FEED_TYPE_CMD_DESC    = "The changes feed type: normal or longpoll"

	NUM_REVS_PER_DOC_CMD_NAME    = "numrevsperdoc"
	NUM_REVS_PER_DOC_CMD_DEFAULT = 5
	NUM_REVS_PER_DOC_CMD_DESC    = "The number of updates per doc (total revs will be numrevsperdoc * numrevsperupdate)"

	NUM_REVS_PER_UPDATE_CMD_NAME    = "numrevsperupdate"
	NUM_REVS_PER_UPDATE_CMD_DEFAULT = 1
	NUM_REVS_PER_UPDATE_CMD_DESC    = "The number of revisions per doc to add in each update"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "sgload",
	Short: "Sync Gateway Load Generator",
	Long:  `Generate a load against Sync Gateway`,
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd

Types

This section is empty.

Jump to

Keyboard shortcuts

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