Skip to content

Conversation

@sirtimid
Copy link
Contributor

Closes #236

This PR fixes the vat restart functionality in the kernel by properly preserving vat configuration and ID during restarts. Introduces a VatStateService to manage this state.

Future Extensions

The VatStateService is designed to be simple now but could be extended to:

  • Support persistent storage
  • Track additional vat metadata
  • Aid in recovery scenarios

@sirtimid sirtimid requested a review from a team as a code owner November 22, 2024 15:23
@sirtimid sirtimid force-pushed the sirtimid/vat-restart branch from b905815 to a953259 Compare November 22, 2024 17:33
@sirtimid sirtimid force-pushed the sirtimid/vat-restart branch from 7b2dfad to 13f776b Compare November 24, 2024 02:11
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

One question this raises for me though: do we need a notion of vat deletion, as distinct from vat termination? As of this PR, "terminate" means "stop + delete". Restart means "stop + delete + reinitialize from scratch (with the exception of the tiny state we maintain in the vat state service)". This is something to keep in mind once we have a distributed object graph.

@sirtimid sirtimid enabled auto-merge (squash) November 25, 2024 17:14
@sirtimid sirtimid merged commit ff507f6 into main Nov 25, 2024
@sirtimid sirtimid deleted the sirtimid/vat-restart branch November 25, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement vat restarts as first-class operation

3 participants