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

Changes in forward sync and rate limit constants #8982

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

StefanBratanov
Copy link
Contributor

@StefanBratanov StefanBratanov commented Jan 10, 2025

PR Description

  • Changed DEFAULT_FORWARD_SYNC_BATCH_SIZE to 25 instead of 50 to cater for the time for validating blobs, state transition, etc
  • Removed -Xp2p-sync-rate-limit in favour of -Xp2p-sync-blocks-rate-limit and -Xp2p-sync-blob-sidecars-rate-limit
  • Removed --Xpeer-rate-limit in favour of --Xpeer-blocks-rate-limit and --Xpeer-blob-sidecars-rate-limit
  • Set DEFAULT_FORWARD_SYNC_MAX_BLOB_SIDECARS_PER_MINUTE to 2000 (outgoing rate limit). The previous 500 * maxBlobsPerBlock seems too large.
  • Set DEFAULT_PEER_BLOB_SIDECARS_RATE_LIMIT to 2000 (incoming rate limit). The previous 500 * maxBlobsPerBlock seems too large.
  • Increased DEFAULT_PEER_REQUEST_LIMIT to 100 from 50, because it hasn't been changed after Deneb. It makes sense to double to account for blobs requests when syncing.

2000 Blobs (TBD) is ~250 MB per minute per peer

Fixed Issue(s)

fixes #8871

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@StefanBratanov StefanBratanov changed the title Changes in forward sync constants Changes in forward/historical sync constants Jan 10, 2025
@StefanBratanov StefanBratanov changed the title Changes in forward/historical sync constants Changes in forward sync constants Jan 10, 2025
@StefanBratanov StefanBratanov changed the title Changes in forward sync constants Changes in forward sync and rate limit constants Jan 10, 2025
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.

Revisit forward sync constants
1 participant