Managing Computers
A Computer's state says whether it's running and which actions you can take. Each action, from starting to deleting, has its own section below. To change its pool or owner, see Moving and transferring.
On this page
States
#The dashboard shows a Computer's state on its Overview. The CLI shows it with a message that explains it.
heaven view my-site| State | Dashboard | Meaning |
|---|---|---|
creating | Creating | Heaven is creating the disk. |
preparing_image | Preparing image | Heaven is preparing the image. |
starting | Starting | The Computer is booting or waiting to boot. |
running | Online | The Computer is running and SSH answers. |
checking | Online | The Computer is running and Heaven is checking SSH. |
degraded | Degraded | The Computer is running but SSH doesn't answer. |
restarting | Restarting | The Computer is restarting, at your request or after it stopped unexpectedly. |
resetting | Resetting | Heaven is replacing the disk with a fresh image. |
stopping | Stopping | The Computer is shutting down. |
stopped | Stopped | The Computer is off. |
paused | Paused | The Computer's processes and memory are frozen. |
failed | Failed | The Computer didn't start or stopped unexpectedly. The message gives the cause. |
image_failed | Image failed | Heaven couldn't prepare the image or restore the disk. |
held | Held | Heaven has put a hold on the Computer or its pool. |
moving | Moving | The Computer is moving to another pool or server. |
deleting | Deleting | Heaven is deleting the Computer. |
unknown | Unknown | Heaven can't tell the Computer's state right now. |
A start waiting for memory shows Waiting for memory in lists. When Heaven pauses a Computer itself, the dashboard says why: Paused: storage full, Paused: storage error or Paused by Heaven.
Heaven can hold a Computer or its whole pool, for example when it suspends an organization. A held Computer stays off until Heaven lifts the hold, then starts again if it was running before. To keep it off, stop it while it's held. Contact support about a hold.
Reference: List or read Computers.
What each action keeps
#These actions need Admin access to the Computer, which its owner has. Every action keeps the Computer's shares and backups, and only a rename changes its addresses.
| Action | Processes and memory | Disk and snapshots | Pool's CPU and memory |
|---|---|---|---|
| Stop | Ended | Kept | Freed |
| Start | Fresh boot | Kept | Used |
| Pause | Frozen, memory kept | Kept | CPU freed, memory kept |
| Resume | Continue where they were | Kept | Used |
| Restart | Ended, then a fresh boot | Kept | Used |
| Reset | Ended, then a fresh boot | Disk replaced by a fresh image, snapshots kept | Used |
| Rename | Keep running | Kept | Unchanged |
| Resize | Keep running | Disk grows if asked | Limits change |
| Delete | Ended | Deleted | Freed |
Deleting a Computer also releases its public ports and detaches its static address, which the organization keeps.
Start and stop
#Stopping a Computer asks its operating system to shut down, and turns it off if that takes too long. Starting it boots from its disk. A stopped pool must be started first.
In Overview, choose Start, or open Restart, stop and more and choose Stop.
heaven start my-site
heaven stop my-siteReference: Start a Computer, Stop a Computer.
Pause and resume
#Pausing freezes a Computer's processes and keeps its memory, so it resumes exactly where it was. A paused Computer uses no CPU but keeps its memory in the pool. Resuming a Computer that was paused with its pool also resumes the pool.
In Overview, open Restart, stop and more and choose Pause, then Resume to continue.
heaven pause my-site
heaven resume my-siteReference: Pause a Computer, Resume a Computer.
Restart
#Restarting ends the Computer's processes and boots it again from its disk. It starts a stopped Computer, and it's the way back from Failed. In Overview, open Restart, stop and more and choose Restart.
heaven restart my-siteReference: Restart a Computer.
Reset
#Resetting replaces the Computer's disk with a fresh copy of its image and runs its setup script again. The Computer keeps its name, addresses, shares and snapshots.
In Settings, under Danger zone, choose Reset. The CLI can also switch images and preview the change.
heaven reset my-site --dry-run
heaven reset my-site --image heaven-ubuntuReference: Reinstall a Computer.
Rename
#Renaming changes the Computer's addresses while it keeps running. The result lists the new addresses.
In Settings, change Name and press Enter.
heaven rename my-site backendReference: Rename a Computer.
Resize
#Resizing changes a Computer's CPU and memory limits, or grows its disk, within its pool. A running Computer applies new limits right away unless its message says a restart is needed. Resume a paused Computer before resizing it.
In Settings, choose a Size limit. The CLI sets each limit separately.
heaven resize worker --cpu 2 --memory 4GiBReference: Resize a Computer.
Create several
#In the New Computer form, enter several names or set how many Computers to create. The CLI takes a count, a list of names, or a Computer to copy into each.
heaven create --pool web --count 3
heaven create --pool web --names my-site,backend --copy workerA pool runs a limited number of creates at once. See Request rates.
Reference: Create a Computer.
Delete
#Deleting a Computer removes it with its disk and snapshots.
In Settings, under Danger zone, choose Delete Computer and confirm.
heaven delete my-siteReference: Delete Computers.