clio icon indicating copy to clipboard operation
clio copied to clipboard

Use `can_delete` to tell rippled when it's ok to delete ledgers

Open cjcobb23 opened this issue 3 years ago • 1 comments

Every time clio finishes processing a ledger, clio should send a can_delete request to rippled, with can_delete set to the ledger which clio just processed. This tells rippled that it's safe to delete that ledger from it's nodestore.

rippled may respond with a notEnabled error, if advisory deletion is not enabled. However, I think clio should just keep sending these messages, because the rippled node could be restarted with an updated config, and the messages are tiny.

This will require a new method in ETLLoadBalancer that sends a websocket request to ALL of the connected rippled nodes, instead of one at random.

cjcobb23 avatar Oct 04 '21 20:10 cjcobb23

This may be useful in the future. Leaving it for now. See doc here https://xrpl.org/can_delete.html#can_delete

godexsoft avatar Jan 12 '23 13:01 godexsoft