fix(scripts/test-cluster): use v2 flags and find the path for etcd
parent
7a7f6aea00
commit
0c8329a3fb
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SESSION=etcd-cluster
|
SESSION=etcd-cluster
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
ulimit -n unlimited
|
ulimit -n unlimited
|
||||||
|
|
||||||
|
@ -9,12 +10,12 @@ tmux new-session -d -s $SESSION
|
||||||
tmux new-window -t $SESSION:1 -n 'peers'
|
tmux new-window -t $SESSION:1 -n 'peers'
|
||||||
tmux split-window -h
|
tmux split-window -h
|
||||||
tmux select-pane -t 0
|
tmux select-pane -t 0
|
||||||
tmux send-keys "./bin/etcd -s 127.0.0.1:7001 -c 127.0.0.1:4001 -d peer1 -n peer1" C-m
|
tmux send-keys "${DIR}/../bin/etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 -data-dir peer1 -name peer1" C-m
|
||||||
|
|
||||||
for i in 2 3; do
|
for i in 2 3; do
|
||||||
tmux select-pane -t 0
|
tmux select-pane -t 0
|
||||||
tmux split-window -v
|
tmux split-window -v
|
||||||
tmux send-keys "./bin/etcd -cors='*' -s 127.0.0.1:700${i} -c 127.0.0.1:400${i} -C 127.0.0.1:7001 -d peer${i} -n peer${i}" C-m
|
tmux send-keys "${DIR}/../bin/etcd -cors='*' -peer-addr 127.0.0.1:700${i} -addr 127.0.0.1:400${i} -peers 127.0.0.1:7001 -data-dir peer${i} -name peer${i}" C-m
|
||||||
done
|
done
|
||||||
|
|
||||||
# Attach to session
|
# Attach to session
|
||||||
|
|
Loading…
Reference in New Issue