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

exp: Add the Zenith (Light Horizon) prototype #4352

Merged
merged 146 commits into from
Jan 9, 2024
Merged

exp: Add the Zenith (Light Horizon) prototype #4352

merged 146 commits into from
Jan 9, 2024

Conversation

paulbellamy
Copy link
Contributor

@paulbellamy paulbellamy commented Apr 25, 2022

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with name of package that is most changed in the PR, ex.
    services/friendbot, or all or doc if the changes are broad or impact many
    packages.

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated any docs (developer docs, .md
    files, etc... affected by this change). Take a look in the docs folder for a given service,
    like this one.

Release planning

  • I've updated the relevant CHANGELOG (here for Horizon) if
    needed with deprecations, added features, breaking changes, and DB schema changes.
  • I've decided if this PR requires a new major/minor version according to
    semver, or if it's mainly a patch change. The PR is targeted at the next
    release branch if it's not a patch change.

What

The working branch for the prototype Horizon, serving requests via "just-in-time" ingestion of history archives txmeta files.

3 services:

  • /exp/lighthorizon. Serves web requests
  • /exp/lighthorizon/index/batch. map/reduce style index rebuilder
  • /exp/lighthorizon/index/single. non-distributed index rebuilder
  • /exp/services/ledgerexporter. Runs captive-core, and outputs txmeta files.

Why

So operators don't need to maintain databases.

Fixes #4317

Known limitations

See: #4317 for todo list

Shaptic and others added 10 commits September 2, 2022 08:53
…ger downloads. (#4548)

* Refactor and simplify Archive abstraction to incorporate MetaArchive
* Actually add & use parallel downloads, preparing checkpoint chunks
* Fix test structures and mocking
* Fix cache to ignore on-disk if lockfile present
…4599)

- actually set the PARALLEL_DOWNLOADS parameter to use #4468
- return a 404 rather than a 500 if a ledger is missing as its more descriptive
- handle `count = 0` in average metric calculations
* Add ability to 'unset' bits and purge from index store
* Simplify empty compression checks
* Fix set/unset bugs with fuzzer test
* Add ability to preload cache in parallel after launching webserver
* Default to 1 day of ledgers @ 6s each
* Add logging instead of silent failure
@Shaptic Shaptic marked this pull request as ready for review January 5, 2024 20:57
@Shaptic Shaptic changed the title services/horizon: Ingestion-Lite Prototype exp: Add the Zenith (Light Horizon) prototype Jan 5, 2024
@Shaptic Shaptic enabled auto-merge (squash) January 9, 2024 19:20
@Shaptic Shaptic merged commit 423fa1f into master Jan 9, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Horizon Lite - MVP Epic
7 participants