Skip to content

GRPC Ingest#183

Closed
kespinola wants to merge 87 commits intometaplex-foundation:mainfrom
rpcpool:grpc-ingest
Closed

GRPC Ingest#183
kespinola wants to merge 87 commits intometaplex-foundation:mainfrom
rpcpool:grpc-ingest

Conversation

@kespinola
Copy link
Collaborator

@kespinola kespinola commented Apr 10, 2024

Goal

Reduce the operational cost and complexity of running DAS by switching to Dragonmouth grpc stream for account and transaction updates.

Upgrade the ingestion engine by refactoring configuration, workers, and metrics.

Approach

Create a new crate named das-grpc-ingest which has 3 primary subcommands.

stream - connects to Dragonmouth and pushes relevant events into a redis queue
ingest - subscribes to redis streams, spawns workers, and processes events using program_transformers crate.
download - fetches metadata json for asset_data replacement to bgtasks
Based on #144

closes #83

Next Steps

  • Remove statsd as a dependency of program_transforms. Make the metrics backend the responsibility of the ingest runtime so prometheus can be used for grpc-ingest but nft_ingester can continue to use statsd.

Diagram

GRPC DAS Ingest V1 drawio

@kespinola kespinola force-pushed the grpc-ingest branch 3 times, most recently from b5d93b9 to a31344f Compare April 15, 2024 13:12
run: |
cargo tree
git checkout Cargo.lock
cargo tree --frozen
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yellowstone crates are referenced using git so require network fetch to retrieve which violates frozen flag.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kespinola kespinola marked this pull request as ready for review April 15, 2024 13:50
@niks3089
Copy link
Collaborator

Went over it quickly and it looks good. One question though, how would this work if we want to backfill some accounts or run account flushes to reindex some accounts?

Nagaprasadvr and others added 25 commits October 22, 2024 13:58
* feat: Add NFT single backfill command (ops) to fetch mint,tokenAcc,metadata for a nft and backfill it to the db

* chore: cleanup

* chore: optimize
* feat: move backfill to bubblegum crate and verfiy to it

* feat: grpc ingest monitor
…le each stream (#168)

* feat : separate global stream to multiple streams depending on programs

* WIP : add metrics for each program subscription

* refactor: add structs with builder for SubscriptionTask and add better shutdown handling

* refactor : separate subscription builder to work on each subscription

* refactor: change pipeline to handle single stream instead of multiple streams

* Update: readme for grpc-ingest, index-readme, ops (#172)

* Update: readme for grpc-ingest, index-readme, ops

* Update : README

* fix: prometheus ports

* chore: resolve comments

* chore: add comments to config files in grpc-ingest (#173)

* change tag name of subscriptions

* Remove topograph from grpc2redis

---------

Co-authored-by: Kyle Espinola <kyle.s.espinola@gmail.com>
* time the program transformer tasks

* add consumer labels to metrics
Co-authored-by: Ahzam Akhtar <ahzamakhtar@Ahzams-MacBook-Pro.local>
Metadata download status metrics

---------

Co-authored-by: Kyle Espinola <kyle.s.espinola@gmail.com>
* Update to rust 1.79.0

* feat : add metadata_json backfiller

* cleanup

* revert metaplex/plerkle-validator image to from ..79 to ..75

---------

Co-authored-by: Kyle Espinola <kyle.s.espinola@gmail.com>
* `wip` concurrent download metadata notifier with channels

* `chore` Clean debugging changes

* `chore` remove duplicated config files and debug trace

* Refactor to download metadata publisher

* Time metric for metadata josn publish

---------

Co-authored-by: Kyle Espinola <kyle.s.espinola@gmail.com>
@kespinola kespinola marked this pull request as ready for review February 3, 2025 13:38
@kespinola
Copy link
Collaborator Author

moved here

#240

@kespinola kespinola closed this Feb 24, 2025
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.

Proposal: gRPC based indexer

8 participants