0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/bin/check_kafka_clickhouse_up
Tim Glaser aab8e43d7d
Load clickhouse/kafka async and wait (#7707)
* Load clickhouse/kafka async and wait

* Change permissions

* Add to cloud tests

* move
2021-12-14 15:09:16 -08:00

16 lines
270 B
Bash
Executable File

#!/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