agent-substrate / agent-substrate/substrate

Opt-in durability instead of Pause vs Suspend API

Abierto
#798 2 comentarios 4 reacciones 0 asignados Ver en GitHub
area/api kind/feature
Lenguaje dominante
Go
Estrellas
1.8k
Forks
316
Merge medio
2 d 43 min
PR fusionados (30 d)
287

Descripción

Instead of explicitly requesting Pause vs Suspend, I think applications should request `Suspend` with an argument specifying their tolerance, naming is hard but `Durable: true` or something like that, opt-in.

When applications do not specify, substrate can intelligently handle suspension, e.g. in the future it might:
- Suspend to local disk
- Decide not to suspend immediately due to low load
- Automatically move snapshots between nodes p2p to rebalance
- Decide to move the snapshot to cloud storage
- Live migrate sandboxes

Only if you have a hard need for an immediate backup, then we should explicitly move the snapshot to cloud storage (S3, GCS, ...).

I think the current Pause vs Suspend inverts this and doesn't give a lot of room to implement things like automatically moving snapshots between machines or live-migrate microVMs

See related discussion in https://github.com/agent-substrate/substrate/issues/660

And previously https://github.com/agent-substrate/substrate/issues/119

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.