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

[Indexer] Add synthetic ingestion and benchmark framework #19899

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Oct 17, 2024

Description

This PR adds two things:

  1. A synthetic workload generator for the indexer. It generates synthetic checkpoints and transactions which are written to the ingestion dir. Currently only transfer transactions are generated, but we could extend it later.
  2. A benchmark framework that allows us to connect the synthetic ingestion with any indexer implementation. The indexer implementation will need to implement a wrapper for a trait type.

Test plan

Added an e2e test.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 5:40pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 5:40pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 5:40pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 5:40pm

Copy link
Contributor

@gegaowp gegaowp left a comment

Choose a reason for hiding this comment

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

looks great, thanks Xun!

@@ -160,7 +160,7 @@ impl<W: Worker + 'static> WorkerPool<W> {

// Wait for all workers to finish
for join_handle in join_handles {
join_handle.await.expect("worker thread panicked");
let _ = join_handle.await;
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this, presumably if workers exit gracefully due to cancel, the behavior before & after is the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That wasn't needed. Forgot to remove. Thanks!

@lxfind lxfind force-pushed the sui-synthetic-ingestion branch from af9f43e to 52e42f0 Compare October 18, 2024 17:38
@lxfind lxfind enabled auto-merge (squash) October 18, 2024 17:39
@lxfind lxfind merged commit 3d9d5f2 into main Oct 18, 2024
50 checks passed
@lxfind lxfind deleted the sui-synthetic-ingestion branch October 18, 2024 18:03
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.

2 participants