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

cleanup: simplify the RPC concurrency configuration #72

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

msf
Copy link
Contributor

@msf msf commented Jul 29, 2024

The previous code was confusing, the RPC-CONCURRENCY was configuring the number of parallel blocks we could ingest, instead of the real jsonRPC concurrency to the RPC node. It also didn't match what we had in our documentation (the README)

This change (in a backwards compatible way) makes the variable configure the jsonRPC max concurrency. The default value changed from: 25 to 80 to account for this.
It also updates the documentation.

Number of concurrent workers to fetch blocks is now configured internally to: RPC_CONCURRENCY / 4.

The previous code was confusing, the RPC-CONCURRENCY was configuring the
number of parallel blocks we could ingest, instead of the real jsonRPC
concurrency to the RPC node.

This (in a backwards compatible way) makes the variable configure the
jsonRPC max concurrency. The default value changed from: 25 to 80 to
account for this.

Number of concurrent workers to fetch blocks is now configured
internally to: RPC_CONCURRENCY / 4.
@msf msf changed the title cleanup: simplify the concurrency configuration cleanup: simplify the RPC concurrency configuration Jul 29, 2024
Comment on lines +52 to +57
### Tuning for throughput
Throughput depends on: latency & request rate between RPC <-> Node Indexer <--> DuneAPI and can be tuned via a combination of:
1. RPC_CONCURRENCY, higher values feed more blocks into the node indexer to process
1. MAX_BATCH_SIZE, higher values send more blocks per request to DuneAPI
1. BLOCK_SUBMIT_INTERVAL, the interval at which blocks to DuneAPI
See `--help` for up to date default values.
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this section!

@msf msf merged commit f9f3195 into main Jul 30, 2024
1 check passed
@msf msf deleted the simplify-concurrency-config branch July 30, 2024 14:23
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