influxdb/tests/tmux/3_shards

29 lines
782 B
Plaintext
Raw Normal View History

2015-01-25 02:02:45 +00:00
#!/bin/bash
set -e # stop if anything fails
set -x
session="influxd-3-shard-test"
# start the world if we're not already in session
if ! tmux ls | grep -q "$session"; then
cd $GOPATH/src/github.com/influxdb/influxdb/tests/tmux
tmux new-session -d -s $session
# create and split main window into three panes
tmux split-window -h -t $session
tmux split-window -h -t $session
# Fire up the servers
2015-02-04 17:25:38 +00:00
tmux send-keys -t $session:1.1 'influxd -config server_8086.toml' C-m
2015-01-26 17:44:06 +00:00
sleep 1
2015-02-04 17:25:38 +00:00
tmux send-keys -t $session:1.2 'influxd -config server_8087.toml -join http://127.0.0.1:8086' C-m
tmux send-keys -t $session:1.3 'influxd -config server_8088.toml -join http://127.0.0.1:8086' C-m
sleep 1
./seed.sh
2015-01-26 17:44:06 +00:00
# even out the layouts
tmux select-layout -t $session even-horizontal
2015-01-25 02:02:45 +00:00
fi