-
Notifications
You must be signed in to change notification settings - Fork 766
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
Bump async backing parameters #4287
Comments
Not sure we need 9, this seems to just be a workaround for a potential off by 1 bug, as the len of the segment never goes above 6 and at the same time we can't technically ever reach a segment of that size given block production runs every 2s. |
There is a trade off between supporting high-depth elastic scaling and dealing with potentially large numbers of candidates. With fast block building and high demand, we could see chains taking on 10+ cores at a time. Practically speaking they will have a single leader to achieve this, so they'll be far off from the worst case. Supporting that level of throughput could be pretty impactful for Polkadot! How about a solution like this: we can accept max-depth=n_cores but start ignoring candidates from levels beyond some low number, like 4, as soon as |
Is |
I just mean |
I also already said in element that the change proposed here in this issue is a hack. We should instead fix the spam protection to handle this properly. Basically everything should track number of candidates per core and not per parachain. Backing group spam protection can just stay at using |
Yes, the relay chain knows which core each backing group works on, and coretime sales should tell the relay chain which parachain can submit to which core, so the relay chain could enforce this limit in backing, and that sounds cleanest. We've considered other more dynamic models where the relay chain assigns backed candidates to core after backing occurs, which supports variable sized parablocks better. Afaik that's off the table right now anyways, but even if this returns then backing group number could likely replace core there. |
I agree this is not really optimal, but before we implement #5079 we should consider setting these params to support elastic scaling with 3 cores:
With #4937 maximum number of candidates we need to deal with is |
I would much rather go with #4937 directly as it is safer. 562 is excessive. |
This was done for kusama. max_candidate_depth was bumped to 6. We won't do this for polkadot. Instead, we'll prioritise #5079 |
For elastic scaling we will very likely need more relaxed parameters:
max depth 9 and also unincluded segment size for the para to 9 ... was needed in testing for a perfect 2s block time.
The text was updated successfully, but these errors were encountered: