# Concepts

Each term here has one meaning across the docs, the CLI and the API.

## Machine

A machine is a Linux virtual machine. It has its own kernel, systemd as its init system, a root disk that persists, and a login user named `dev` who can use `sudo` without a password. It is not a container, and nothing in it is shared with another customer's machine except the physical server.

A machine has an ID such as `m_01jcz3k8x0e5v9w2r4t6y8a0bq` and a name such as `calm-river-otter`. Every command and API path that takes a machine takes its ID or its name. [Machines](machines.md) covers the lifecycle and the limits.

## Org

An org owns machines, keys, snapshots and the plan. When you sign up you get a personal org. An API key belongs to one org, so no API path names an org.

## Suspension

arvm suspends an org when one of its machines breaks the [acceptable use policy](../legal/acceptable-use.md), for example with an abuse report about it. A suspension stops every running machine of the org and keeps every disk, snapshot and file. The owners get an email with the reason.

While the org is suspended:

- No machine starts, and no machine or snapshot is created.
- You can still sign in, with the dashboard and the CLI, and read the org's records: machines, endpoints, snapshots, events, usage and billing. `GET /v1/org` shows the `suspension` with its reason. Files in a machine cannot be read: they need the machine running.
- You can sign out, delete API keys and SSH keys, turn auto top-up off, and open the billing portal. The subscription is not changed, and it renews until you cancel it there.
- Everything else fails with the error code `org_suspended` and status 403. The error says why the org is suspended and whom to write to.

To answer, write to <ben@advancedruntime.com> with the org's ID. When arvm lifts the suspension, the owners get an email. Nothing starts by itself: start your machines when you are ready.

## Size

A size is a named shape with an hourly rate.

| Size | vCPUs | Memory | Disk | Rate | A full month (730 hours) |
|---|---|---|---|---|---|
| `small` | 2 | 4 GB | 51 GB | $0.009 an hour | $6.57 |
| `default` | 4 | 8 GB | 51 GB | $0.018 an hour | $13.14 |
| `large` | 8 | 16 GB | 111 GB | $0.036 an hour | $26.28 |

vCPUs are shared with other machines on the same server. Memory is not: a running machine's memory is reserved for it. [Security](security.md#shared-cpu) says what sharing means for you.

## Hour

An hour is 3,600 seconds of one machine in the phase `running`. A `default` machine uses the balance at $0.018 an hour, so a full month uses $13.14 of the plan's $20. A `small` machine uses it at half that rate, and a `large` machine at twice that rate. [Billing](billing.md#what-an-hour-is) has the exact rules.

## Desired state and phase

A machine reports two things. `desired` is what you asked for: `running`, `stopped` or `deleted`. `phase` is where the machine is now. The two differ while the platform works: after a stop request, `desired` is `stopped` and `phase` is `stopping` until the guest has shut down.

Every phase after `scheduled` is what the machine's server observed. The platform does not guess. [Machines](machines.md#phases) lists the phases.

## Stop and start

Stop shuts the operating system down, as `sudo poweroff` does. The disk is kept, and so are the machine's name and its SSH address. Processes and anything held only in memory are gone. A stopped machine costs nothing.

Start boots the machine again from its disk. There is no pause that keeps memory.

## Idle stop

A machine that nobody is using is stopped after a time limit, so that a forgotten machine does not use up your hours. The limit is 60 minutes unless you change it, and you can turn idle stop off for a machine. [Machines](machines.md#idle-stop) says what counts as activity.

## Disk

Each machine has one root disk, and its size comes from the machine's size. The disk is on one drive of the one physical server that runs the machine, and the drive is not mirrored. The disk survives a stop, a restart and a crash of the guest. It does not survive the failure of that drive or the loss of that server, and arvm does not back it up. [Regions and uptime](regions-and-uptime.md#your-disk-is-on-one-drive-of-one-server) says what that means for your data.

## Snapshot

A snapshot is a saved copy of a machine's disk at one moment. You can create a new machine from it. A snapshot is stored on the drive that held the machine's disk when the snapshot was taken, and it stays there. It is not a backup: if that drive or its server fails, the snapshot is lost, and so is the disk if it is still on that drive. Snapshot storage is a paid add-on at $0.10 per GB a month. [Snapshots](snapshots.md) shows how to take and use one.

## Endpoint

An endpoint is an HTTPS URL that arvm routes to one TCP port of one machine. An endpoint is private until you make it public: a private endpoint answers only a request that carries its signed link. [Public URLs](public-urls.md) shows how to create one.

## Gateway

The gateway is the public entry point that all customers share. SSH to `ssh.arvm.dev` and HTTPS to an endpoint URL both reach the gateway, which finds your machine and forwards the connection to it. A machine has no public IPv4 address of its own, so over IPv4 nothing connects to a machine except through the gateway. A machine does have a public IPv6 address, which takes connections directly, on any port, while the machine's `inbound` is `open`. [Connect](connect.md#ipv6) covers both.

## Event

An event is a timestamped fact about a machine: a request that changed it, a phase it reached, or a step a server took, with how long the step took. A machine's events are its activity feed. [Machines](machines.md#see-what-happened-to-a-machine) shows how to read them.
