mongobench

command module
v0.0.0-...-f797f1c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

MongoBench

MongoDB Benchmarking.

Build steps:

  1. Clone the repository in your $GOPATH/src/
  2. go build mongobench.go
  3. ./mongobench
Usage:
  mongobench [flags]

Flags:
  -b, --batch int           Number of threads per batch. (default 100)
  -c, --collection string   Collection to run queries against (default "journal")
  -d, --database string     Database to run queries against (default "journaldb")
  -h, --help                help for mongobench
  -H, --host string         IP addresses or Hostnames and ports of the mongo hosts to connect to separated by commas, example: mongo1:27017, mongo2:27017 (default "localhost:27017")
  -p, --password string     Password for DB Authentication, Do not use this if you DB doesnt have authentication enabled
  -q, --queryFile string    Path to the query file, one query per line. Only the query string, example: {"branchCode":230}" (default "/tmp/query")
  -t, --threads int         Total number of threads to use. Equal to number of queries against mongodb (default 100)
  -T, --timeout int         db query timeout in seconds (default 15)
  -u, --username string     Username for DB Authentication, Do not use this if you DB doesnt have authentication enabled
  -v, --version             Prints version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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