Lifecycle
A Dedalus Machine moves through four states: running, sleeping, starting, and destroyed. Dedalus Machines are persistent, which means that the filesystem and identity survive sleep and wake. The lifecycle can either be managed by Dedalus, with autosleep and wake, or manually using the lifecycle commands. Either way, you only pay for the compute you use while the machine is running. This means you don’t have to manage your machine’s lifecycle to benefit from fast, cheap persistence, but you can if you want to. Machines sleep after five minutes of inactivity by default. Change theautosleep idle window when
your workload needs a shorter or longer interval. Use the watch API when your application needs to
wait for a state change instead of polling.
Create, sleep, wake, and delete machines ->
List, inspect, update, and watch machines ->
Filesystem
Each machine has a persistent root filesystem. Files under/home, /root, /etc, /usr/local,
and /var survive sleep and wake, including installed packages, source code, build caches, and
configuration. This lets an agent resume work without reinstalling its tools or reconstructing its
workspace.
Only the root filesystem survives sleep and wake. The following are lost on every sleep:
- RAM, running processes, vCPU state
- Guest IP and MAC address (re-derived from a reassigned slot, so not stable)
- Open SSH sessions and port forwards
- Ephemeral mounts (
/proc,/sys,/dev,/run,/dev/shm,/tmp)
