Harden API process under production load

This commit is contained in:
Ben
2026-06-08 00:10:37 -04:00
parent d05d5f0b37
commit 817f416b79
6 changed files with 105 additions and 6 deletions
+11
View File
@@ -19,6 +19,17 @@ API_PORT=3334
# Keep API_BIND_HOST as 127.0.0.1 when a reverse proxy terminates public traffic.
API_BIND_HOST=127.0.0.1
API_PUBLIC_PORT=3334
API_MAX_CONNECTIONS=512
API_REQUEST_TIMEOUT_MS=15000
API_HEADERS_TIMEOUT_MS=10000
API_KEEP_ALIVE_TIMEOUT_MS=5000
API_SOCKET_TIMEOUT_MS=15000
API_TLS_HANDSHAKE_TIMEOUT_MS=3000
API_LISTEN_BACKLOG=1024
API_NODE_ARGS=--max-old-space-size=512
API_MAX_MEMORY_RESTART=768M
API_KILL_TIMEOUT_MS=5000
API_RESTART_DELAY_MS=2000
# Plain TCP Stratum ports accept both SV1 JSON-RPC and SV2 Noise/binary traffic.
STRATUM_PORTS=3333,3332,3331,3330