You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Health check should support configurable consecutive failure/success thresholds before marking a node as error or recovered #620
Add configurable node health check thresholds to reduce false positives.
Currently, a single failed health check can mark a node as error or trigger a reconnect. In real-world environments, temporary network issues, API delays, or short Xray restarts may cause false downtime reports.
Suggested settings:
NODE_HEALTH_FAIL_THRESHOLD=3
NODE_HEALTH_RECOVER_THRESHOLD=2
Example behavior:
Mark node as error only after 3 consecutive failed checks.
Mark node as healthy only after 2 consecutive successful checks.
This would significantly improve uptime accuracy and prevent unnecessary reconnects.
Added in #950: NODE_HEALTH_FAIL_THRESHOLD (default 3) and NODE_HEALTH_RECOVER_THRESHOLD (default 2) set how many failed checks mark a node as down and how many good ones bring it back (see .env.example). It ships in the next release. Thanks for the request!
Activity
dr-hoseyn commentedon Sep 27, 2026
done
T3ST3ST3R0N commentedon Oct 11, 2026
Added in #950:
NODE_HEALTH_FAIL_THRESHOLD(default 3) andNODE_HEALTH_RECOVER_THRESHOLD(default 2) set how many failed checks mark a node as down and how many good ones bring it back (see.env.example). It ships in the next release. Thanks for the request!