All pages

Infrastructure

Servers

Available

A server is a machine in your own cloud account that runs your services.

This is the one concept RunOne has that a hosted platform hides. The machines are yours: you can see them, you keep them if you leave, and your cloud vendor bills you for them.

Getting a server

WayWhen to use itNeeds
Bring your ownYou already have a machine.Running one command on it.
Let RunOne buy oneYou want a new machine.A cloud account. RunOne shows the price and waits for you to confirm.

Bringing your own

  1. 1

    Register it

    On Servers, choose Register Server. RunOne shows an install command with a one-time token in it, valid for 24 hours. Install agent makes a new command if you lose it; the old one stops working.

  2. 2

    Run the command on the machine

    As root, on a Linux machine (amd64 or arm64). Add --install-docker at the end if Docker or git is not installed there yet; add --http-port and --https-port if something else already listens on 80 and 443. It downloads the agent, exchanges the token for a credential that belongs to this server only, and registers a systemd service.

  3. 3

    Wait for Ready

    The agent reports every 15 seconds. The first report turns the server Ready.

Open ports 80 and 443 to the internet for web services. The agent needs no inbound port.

How RunOne talks to a server

A small program, the agent, runs on each server. It connects out to RunOne and asks what should be running; RunOne never connects to the server. The agent drives Docker: it pulls or builds images, starts and replaces containers, runs the proxy that routes domains and obtains certificates, and sends logs back. It gives nobody a remote shell.

If RunOne itself is down, the services already running keep running.

An agent manages only the containers it started. Other containers on the machine are left alone, so a server can keep running what it ran before.

Agent options

FlagDefaultMeaning
--http-port, --https-port80, 443The ports the proxy listens on. Change them when something else on the machine already uses 80 and 443.
--acme-email(none)Address given to Let's Encrypt with certificate requests.
--no-proxyoffRun no proxy. No domain is routed to this server.
--no-buildsoffNever build images on this server.
--dockerdockerThe docker command to use.

Certificates are obtained over port 80 (the HTTP-01 challenge), so a server whose proxy is not on ports 80 and 443 cannot get them by itself.

Server state

StateMeaning
Requested, ProvisioningRunOne is buying the machine.
Waiting for agentThe machine exists. Waiting for the agent's first report.
ReadyCan take services.
DrainingTakes no new services. Use it before removing a server.
OfflineNo report for 90 seconds. Deployments under way on it are marked failed; running services are not touched.
FailedBuying or setting up went wrong. The page says why.
TerminatedRemoved. A machine RunOne bought is handed back to the vendor.

The Servers page shows each ready server's CPU, memory and disk use, and how many services it runs.

Server pools

Every server belongs to a pool. A pool has one purpose: runtime servers run your services, build servers build images. With a few servers one runtime pool is all you need; runtime servers build too when there is no build server.