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

[EI-444] Migrate events processor to sdk #470

Merged
merged 17 commits into from
Aug 14, 2024
Merged

[EI-444] Migrate events processor to sdk #470

merged 17 commits into from
Aug 14, 2024

Conversation

rtso
Copy link
Collaborator

@rtso rtso commented Jul 19, 2024

Description

Migrate the events processor to using aptos-indexer-processor-sdk. The plan is to deploy it and monitor performance.

Testing

Run events processor
Screenshot 2024-07-31 at 5 39 00 PM

rust/.cargo/config.toml Outdated Show resolved Hide resolved
@rtso rtso requested review from yuunlimm and a team July 19, 2024 00:18
@rtso rtso changed the title Migrate events processor to sdk [EI-444] Migrate events processor to sdk Jul 26, 2024
Copy link

linear bot commented Jul 26, 2024


fn main() -> Result<()> {
let num_cpus = num_cpus::get();
let worker_threads = (num_cpus * RUNTIME_WORKER_MULTIPLIER).max(16);
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand this is copied from the current code, but I don't see any reason to do RUNTIME_WORKER_MULTIPLIER, or max(16) here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you suggest?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's ok to use just num_cpus.

@rtso rtso force-pushed the sdk-migration branch 7 times, most recently from 492ca77 to af38d2c Compare August 6, 2024 20:13
@rtso rtso force-pushed the sdk-migration branch 2 times, most recently from be74c70 to 6c0e87a Compare August 13, 2024 02:30
@rtso rtso requested a review from grao1991 August 14, 2024 16:54
@rtso rtso merged commit d1b76cf into main Aug 14, 2024
6 of 7 checks passed
@rtso rtso deleted the sdk-migration branch August 14, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants