Skip to content

Faster Devnet Startup #1788

@saralab

Description

@saralab

This task will require some R&D and is likely to contain unknown unknowns. But here is what we hope to achieve

  • block height zero: 8 seconds → 1 second
    booting the Stacks and Bitcoin nodes
  • epoch 3.0: 2 minutes → a few seconds
    by saving the Docker volumes of previous devnet session

With a better control of the Docker volumes, it should be possible to speed up the initial deployment (seconds instead of minutes).
Note: the durations don’t account for docker images downloading

The substantive changes proposed:

  • project .cache/ is populated with contents from ~/.clarinet/cache (up to epoch 3 block)
  • generate global cache from running a project. This will probably not be used because Ideally we'd like to bundle the cache data in, but it could be useful later as a custom snapshotting feature down the road.
  • bitcoin starts from correct cached block

Sub-issues

Metadata

Metadata

Assignees

Labels

devnetIssue related to the devnet

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions