From 962fb158f0c26d731b4d5f5855ab5f277a006eed Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sun, 5 Feb 2017 14:06:10 -0800 Subject: [PATCH] bench-configuration: add example scripts --- .../{install-go.sh => 00-install-go.sh} | 0 .../{install-etcd.sh => 01-install-etcd.sh} | 0 .../{install-cetcd.sh => 02-install-cetcd.sh} | 0 .../{install-consul.sh => 02-install-consul.sh} | 0 .../{install-zetcd.sh => 02-install-zetcd.sh} | 0 ...r-ubuntu.sh => 02-install-zookeeper-ubuntu.sh} | 0 bench-configuration/03-install-dbtester.sh | 14 ++++++++++++++ bench-configuration/04-run-dbtester.sh | 15 +++++++++++++++ 8 files changed, 29 insertions(+) rename bench-configuration/{install-go.sh => 00-install-go.sh} (100%) rename bench-configuration/{install-etcd.sh => 01-install-etcd.sh} (100%) rename bench-configuration/{install-cetcd.sh => 02-install-cetcd.sh} (100%) rename bench-configuration/{install-consul.sh => 02-install-consul.sh} (100%) rename bench-configuration/{install-zetcd.sh => 02-install-zetcd.sh} (100%) rename bench-configuration/{install-zookeeper-ubuntu.sh => 02-install-zookeeper-ubuntu.sh} (100%) create mode 100755 bench-configuration/03-install-dbtester.sh create mode 100755 bench-configuration/04-run-dbtester.sh diff --git a/bench-configuration/install-go.sh b/bench-configuration/00-install-go.sh similarity index 100% rename from bench-configuration/install-go.sh rename to bench-configuration/00-install-go.sh diff --git a/bench-configuration/install-etcd.sh b/bench-configuration/01-install-etcd.sh similarity index 100% rename from bench-configuration/install-etcd.sh rename to bench-configuration/01-install-etcd.sh diff --git a/bench-configuration/install-cetcd.sh b/bench-configuration/02-install-cetcd.sh similarity index 100% rename from bench-configuration/install-cetcd.sh rename to bench-configuration/02-install-cetcd.sh diff --git a/bench-configuration/install-consul.sh b/bench-configuration/02-install-consul.sh similarity index 100% rename from bench-configuration/install-consul.sh rename to bench-configuration/02-install-consul.sh diff --git a/bench-configuration/install-zetcd.sh b/bench-configuration/02-install-zetcd.sh similarity index 100% rename from bench-configuration/install-zetcd.sh rename to bench-configuration/02-install-zetcd.sh diff --git a/bench-configuration/install-zookeeper-ubuntu.sh b/bench-configuration/02-install-zookeeper-ubuntu.sh similarity index 100% rename from bench-configuration/install-zookeeper-ubuntu.sh rename to bench-configuration/02-install-zookeeper-ubuntu.sh diff --git a/bench-configuration/03-install-dbtester.sh b/bench-configuration/03-install-dbtester.sh new file mode 100755 index 00000000..c0e196b9 --- /dev/null +++ b/bench-configuration/03-install-dbtester.sh @@ -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 diff --git a/bench-configuration/04-run-dbtester.sh b/bench-configuration/04-run-dbtester.sh new file mode 100755 index 00000000..ecb469e0 --- /dev/null +++ b/bench-configuration/04-run-dbtester.sh @@ -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