forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
+19
-4
@@ -18,15 +18,30 @@ JWT_ENABLED=true
|
||||
BCRYPT_SALT_ROUNDS=12
|
||||
|
||||
# Rate limiting
|
||||
# Set false only for local batch testing; keep enabled in deployed environments.
|
||||
RATE_LIMIT_ENABLED=true
|
||||
THROTTLE_TTL=60
|
||||
THROTTLE_LIMIT=100
|
||||
|
||||
# Route outbound provider API calls through an SSH tunnel (Termius dynamic/SOCKS forward)
|
||||
# Use socks5h so DNS resolves on the remote server. Leave empty for direct access.
|
||||
OUTBOUND_PROXY=socks5h://127.0.0.1:6565
|
||||
# Route outbound provider API calls through a local OpenSSH dynamic forward
|
||||
# (or another SOCKS5 client). Use socks5h so DNS resolves on the remote server.
|
||||
# Leave empty for direct access.
|
||||
OUTBOUND_PROXY=socks5h://127.0.0.1:4030
|
||||
|
||||
# Log every outbound provider HTTP call (request URL, status, response body preview)
|
||||
OUTBOUND_HTTP_DEBUG=true
|
||||
OUTBOUND_HTTP_DEBUG=false
|
||||
|
||||
# Reliability controls
|
||||
IDEMPOTENCY_TTL_MS=86400000
|
||||
PROVIDER_CIRCUIT_FAILURE_THRESHOLD=5
|
||||
PROVIDER_CIRCUIT_OPEN_MS=30000
|
||||
PROVIDER_BULKHEAD_LIMIT=16
|
||||
HEALTH_HEAP_MB=512
|
||||
HEALTH_DISK_THRESHOLD_PERCENT=0.9
|
||||
HEALTH_DISK_PATH=/
|
||||
|
||||
# Destructive local maintenance action; keep disabled outside local testing.
|
||||
INQUIRY_LOG_PURGE_ENABLED=false
|
||||
|
||||
# Provider routing (per inquiry type)
|
||||
PERSON_DEFAULT_PROVIDER=PARSIAN
|
||||
|
||||
Reference in New Issue
Block a user