Loop over cluster up jepsen
This commit is contained in:
parent
a8a6b7e533
commit
c5a96fe62b
@ -178,8 +178,17 @@ PROCESS_RESULTS() {
|
||||
|
||||
CLUSTER_UP() {
|
||||
PRINT_CONTEXT
|
||||
"$script_dir/jepsen/docker/bin/up" --daemon
|
||||
sleep 10
|
||||
local cnt=0
|
||||
while [[ "$cnt" < 5 ]]; do
|
||||
if ! "$script_dir/jepsen/docker/bin/up" --daemon; then
|
||||
cnt=$cnt+1
|
||||
continue
|
||||
else
|
||||
sleep 10
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo -e "\n+++++cnt=$cnt+++++\n"
|
||||
# Ensure all SSH connections between Jepsen containers work
|
||||
for node in $(docker ps --filter name=jepsen* --filter status=running --format "{{.Names}}"); do
|
||||
if [ "$node" == "jepsen-control" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user