ripple / validator-history-service

Service for ingesting, aggregating, storing, and disbursing XRP Ledger validation related data.
ISC License
14 stars 7 forks source link

fix: Reconnect immediately to established connections #208

Closed pdp2121 closed 4 months ago

pdp2121 commented 5 months ago

High Level Overview of Change

The VHS connections is experiencing lost connections to a large number of nodes (only 40-50 node connections remained in February, with a low of 9-15 connections in January). This is because those node connections failed after being connected and the VHS does not try to reconnect until the next hour (bulk connection also led to slow response and high resource consumption). The frequent closing codes seen so far include:

This PR will allow the VHS to reconnect to established connections after failure, instead of waiting for an hour for a bulk connections attempt. This would also help fixing the problem in https://github.com/ripple/validator-history-service/pull/203.

Type of Change

Test Plan

Test on staging: