Create and manage servers
Servers are virtual machines with ECC RAM, local NVMe storage, and a public IPv4 and IPv6 address. Each one runs Ubuntu, and you sign in as root over SSH.
Create a server
- Go to Servers → Create server
- Enter a Hostname. It must be unique in your organization, and the server uses it as its hostname.
- Pick a Region and a Data center close to your users. See Regions.
- Keep Regular servers as the server family. For dedicated vCPUs or discounted spot servers, see Server families.
- Pick a type under Server size.
- Keep Ubuntu 26.04 LTS as the Operating system.
- Under SSH keys & password, select your SSH keys. No key yet? Click Add an SSH key and follow SSH keys.
- Click Create server.
The rest of the form is optional:
Connect to your server
Copy the server's public IP from its page and connect as root:
SSH keys
An SSH key you add authorizes root logins on the servers you pick. Keys work in every data center.
- Go to Security → SSH keys → Create SSH key
- Paste your public key into Public key, or enter your username under Fetch SSH keys from GitHub.
- Enter a Name.
- To add the key to servers you already run, select them under Servers.
- Click Create SSH key.
No key on your computer yet? Generate one and paste the output of the second command:
To add a key to running servers, or take it off them:
- In Security → SSH keys, open the key's menu and click Add the SSH key to servers.
- Select or clear the servers. They must be running.
- Click Save changes.
Take a key off every server before you remove it.
Extras
Turn these on under Extras when you create the server. Vulnerability monitoring can also be changed later, and the others are fixed once the server exists.
- AI Engineer access lets the Better Stack AI Engineer SSH into the server to investigate incidents. It's on by default.
- Observability installs the Better Stack collector, so the server's logs, metrics and traces flow into Better Stack a few minutes after it starts. See Observability.
- DDoS protection adds always-on mitigation of volumetric attacks at the network edge. See DDoS protection.
- Vulnerability monitoring scans the server every day for services exposed to the internet and for package versions with known vulnerabilities. Open the findings with View scan on the server's page.
Observability, DDoS protection and Vulnerability monitoring are billable.
Server initialization
Under Server initialization, pick Cloud-init or Bash and paste your config or script. The server runs it once, as root, at its first boot:
- A cloud-init config starts with
#cloud-config, a script with#!, for example#!/bin/bash. The limit is 32 KiB. - The server shows Running before your config finishes. Run
cloud-init status --waiton the server to wait for it. - An error doesn't stop the server from starting. The output is in
/var/log/cloud-init-output.log. - It never runs again, not after a reboot, a rescale or a restore.
rootcan read it on the server afterwards, so don't put long-lived credentials in it.
Manage a server
Open a server from Servers to see its details, graphs and activity. These actions sit at the top of its page:
Reboot, Power off and Remove ask the operating system to shut down and wait up to 30 seconds before they cut the power, so your shutdown scripts run. A removed server's name is free for a new server right away.
Rescale a server
- Open the server and click Rescale.
- Pick the new type.
- To keep the option of moving back to a smaller type, check Resize CPU and RAM only.
- Click Rescale server.
The server restarts and keeps its IP addresses. Its disk can only grow, so you can rescale only to a type whose disk is at least as large as the server's current disk. On the standard disk layout, the file system grows to the new disk size at the restart.
Web console
Web console opens a root shell in your browser. It works when SSH doesn't, for example with a broken sshd or a firewall that blocks you. The server must be running. A session closes after 2 hours, so run long jobs in tmux or as a systemd service.
Rescue mode
Use rescue mode when you can't get into the server, for example after a bad /etc/fstab entry or wrong firewall rules.
- Open the server and click Rescue mode.
- Click Reboot into rescue mode.
- Connect to the server's usual IP address as
root, with one of its SSH keys or the one-time password shown on the server's page. Repair your system, which is mounted at
/mnt/rescue:Open a shell in your server's systemClick Exit rescue mode on the server's page and confirm. The server reboots into its normal system.
- The server's firewall isn't applied in rescue mode, so SSH is open to everyone until you leave it.
- The server leaves rescue mode on its own after 60 minutes.
- Running
rebootinside the rescue system starts the rescue system again. Runpoweroffinstead, or click Exit rescue mode. - Not mounted? With LVM, several partitions or encryption, find your disk with
lsblkand mount it yourself.
Monitor a server
The server's page shows graphs of CPU usage, RAM, Disk space, Disk I/O and Network for the last hour, day, week or 30 days.
Activity lists what happened to the server, such as reboots, snapshots and rescales, and who did it.
For logs, metrics and traces from inside the server, turn on Observability.
IP addresses
Each server gets one public IPv4 and one public IPv6 address. They stay with the server through reboots, power offs and rescales.
- IPv6 only. Set IPv4 address to 0 under Network. The server still reaches IPv4-only hosts, such as
github.com, by hostname. Connections to a hard-coded IPv4 address fail. - Keep an address. Use a reserved IP to keep an address when you replace a server.
- Sending e-mail. Outbound port 25 is blocked. Send through an e-mail provider on port 587 or 465.
Limits
Above the connection limit, new connections are dropped until existing ones close. Use a larger type, more servers or a load balancer when you need more. Each attached volume gets its own disk limit. Need a higher packet rate for a legitimate workload? Let us know.
How many servers, vCPUs and RAM your organization can use is set by your quotas.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏