From df3bf0974fa5becd54d40279650c62eeed493462 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 9 Dec 2023 18:24:57 +0100 Subject: [PATCH] Slightly better --- hardware/hardware.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/hardware.sh b/hardware/hardware.sh index a85008e80..bd073d713 100755 --- a/hardware/hardware.sh +++ b/hardware/hardware.sh @@ -30,6 +30,8 @@ trap finish EXIT echo "Waiting for clickhouse-server to start" +timeout 300 tail -n+0 -f /clickhouse-benchmark/server.log | grep --max-count 1 'Ready for connections' + for i in {1..300}; do sleep 1 ./clickhouse client --query "SELECT 'Ok.'" 2>/dev/null && break || echo -n '.'