Skip to content

Conversation

@AndreiEres
Copy link
Contributor

@AndreiEres AndreiEres commented Dec 11, 2025

Description

Fixes #10814

Adds --statement-network-workers CLI parameter to enable concurrent statement validation from the network. Previously, statements were validated sequentially by a single worker. This change allows multiple workers to process statements in parallel, improving throughput when statement store is enabled

Integration

Non-breaking change with opt-in performance improvement. Default behavior unchanged (single worker).

@AndreiEres AndreiEres requested review from a team as code owners December 11, 2025 14:09
@AndreiEres AndreiEres changed the base branch from master to AndreiEres/latency-benchmark December 11, 2025 14:09
@AndreiEres AndreiEres added the R0-no-crate-publish-required The change does not require any crates to be re-published. label Dec 11, 2025
@AndreiEres AndreiEres force-pushed the AndreiEres/sss-many-workers branch from ca01bb3 to 0d5c79f Compare December 11, 2025 15:35
@AndreiEres AndreiEres changed the base branch from AndreiEres/latency-benchmark to master December 11, 2025 15:36
@AndreiEres AndreiEres removed the R0-no-crate-publish-required The change does not require any crates to be re-published. label Jan 16, 2026
@AndreiEres AndreiEres changed the title [DNM] statement-store: many workers statement-store: use many workers for network statements processing Jan 16, 2026
@AndreiEres
Copy link
Contributor Author

/cmd prdoc --audience node_user --bump minor

@github-actions
Copy link
Contributor

Command "prdoc --audience node_user --bump minor" has failed ❌! See logs here

@AndreiEres
Copy link
Contributor Author

prdoc --audience node_dev,node_operator --bump minor

@AndreiEres
Copy link
Contributor Author

/cmd prdoc --audience node_dev,node_operator --bump minor

@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/21135085279
Failed job name: build-linux-substrate

@s0me0ne-unkn0wn s0me0ne-unkn0wn self-requested a review January 22, 2026 15:38
Copy link
Contributor

@s0me0ne-unkn0wn s0me0ne-unkn0wn left a comment

Choose a reason for hiding this comment

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

Looks good to me!

if num_validation_workers == 0 {
log::warn!(
target: LOG_TARGET,
"num_validation_workers is 0, defaulting to 1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm going to carp a little about the naming; maybe it's just my PVF-oriented thinking, but "validation worker" sounds to me like it's related to candidate validation, and that would be my first thought if I saw that line in the logs. Probably it's better to stick with "statement validation workers" or something?

@AndreiEres AndreiEres enabled auto-merge January 23, 2026 10:28
@AndreiEres AndreiEres added this pull request to the merge queue Jan 23, 2026
Merged via the queue into master with commit 896b603 Jan 23, 2026
235 of 239 checks passed
@AndreiEres AndreiEres deleted the AndreiEres/sss-many-workers branch January 23, 2026 11:56
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.

statement-store: add parallel processing of statements that came from network

5 participants