feat: add database initialization retry logic and enhance auth logging

This commit is contained in:
2026-06-03 17:09:31 +02:00
parent 10815300aa
commit 18dbcd372b
8 changed files with 189 additions and 90 deletions
+16
View File
@@ -33,3 +33,19 @@ PGPORT=5432
PGUSER=postgres
PGPASSWORD=
PGDATABASE=collabtable
#################################################################
# Startup resilience and sync/auth tuning
#################################################################
# DB init retry interval in milliseconds (default: 5000)
DB_INIT_RETRY_INTERVAL_MS=5000
# Max DB init retry attempts. 0 means retry forever (default: 0)
DB_INIT_RETRY_MAX_ATTEMPTS=0
# Suppress repetitive auth warning logs for the same path/method (default: 30000)
AUTH_LOG_THROTTLE_MS=30000
# Allow at most this much client clock skew into sync timestamps (default: 0)
# Keep this at 0 to prevent future-dated rows from being re-sent in hot loops.
SYNC_MAX_FUTURE_SKEW_MS=0