mirror of https://github.com/etcd-io/dbtester.git
Merge pull request #268 from gyuho/scripts
bench-configuration: add example scripts
This commit is contained in:
commit
c248425992
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
USER_NAME=coreos
|
||||||
|
BRANCH_NAME=master
|
||||||
|
cd $HOME
|
||||||
|
rm -rf $HOME/go/src/github.com/coreos/dbtester
|
||||||
|
git clone https://github.com/$USER_NAME/dbtester --branch $BRANCH_NAME $HOME/go/src/github.com/coreos/dbtester
|
||||||
|
|
||||||
|
cd $HOME
|
||||||
|
go install -v ./go/src/github.com/coreos/dbtester
|
||||||
|
|
||||||
|
dbtester agent -h
|
||||||
|
dbtester control -h
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# agent; specify network interface, disk device on the machine
|
||||||
|
# this starts the database on host machine when signalled from 'control'
|
||||||
|
nohup dbtester agent --network-interface ens4 --disk-device sda1 --agent-port :3500 &
|
||||||
|
|
||||||
|
# control; specify 'control' configuration file
|
||||||
|
# this starts client stressing
|
||||||
|
nohup dbtester control -c config.yaml > $HOME/control.log 2>&1 &
|
||||||
|
|
||||||
|
# analyze; get all data from remote machines
|
||||||
|
# specify 'analyze' configuration file
|
||||||
|
# this aggregates, generates all graphs, texts
|
||||||
|
dbtester analyze --config analyze.yaml
|
||||||
Loading…
Reference in New Issue