From 047ac0766c99c63926ffee74e4a0a91002c7c0fa Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Wed, 30 Apr 2025 13:26:54 +0300 Subject: [PATCH 1/3] reduce interval --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 18305fe..c21b9b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -371,9 +371,9 @@ services: restart: unless-stopped healthcheck: test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--header", "Content-Type: application/json", "--data", '[{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1},{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]', "http://localhost:8545/api/health"] - interval: 1m30s - timeout: 10s - retries: 3 + interval: 10s + timeout: 1s + retries: 10 graph-node-fastchain: container_name: streamr-dev-thegraph-node-fastchain image: graphprotocol/graph-node:v0.32.0 From 33fb06cd1ff3780efffa89beb9c308d511f6e731 Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Wed, 30 Apr 2025 13:28:30 +0300 Subject: [PATCH 2/3] wait: reduce time before logging, reduce poll interval --- streamr-docker-dev/bin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamr-docker-dev/bin.sh b/streamr-docker-dev/bin.sh index c9f25ae..921bcb3 100755 --- a/streamr-docker-dev/bin.sh +++ b/streamr-docker-dev/bin.sh @@ -173,12 +173,12 @@ wait() { done if [ ${#waiting_for_services[@]} -gt 0 ]; then - if (( time_waited >= 60 )); then + if (( time_waited >= 30 )); then echo "***********************************" echo "Still waiting for the following services:" for s in "${waiting_for_services[@]}"; do echo "$s"; done fi - sleep 5 + sleep 1s time_waited=$((time_waited+5)) else echo "All services up and running." From 568c4bb7c1f773f0cd3f53c3b5f59fb0a72a150b Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Wed, 30 Apr 2025 13:34:20 +0300 Subject: [PATCH 3/3] fix time_waited --- streamr-docker-dev/bin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamr-docker-dev/bin.sh b/streamr-docker-dev/bin.sh index 921bcb3..6d7e625 100755 --- a/streamr-docker-dev/bin.sh +++ b/streamr-docker-dev/bin.sh @@ -179,7 +179,7 @@ wait() { for s in "${waiting_for_services[@]}"; do echo "$s"; done fi sleep 1s - time_waited=$((time_waited+5)) + time_waited=$((time_waited+1)) else echo "All services up and running." break