0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
posthog/bin/check_kafka_clickhouse_up

16 lines
270 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
echo "Waiting for Kafka and Clickhouse"
# Check Kafka
while true; do
nc -z localhost 9092 && break || echo "Trying kafka..." && sleep 1
done
# Check Clickhouse
while true; do
wget -nv -t1 --spider 'http://localhost:8123/' && break || sleep 1
done