Skip to content

Conversation

fmoletta
Copy link
Contributor

Based on #2447
Motivation
Currently, storage rebuilding is taking a long time. As each rebuild is independent we can use parallelism to speed it up. There is a limit on how much we can push parallelism before affecting other processes. This upper limit becomes a bit more forgiving once state sync is over, as state sync also uses parallelism and more resources will be available once it is over.
This PR aims to increase storage rebuild speed once state sync is over by increasing parallelism by a constant factor

Description

  • Add constant STATE_SYNC_FINISHED_PARALLELIZATION_FACTOR
  • Multiply MAX_PARALLEL_REBUILDS by the new constant once state sync is over
  • Reset performance counters once the speedup is enabled to accurately measure new speed

Closes #issue_number

@fmoletta fmoletta changed the base branch from main to improve-rebuild-speed April 15, 2025 15:27
Base automatically changed from improve-rebuild-speed to main April 25, 2025 22:04
@fmoletta
Copy link
Contributor Author

This did not produce the expected speedup and yielded regressions instead

@fmoletta fmoletta closed this May 12, 2025
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.

1 participant