Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] services/horizon: Cache files downloaded from HAs #5165

Closed
wants to merge 6 commits into from

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Jan 17, 2024

What

Add an on-disk cache for the ingestion state machine to avoid repeated downloads from the history archives.

Why

This avoids unnecessary retries.

Known limitations

The cache causes errors when:

  • one is related to a double-close on the file handle
  • one is related to failed downloads from Captive Core, somehow..

We need to decide on the appropriate cache size (perhaps making it controllable by a parameter? but I think that's overkill).

We should clean the cache if possible on a clean shutdown.

@Shaptic Shaptic changed the title services/horizon: Cache files downloaded from HAs [Draft] services/horizon: Cache files downloaded from HAs Jan 17, 2024
@Shaptic Shaptic self-assigned this Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant