0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00
posthog/bin/check_kafka_clickhouse_up

14 lines
280 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
# Check Kafka
while true; do
nc -z localhost 9092 && break || echo 'Checking Kafka status...' && sleep 1
done
# Check ClickHouse
while true; do
curl -s -o /dev/null -I 'http://localhost:8123/' && break || echo 'Checking ClickHouse status...' && sleep 1
done