Skip to content

Improve peer selection for syncing #9722

@jframe

Description

@jframe

Enhance peer selection to utilize the performance metrics added in the peer performance metrics ticket. Currently, snap sync uses basic peer selection without considering transfer speed or latency.

Potential areas for investigation and improvement:

  • Latency-based selection: Consider whether snap sync account/storage/trie requests (which involve many small requests) would benefit from prioritizing low-latency peers over other criteria.

  • Context-aware selection: Explore implementing context-aware peer selection that chooses optimal peers based on request type, potentially using different selection strategies for different phases of world state sync.

  • Selection comparators: Investigate adding peer selection comparators like BY_LOW_LATENCY or BY_TRANSFER_SPEED for world state operations to complement existing comparators.

  • RequestDataStep integration: Review how RequestDataStep in snap sync could be updated to leverage performance-based peer selection once metrics are available.

The goal is to route requests to the most suitable peers based on their historical performance characteristics to improve overall world state sync performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions