Skip to content

apollo_batcher: document why the view call concurrency bound is 32 - #14988

Merged
asaf-sw merged 1 commit into
main-v0.14.3from
asaf/batcher-view-call-bound-rationale
Aug 23, 2026
Merged

asaf-sw merged 1 commit into
main-v0.14.3from
asaf/batcher-view-call-bound-rationale

Conversation

@asaf-sw

@asaf-sw asaf-sw commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Rewrites the doc comment on apollo_batcher's MAX_CONCURRENT_VIEW_CALLS to state the pool the bound is measured against: the node runs a bare #[tokio::main], so the blocking pool holds tokio's default 512 threads and 32 slots is under 7% of it. Names the other consumers sharing that pool, block builder execution, block hash computation, the gateway's stateful validator and the transaction converter, so the headroom claim is checkable rather than asserted.

Comment only. No code, no behavior change, nothing deferred.


Detailed Summary for AI Bots

State the blocking pool the bound is measured against: the node runs a bare
#[tokio::main], so the pool holds tokio's default 512 threads, making 32 slots
6.25% of it. Names the other consumers sharing the pool (block_builder execution,
block hash computation, the gateway's stateful validator, the transaction
converter) so the headroom claim is checkable rather than asserted.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

asaf-sw commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@asaf-sw
asaf-sw force-pushed the asaf/batcher-view-call-bound-rationale branch 8 times, most recently from 7551674 to 970e348 Compare August 23, 2026 07:50
State the blocking pool the bound is measured against: the node runs a bare
`#[tokio::main]`, so the pool holds tokio's default 512 threads, making 32 slots
6.25% of it. Names the other consumers sharing the pool (block_builder execution,
block hash computation, the gateway's stateful validator, the transaction
converter) so the headroom claim is checkable rather than asserted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@asaf-sw
asaf-sw force-pushed the asaf/batcher-view-call-bound-rationale branch from 970e348 to 2d6081d Compare August 23, 2026 11:12
@asaf-sw
asaf-sw marked this pull request as ready for review August 23, 2026 11:53

@matanl-starkware matanl-starkware left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@matanl-starkware reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on asaf-sw).

@asaf-sw
asaf-sw added this pull request to the merge queue Aug 23, 2026
Merged via the queue into main-v0.14.3 with commit 78a96f3 Aug 23, 2026
19 checks passed
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.

3 participants