Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes issue with in cluster run; dashboard will wait for the first re… #241

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions bin/in-cluster-run
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
: ${KRANE_REPORT_OUTPUT:=none}

echo "Verify RedisGraph is UP..."
while [[ "$((printf "PING\r\n";) | nc redisgraph 6379 -w 2 | awk '{$1=$1};1')" != "+PONG" ]];
while [[ "$((printf "PING\r\n";) | nc redisgraph 6379 -w 2 | awk '{$1=$1};1')" != "+PONG" ]];
do echo "* Waiting for redisgraph to become available" && sleep 2;
done

echo "Starting report loop..."
while true; do
bin/krane report --incluster -o ${KRANE_REPORT_OUTPUT}
echo "- sleeping ${KRANE_REPORT_INTERVAL} sec"
echo "- Sleeping ${KRANE_REPORT_INTERVAL} sec"
sleep ${KRANE_REPORT_INTERVAL}
done &

sleep 5

echo "Starting Krane dashboard..."
bin/krane dashboard
while ! nohup bin/krane dashboard; do
echo "- Waiting for Krane dashboard to become available"
sleep 5
done