Skip to content

Commit

Permalink
Make hardware benchmark self-driving
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Dec 9, 2023
1 parent 25563a8 commit 2af3711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardware/hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ trap finish EXIT

echo "Waiting for clickhouse-server to start"

for i in {1..30}; do
for i in {1..300}; do
sleep 1
./clickhouse client --query "SELECT 'Ok.'" 2>/dev/null && break || echo -n '.'
if [[ $i == 30 ]]; then exit 1; fi
if [[ $i == 300 ]]; then exit 1; fi
done

if [[ $(./clickhouse client --query "EXISTS hits") == '1' && $(./clickhouse client --query "SELECT count() FROM hits") == '100000000' ]]; then
Expand Down Expand Up @@ -90,7 +90,7 @@ echo

touch {cpu_model,cpu,df,memory,memory_total,blk,mdstat,instance}.txt

if [ "${OS}" = "Darwin" ]
if [ "${OS}" = "Darwin" ]
then
echo '----Version, build id-----------'
./clickhouse local --query "SELECT format('Version: {}', version())"
Expand Down

0 comments on commit 2af3711

Please sign in to comment.