hivemind icon indicating copy to clipboard operation
hivemind copied to clipboard

writer node: smarter healthcheck

Open roadscape opened this issue 6 years ago • 0 comments

During sync, ideally we'd be checking rate of progress at each stage.

We may need a separate lightweight db to store current state so that while postgres goes down we have access to status and last 'checkpoint'. The simplest implementation could update a last checkpoint date + rate of progress. The process is healthy if the last checkpoint was within last 30 mins and rate of progress meets some reasonable thresholds.

roadscape avatar Jun 05 '18 21:06 roadscape