Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Scheduler pre block limit note #13231

Merged

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Jan 24, 2023

Scheduler has the upper limit for the number of the calls scheduled per block.
The benchmarks of the pallet_referenda and pallet_conviction_voting do not respect the limit and overflows it if the scheduler MaxScheduledPerBlock not high enough.

For pallet_referenda benchmarks the limit reached if
track.max_deciding > scheduler.max_scheduled_per_block OR
referenda.max_queued > scheduler.max_scheduled_per_block OR
track.max_deciding + referenda.max_queued > scheduler.max_scheduled_per_block

For pallet_conviction_voting benchmarks the limit reached if
number_of_registered_votes > scheduler.max_scheduled_per_block

This PR is an alternative solution to a more complex one (#13143), helping a user to find a workaround faster.

@muharem muharem added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jan 24, 2023
@muharem muharem requested review from bkchr and ggwpez January 24, 2023 15:27
@stale
Copy link

stale bot commented Mar 25, 2023

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added A3-stale and removed A3-stale labels Mar 25, 2023
@muharem
Copy link
Contributor Author

muharem commented Mar 29, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@ggwpez ggwpez self-requested a review March 29, 2023 09:48
@muharem
Copy link
Contributor Author

muharem commented Mar 30, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@muharem
Copy link
Contributor Author

muharem commented Mar 31, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@muharem
Copy link
Contributor Author

muharem commented Apr 3, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit b94d98b into master Apr 3, 2023
@paritytech-processbot paritytech-processbot bot deleted the muharem-scheduler-per-block-limit-docs branch April 3, 2023 10:59
gpestana pushed a commit that referenced this pull request Apr 23, 2023
Co-authored-by: parity-processbot <>
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
Co-authored-by: parity-processbot <>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants