Always on or sleeping
lavela.compute_always_onSwitch a server (machineId: lavela.project_overview) between always on — never sleeps, no wake-up delay — and sleeping when idle (a request wakes it in seconds), in place: no rebuild; a running server restarts once. Always on pays its size's always-on rate; sleeping pays a base fee while asleep and that rate while awake — confirm with the user before turning it on; off saves only while it sleeps. Database/cache servers never sleep: stop them. A stopped or paused server must be started first (SERVER_STOPPED); refused while a build of the service runs (BUILD_IN_PROGRESS). Later redeploys keep the choice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alwaysOn | Yes | true = always on at its size's always-on price (512 MB: US$7 a month vs US$2–7 sleeping; up to US$92 at 8 GB), billed by the second — this server's prices: lavela.project_overview; false = sleeps when idle. | |
| machineId | Yes | The server's machineId. |