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

P2P Improve sync behavior #1072

Closed
heifner opened this issue Apr 24, 2023 · 4 comments · Fixed by #1187, #1215, #1225 or #1243
Closed

P2P Improve sync behavior #1072

heifner opened this issue Apr 24, 2023 · 4 comments · Fixed by #1187, #1215, #1225 or #1243
Assignees
Labels
actionable enhancement New feature or request 👍 lgtm OCI Work exclusive to OCI team

Comments

@heifner
Copy link
Member

heifner commented Apr 24, 2023

  • Track latency of peers and prioritize syncing from those with lower latency
  • Add configuration of number of peers to sync from (default 3)
    • This would be different than current p2p-peer-address list and max-clients
    • Even though many p2p-peer-address could be specified and connected to, only the top configured number of peers would be actively synced from.
  • Change default sync-fetch-span from 100 to 1000
  • Peer should include block start/end range in notice_message and peers should only attempt to sync from peers that have range of blocks needed. Currently only HEAD info is included. Especially useful for peers with no block log.
  • Do not serve peers until in-sync.
@heifner heifner added enhancement New feature or request actionable and removed triage labels Apr 24, 2023
@heifner
Copy link
Member Author

heifner commented May 3, 2023

eosnetworkfoundation/mandel#792 suggested indicating the block start/end range as part of a handshake_v2. I now think using notice_message would be cleaner.

@heifner heifner self-assigned this May 8, 2023
@heifner heifner added the OCI Work exclusive to OCI team label May 8, 2023
heifner added a commit that referenced this issue May 17, 2023
@heifner heifner linked a pull request May 17, 2023 that will close this issue
@BenjaminGormanPMP BenjaminGormanPMP moved this from Todo to In Progress in Team Backlog May 17, 2023
heifner added a commit that referenced this issue May 22, 2023
heifner added a commit that referenced this issue May 22, 2023
heifner added a commit that referenced this issue May 22, 2023
…nd for_each_block_connection to not short circuit
heifner added a commit that referenced this issue May 22, 2023
P2P Refactor connections management
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Backlog May 22, 2023
heifner added a commit that referenced this issue Jun 2, 2023
heifner added a commit that referenced this issue Jun 5, 2023
heifner added a commit that referenced this issue Jun 5, 2023
heifner added a commit that referenced this issue Jun 5, 2023
P2P sync ahead while applying received blocks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Backlog Jun 5, 2023
@heifner
Copy link
Member Author

heifner commented Jun 5, 2023

Re-open for a follow on PR to address peer review comment of better calculation of peer latency.

@heifner heifner reopened this Jun 5, 2023
@BenjaminGormanPMP BenjaminGormanPMP moved this from Done to Awaiting Review in Team Backlog Jun 5, 2023
@BenjaminGormanPMP BenjaminGormanPMP moved this from Awaiting Review to In Progress in Team Backlog Jun 5, 2023
heifner added a commit that referenced this issue Jun 6, 2023
heifner added a commit that referenced this issue Jun 7, 2023
heifner added a commit that referenced this issue Jun 7, 2023
heifner added a commit that referenced this issue Jun 7, 2023
heifner added a commit that referenced this issue Jun 7, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Backlog Jun 12, 2023
heifner added a commit that referenced this issue Jun 12, 2023
P2P use round trip of time_message to calculate latency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment