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

[Merged by Bors] - Adjust to 2.2M ATXs #5571

Closed
wants to merge 1 commit into from

Conversation

xearl4
Copy link
Contributor

@xearl4 xearl4 commented Feb 14, 2024

Motivation

Current limits allow for 1.5M ATXs. This leaves room for a ~36% increase over the previous epoch. Growth in the current epoch may exceed this, so prepare for that chance and increase the limits.

(I realise that this change may be obsolete with upcoming changes to sync. It may be helpful to merge and backport this change to a 1.3.x release early anyway, just in the sync changes either won't obsolete the ATX limit increase or the sync changes don't become ready in time for the next CG.)

Description

Epoch 14 had ~1.1M ATXs. The strongest epoch-over-epoch growth in the past epochs was ~90%. This change adjusts ATX limits to handle another 90% growth (with some wiggle room) in the current epoch.

Details: Increase EpochData and EpochActiveSet wire types to accommodate up to 2.2M ATXs. Increase fetcher data size limit to 85MiB, to adjust for these wire types. Increase the ATX cache to 4.4M, per the 2*EpochData guideline.

Add a comment to hint at the necessity of adjusting ResponseMessage size when adjusting EpochData size.

Also, fix a comment typo misleading about the ATX ID size.

Epoch 14 had ~1.1M ATXs. Strongest epoch-over-epoch growth in the past
epochs was ~90%. This change adjusts ATX limits to handle another 90%
growth (with some wiggle room) in the current epoch.

Details: Increase EpochData and EpochActiveSet wire types to accommodate
up to 2.2M ATXs. Increase fetcher data size limit to 85MiB, to adjust
for these wire types. Increase the ATX cache to 4.4M, per the
2*EpochData guideline.

Add a comment to hint at the necessity of adjusting ResponseMessage size
when adjusting EpochData size.

Also, fix a comment typo misleading about the ATX ID size.
@pigmej
Copy link
Member

pigmej commented Feb 14, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 14, 2024
## Motivation

Current limits allow for 1.5M ATXs. This leaves room for a ~36% increase over the previous epoch. Growth in the current epoch may exceed this, so prepare for that chance and increase the limits.

(I realise that this change _may_ be obsolete with upcoming changes to sync. It may be helpful to merge and backport this change to a 1.3.x release early anyway, just in the sync changes either won't obsolete the ATX limit increase or the sync changes don't become ready in time for the next CG.)
@spacemesh-bors
Copy link

Build failed:

  • systest-status

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (737c88d) 79.7% compared to head (33d30bf) 79.7%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #5571     +/-   ##
=========================================
- Coverage     79.7%   79.7%   -0.1%     
=========================================
  Files          267     267             
  Lines        26833   26857     +24     
=========================================
+ Hits         21403   21420     +17     
- Misses        3913    3917      +4     
- Partials      1517    1520      +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@poszu
Copy link
Contributor

poszu commented Feb 14, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 14, 2024
## Motivation

Current limits allow for 1.5M ATXs. This leaves room for a ~36% increase over the previous epoch. Growth in the current epoch may exceed this, so prepare for that chance and increase the limits.

(I realise that this change _may_ be obsolete with upcoming changes to sync. It may be helpful to merge and backport this change to a 1.3.x release early anyway, just in the sync changes either won't obsolete the ATX limit increase or the sync changes don't become ready in time for the next CG.)
@spacemesh-bors
Copy link

Build failed:

@pigmej
Copy link
Member

pigmej commented Feb 14, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 14, 2024
## Motivation

Current limits allow for 1.5M ATXs. This leaves room for a ~36% increase over the previous epoch. Growth in the current epoch may exceed this, so prepare for that chance and increase the limits.

(I realise that this change _may_ be obsolete with upcoming changes to sync. It may be helpful to merge and backport this change to a 1.3.x release early anyway, just in the sync changes either won't obsolete the ATX limit increase or the sync changes don't become ready in time for the next CG.)
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Adjust to 2.2M ATXs [Merged by Bors] - Adjust to 2.2M ATXs Feb 14, 2024
@spacemesh-bors spacemesh-bors bot closed this Feb 14, 2024
pigmej pushed a commit that referenced this pull request Feb 15, 2024
Current limits allow for 1.5M ATXs. This leaves room for a ~36% increase over the previous epoch. Growth in the current epoch may exceed this, so prepare for that chance and increase the limits.

(I realise that this change _may_ be obsolete with upcoming changes to sync. It may be helpful to merge and backport this change to a 1.3.x release early anyway, just in the sync changes either won't obsolete the ATX limit increase or the sync changes don't become ready in time for the next CG.)
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.

4 participants