Skip to content

retransmit: replace rayon with worker pool - #15995

Merged
KirillLykov merged 1 commit into
anza-xyz:masterfrom
KirillLykov:klykov/retransmit-to-worker-pool-second
Oct 14, 2026
Merged

KirillLykov merged 1 commit into
anza-xyz:masterfrom
KirillLykov:klykov/retransmit-to-worker-pool-second

Conversation

@KirillLykov

@KirillLykov KirillLykov commented Oct 12, 2026 •

Copy link
Copy Markdown

Problem

This is reapply of #15585, the difference is that SIGVERIFY_SHRED_BATCH_SIZE is not changed. Instead, it is extracted into separate PR #15994

Rayon adds unnecessary overhead and complexity to the code. This PR makes arguably minimal changes to do replace it with custom thread pool postponing other refactoring activities for the follow up PRs.
This PR also removes RETRANSMIT_BATCH_SIZE cause restransmit already receives transactions in batches (up to 64 shreds) from sigverify

Summary of Changes

Replace Rayon with custom thread pool.

Testing

Same as in #15585.

Plus extensively loaded to check that the channels between stages (fetch-sigver-retransmit) are not overloaded.

Rayon adds unnecessary overhead and complexity to the code. This PR makes arguably minimal
changes to do replace it with custom thread pool postponing other refactoring activities
or the follow up PRs.
@KirillLykov
KirillLykov force-pushed the klykov/retransmit-to-worker-pool-second branch from 968a94c to 82c2b97 Compare October 12, 2026 17:53
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 31.46067% with 122 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.2%. Comparing base (809b559) to head (82c2b97).

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #15995    +/-   ##
========================================
  Coverage    82.2%    82.2%            
========================================
  Files         937      938     +1     
  Lines      372883   372954    +71     
========================================
+ Hits       306654   306762   +108     
+ Misses      66229    66192    -37     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexpyattaev
alexpyattaev self-requested a review October 13, 2026 08:14
@KirillLykov
KirillLykov marked this pull request as ready for review October 13, 2026 08:28
@KirillLykov
KirillLykov requested a review from a team as a code owner October 13, 2026 08:28
@alexpyattaev

Copy link
Copy Markdown

The diff is correct (same as before sans batching change), but we need the measurement numbers from load testing here.

@KirillLykov

Copy link
Copy Markdown
Author

The diff is correct (same as before sans batching change), but we need the measurement numbers from load testing here.

For additional load testing I used for sigverify, the numbers doesn't change because these shreds do not go.

For legitimate but abnormally heavy traffic use case on testnet nothing changed from original PR:

Screenshot 2026-10-13 at 16 48 51

@alexpyattaev

Copy link
Copy Markdown

Can you collect data with fake-nodes patch as well?

@KirillLykov

Copy link
Copy Markdown
Author

Can you collect data with fake-nodes patch as well?

Under constant high load of large txv1 and fake-nodes patch:

Screenshot 2026-10-14 at 14 36 03

21% get_retransmit_addrs
78% sendmmsg_retry

@KirillLykov
KirillLykov added this pull request to the merge queue Oct 14, 2026
Merged via the queue into anza-xyz:master with commit 11b1fd0 Oct 14, 2026
56 checks passed
@KirillLykov
KirillLykov deleted the klykov/retransmit-to-worker-pool-second branch October 14, 2026 15:05
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