Infrastructure
Servers
AvailableA 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
| Way | When to use it | Needs |
|---|---|---|
| Bring your own | You already have a machine. | Running one command on it. |
| Let RunOne buy one | You want a new machine. | A cloud account. RunOne shows the price and waits for you to confirm. |
Bringing your own
- 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
Run the command on the machine
As root, on a Linux machine (amd64 or arm64). Add
--install-dockerat the end if Docker or git is not installed there yet; add--http-portand--https-portif 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
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
| Flag | Default | Meaning |
|---|---|---|
--http-port, --https-port | 80, 443 | The 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-proxy | off | Run no proxy. No domain is routed to this server. |
--no-builds | off | Never build images on this server. |
--docker | docker | The 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
| State | Meaning |
|---|---|
| Requested, Provisioning | RunOne is buying the machine. |
| Waiting for agent | The machine exists. Waiting for the agent's first report. |
| Ready | Can take services. |
| Draining | Takes no new services. Use it before removing a server. |
| Offline | No report for 90 seconds. Deployments under way on it are marked failed; running services are not touched. |
| Failed | Buying or setting up went wrong. The page says why. |
| Terminated | Removed. 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.