Skip to content

Adjust statement store allowance numbers - #235

Merged
georgepisaltu merged 6 commits into
mainfrom
george-resources-allowances
Nov 12, 2026
Merged

georgepisaltu merged 6 commits into
mainfrom
george-resources-allowances

Conversation

@georgepisaltu

Copy link
Copy Markdown
Contributor

Closes #194

Changes

This PR adjusts the statement store allowances in pallet-resources to match the current limits of the infrastructure. The initial ask in the issue was an increase in the slots up to 50, which would have put too much strain on both the available block space as well as the statement store itself. After decreasing the data allowance significantly, and in combination with #227 and #234, lite people can now get 50 slots for both the AccountsApiAllowance as well as the NotificationAllowance.

These changes should be brought to other runtimes consuming pallet-resources as well`.

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
…wance

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@georgepisaltu georgepisaltu self-assigned this Nov 5, 2026
@georgepisaltu
georgepisaltu requested a review from a team as a code owner November 5, 2026 09:40
@georgepisaltu georgepisaltu added D2-no audit No audit is needed C0-non-breaking This PR is not a breaking change for any runtime consuming it. R2 labels Nov 5, 2026
@andrzejSulkowski

Copy link
Copy Markdown
Collaborator

do you have some napkin math or test code? AFAIK we target 10_000 users.

@georgepisaltu georgepisaltu removed the R2 label Nov 5, 2026
@georgepisaltu

Copy link
Copy Markdown
Contributor Author

do you have some napkin math or test code? AFAIK we target 10_000 users.

With a 1 day grace period (instead of the 2 we have on paseo today but I don't want to rush that change in just yet), we are at about 3.5 million statements in peak capacity, below the default 4 million limit.

About data size, we sit at roughly 54 GiB of data, which we believe is within the bounds of what a node running reference hardware can do (in a relatively small SSS-enabled collator set, since large sets degrade performance because of statement gossip mechanics). The default data limit of the statement store, which is a command line parameter and I think its default is 2 GiB, needs to be increased above this peak value, otherwise older statements will start getting evicted.

This is all on peak capacity. In an organic setting, it is very unlikely that we will ever see peak capacity but rather a fraction of it.

@ggwpez ggwpez moved this from Todo to Optional in Runtime releases Nov 6, 2026
@ggwpez ggwpez moved this from Optional to Todo in Runtime releases Nov 6, 2026
@ggwpez ggwpez moved this from Todo to Blocker in Runtime releases Nov 6, 2026
@andrzejSulkowski
andrzejSulkowski requested a review from a team November 6, 2026 12:22
Base automatically changed from george-parameter-allowance to main November 9, 2026 14:02
…wances

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@georgepisaltu
georgepisaltu enabled auto-merge (squash) November 12, 2026 17:19
@georgepisaltu
georgepisaltu merged commit a894ba8 into main Nov 12, 2026
21 checks passed
@georgepisaltu
georgepisaltu deleted the george-resources-allowances branch November 12, 2026 17:45
@github-project-automation github-project-automation Bot moved this from Required to Done in Runtime releases Nov 12, 2026
@Polkadot-Forum

Copy link
Copy Markdown

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/runtime-release-notification-for-v2-6-0-20-11-2026/19606/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C0-non-breaking This PR is not a breaking change for any runtime consuming it. D2-no audit No audit is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raise SS anonimous slot limits

5 participants