Skip to content

Commit 59871ef

Browse files
committed
less start attempts
1 parent d9dc30d commit 59871ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/start-influxdb-native.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ if ! kill -0 ${INFLUXDB_PID} 2>/dev/null; then
4343
exit 1
4444
fi
4545

46-
echo "Waiting for InfluxDB to be ready (polling with exponential backoff)..."
47-
max_attempts=60
46+
echo "Waiting for InfluxDB to be ready (polling with exponential backoff, max 2 minutes)..."
47+
max_attempts=26
4848
attempt=0
4949
wait_seconds=1
5050

scripts/start-influxdb.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ if errorlevel 1 (
5252
)
5353

5454
echo Waiting for InfluxDB to be ready...
55-
REM Poll with exponential backoff: start with short waits, increase gradually
56-
set /a max_attempts=60
55+
REM Poll with exponential backoff: start with short waits, increase gradually (max 2 minutes total)
56+
set /a max_attempts=26
5757
set /a attempt=0
5858
set /a wait_seconds=1
5959
:health_check

0 commit comments

Comments
 (0)