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

Ingestion Filtering by Account #4221

Closed
sreuland opened this issue Feb 9, 2022 · 0 comments · Fixed by #4277
Closed

Ingestion Filtering by Account #4221

sreuland opened this issue Feb 9, 2022 · 0 comments · Fixed by #4277
Assignees
Labels

Comments

@sreuland
Copy link
Contributor

sreuland commented Feb 9, 2022

What problem does your feature solve?

Horizon ingestion of full ledger space from core can take up massive amounts of disk space on db.

What would you like to see?

As a service provider using my own installation of Horizon, I want to track transactions and operations on my customer accounts that have been onboarded to my service.

I want to configure which accounts trigger related transaction and operation info to be ingested by my Horizon installation and persisted to my horizon historical database.

I don't want my horizon historical database to contain data related to other accounts, so, I expect to see my horizon db size on disk remain relatively small with a slower growth rate compared to no-filtering(i.e. data for entire ledger was saved)

Acceptance Criteria:

  • Horizon provides an Account Filter rule configuration API endpoint on the secure Horizon Admin port to perform CRUD on the account whitelist rule model.
  • Design the account whitelist rule model, likely a list/array of strings representing whitelisted account ids.
  • All Horizon ingestion processes(current-forward/reingest) run filtration, apply the account whitelist rules and result in only persisting historical data that passes the filter.
  • The account filter effectively applies latest config rules to current and ongoing ingestion activity which occurs after a filter rule is updated.
  • The Horizon Account Filter feature can be configured as a toggle/switch, enabled or disabled.
  • The Horizon Account Filter feature should be available as early/alpha drop builds to some willing early-adopter partners for trial usage.
  • Need to choose feature branch or mainline development(i.e. merged to master often).

What alternatives are there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants