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
fix: implement exponential backoff for NATS metrics scraping
Split NATS_TIMEOUT_AND_INITIAL_DELAY_MS into separate constants:
- NATS_TIMEOUT_MS (300ms) for NATS operation timeout
- INITIAL_WAIT_MS (500ms) for initial scraping interval
- MAX_WAIT_MS (9800ms) for maximum interval
The scraping interval now starts at 500ms and doubles after each
scrape up to 9.8 seconds, reducing load while maintaining responsiveness.
Signed-off-by: Keiven Chang <keivenchang@users.noreply.github.com>
0 commit comments