Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable2407] Backport #5753 #5873

Conversation

paritytech-cmd-bot-polkadot-sdk[bot]
Copy link

@paritytech-cmd-bot-polkadot-sdk paritytech-cmd-bot-polkadot-sdk bot commented Sep 30, 2024

Backport #5753 into stable2407 from AndreiEres.

See the documentation on how to use this bot.

# Description

Adjust the PoV response size to the default values used in the
substrate.
Fixes #5503

## Integration

The changes shouldn't impact downstream projects since we are only
increasing the limit.

## Review Notes

You can't see it from the changes, but it affects all protocols that use
the `POV_RESPONSE_SIZE` constant.
- Protocol::ChunkFetchingV1
- Protocol::ChunkFetchingV2
- Protocol::CollationFetchingV1
- Protocol::CollationFetchingV2
- Protocol::PoVFetchingV1
- Protocol::AvailableDataFetchingV1

## Increasing timeouts

https://github.com/paritytech/polkadot-sdk/blob/fae15379cba0c876aa16c77e11809c83d1db8f5c/polkadot/node/network/protocol/src/request_response/mod.rs#L126-L129

I assume the current PoV request timeout is set to 1.2s to handle 5
consecutive requests during a 6s block. This setting does not relate to
the PoV response size. I see no reason to change the current timeouts
after adjusting the response size.

However, we should consider networking speed limitations if we want to
increase the maximum PoV size to 10 MB. With the number of parallel
requests set to 10, validators will need the following networking
speeds:
- 5 MB PoV: at least 42 MB/s, ideally 50 MB/s.
- 10 MB PoV: at least 84 MB/s, ideally 100 MB/s.

The current required speed of 50 MB/s aligns with the 62.5 MB/s
specified [in the reference hardware
requirements](https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#reference-hardware).
Increasing the PoV size to 10 MB may require a higher networking speed.

---------

Co-authored-by: Andrei Sandu <[email protected]>
(cherry picked from commit 0c9d8fe)
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Sep 30, 2024
Copy link

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or trivial (not sure audit).
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@AndreiEres AndreiEres changed the base branch from stable2407 to stable2409 September 30, 2024 16:10
@AndreiEres AndreiEres changed the title [stable2407] Backport #5753 [stable2409] Backport #5753 Sep 30, 2024
@paritytech-review-bot paritytech-review-bot bot requested a review from a team September 30, 2024 16:11
@AndreiEres AndreiEres closed this Sep 30, 2024
@AndreiEres AndreiEres deleted the backport-5753-to-stable2407 branch September 30, 2024 16:11
@AndreiEres AndreiEres changed the title [stable2409] Backport #5753 [stable2407] Backport #5753 Sep 30, 2024
@AndreiEres AndreiEres restored the backport-5753-to-stable2407 branch September 30, 2024 16:14
@AndreiEres AndreiEres reopened this Sep 30, 2024
@AndreiEres AndreiEres changed the base branch from stable2409 to stable2407 September 30, 2024 16:14
@AndreiEres AndreiEres closed this Oct 1, 2024
@AndreiEres AndreiEres deleted the backport-5753-to-stable2407 branch October 1, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A3-backport Pull request is already reviewed well in another branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant