Skip to content

Support resuming actors with golden memory snapshot and DurableDirectory #451

Closed

Description

@zoez7

In the Actor Upgrades discussion during summit, we defined a rule that
"Substrate cannot upgrade into an existing memory snapshot".

When resuming an actor after ActorTemplateVersion upgrade, we will need to use

  1. The memory portion from the GoldenSnapshot of the upgraded ActorTemplate Version and
  2. The DurableDirectory from the previous run.

Activity

  1. added
    kind/feature
    on Jul 17, 2026
  2. changed the title [-]Support resuming actors with golden memory snapshot with DurableDirectory[/-] [+]Support resuming actors with golden memory snapshot and DurableDirectory[/+] on Jul 17, 2026
  3. zoez7 commented on Jul 28, 2026

    @zoez7
    CollaboratorAuthor

    Thinking about it more, I think this could be useful as a SnapshotScope type of its own

    // SnapshotScope defines what components to include in a snapshot.
    // +kubebuilder:validation:Enum=Full;Data
    type SnapshotScope string
    const (
    // Full captures process memory plus the entire filesystem delta on top of
    // the OCI image (including any attached DurableDir volumes).
    SnapshotScopeFull SnapshotScope = "Full"
    // Data captures only the contents of attached volumes that support
    // snapshots (currently DurableDir-typed volumes). Process memory and
    // the rest of rootfs are excluded.
    SnapshotScopeData SnapshotScope = "Data"
    )
    not just as "magic" used during upgrades. ("As a substrate user, I want to use memory snapshot only for the purpose of avoiding cold boot")

    But if we drop the idea of "mandatory golden".... having a GOLDEN_MEMORY_WITH_DUR_DIR enum value won't make much sense. cc: Julian Gutierrez Oschmann (@juli4n) Eitan Yarmush (@EItanya)

  4. added a commit that references this issue on Sep 2, 2026
    4064d79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/api-machinerykind/feature

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions