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

services/horizon/cmd: spike, options on how to obtain archive server list #5142

Open
sreuland opened this issue Dec 15, 2023 · 2 comments
Open

Comments

@sreuland
Copy link
Contributor

sreuland commented Dec 15, 2023

What problem does your feature solve?

NETWORK=testnet|pubnet usage will trigger default hardcoded archive url configuration on HISTORY_ARCHIVE_URLS to public stellar archive hosts, which doesn't promote decentralization in practice. HISTORY_ARCHIVE_URLS can still be set by users to override, but is not required.

What would you like to see?

when using NETWORK parameter, the configuration of servers for HISTORY_ARCHIVE_URLS should promote decentralization, how to accomplish this needs to be explored.

Research the options to obtain a decentralized list of archive server hosts and provide a write-up on a separate doc or here on ticket. Include a summarized table which compares/contrasts top 2 or 3 options.

for starters, a few options:

  • don't set any hardcoded archive servers by default with NETWORK usage, thereby requires HISTORY_ARCHIVE_URLS to be defined by users when they are running an ingesting instance of horizon.
  • hardcode a blended list from the ecosystem for archive servers into HISTORY_ARCHIVE_URLS when using NETWORK, this requires maintenance over time.
  • use a service locator pattern for horizon to obtain a list of archive servers dynamically by querying a separate service, however, this results in a central source for the lookup though, similar to DNS.
  • derive archive urls from the quorum set defined in captive core config of the tier 1 validators.

What alternatives are there?

@sreuland
Copy link
Contributor Author

discussion on #4949 is the source context, it explains the need for focus on decentralized approach the archive server urls.

@sreuland
Copy link
Contributor Author

consider deriving archive urls from captive core config quorum set for tier 1 validators.

@sreuland sreuland changed the title services/horizon/cmd: NETWORK based config of archive servers needs to be more dynamic services/horizon/cmd: spike, options on how to obtain archive server list Dec 19, 2023
@mollykarcher mollykarcher added this to the platform sprint 46 milestone Mar 27, 2024
@mollykarcher mollykarcher removed this from the platform sprint 46 milestone Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants