Update documentation: real_world.md

This commit is contained in:
Alex Auvolat
2021-10-19 17:31:04 +02:00
parent 550ce7db2a
commit d9c52e9a9c
5 changed files with 70 additions and 109 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ for count in $(seq 1 3); do
done
RETRY=120
until garage -c /tmp/config.1.toml status 2>&1|grep -q Healthy ; do
until garage -c /tmp/config.1.toml status 2>&1|grep -q HEALTHY ; do
(( RETRY-- ))
if (( RETRY <= 0 )); then
echo -en "${MAIN_LABEL} Garage did not start"
+2 -2
View File
@@ -11,7 +11,7 @@ PATH="${GARAGE_DEBUG}:${GARAGE_RELEASE}:${NIX_RELEASE}:$PATH"
sleep 5
RETRY=120
until garage -c /tmp/config.1.toml status 2>&1|grep -q Healthy ; do
until garage -c /tmp/config.1.toml status 2>&1|grep -q HEALTHY ; do
(( RETRY-- ))
if (( RETRY <= 0 )); then
echo "garage did not start in time, failing."
@@ -22,7 +22,7 @@ until garage -c /tmp/config.1.toml status 2>&1|grep -q Healthy ; do
done
garage -c /tmp/config.1.toml status \
| grep UNCONFIGURED \
| grep 'NO ROLE' \
| grep -Po '^[0-9a-f]+' \
| while read id; do
garage -c /tmp/config.1.toml node configure -z dc1 -c 1 $id