Skip to content

Optimize runtime iterative state sync #6241

@martintomazic

Description

@martintomazic

Currently, it takes days (Sapphire, mainnet) for iterative state sync to finish.

State sync should be benchmarked and optimized.

Possible bottlenecks:

  1. Default fetcher pool has 4 workers (see).
    • Possibly increase, also bottleneck could be number of peers for diff fetching.
  2. Fetching, applying diffs and finalizing versions (see) are three completely independent processes.
    • Currently this is not implemented optimally and processes may block each other.
    • See original discussion here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions