Merge pull request #268 from gyuho/scripts

bench-configuration: add example scripts
This commit is contained in:
Gyu-Ho Lee 2017-02-05 14:07:04 -08:00 committed by GitHub
commit c248425992
8 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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