- Published on
How to Set Up a Hetzner Server for Optimal Performance in 2026
Setting up a Hetzner Cloud server for optimal performance involves selecting the latest ARM64 architecture, deploying Ubuntu 26.04 LTS, and configuring a high-speed NVMe (Non-Volatile Memory Express) storage volume. You can complete this setup in under 10 minutes to achieve up to 30% better price-to-performance ratios compared to traditional x86 setups. By following these steps, you ensure your applications run on the most efficient hardware available in August 2026.
What should you prepare before starting?
Before you begin the technical setup, you need a few tools ready on your local computer. This ensures you don't have to stop mid-process to install software or look up account details.
What You'll Need:
- A Hetzner Cloud Account: You must have a verified account at console.hetzner.cloud.
- A Terminal: This is a text-based interface used to control your server (Command Prompt or PowerShell on Windows, Terminal on macOS/Linux).
- SSH Key: A secure digital "key" used to log into your server instead of a password (more secure and faster).
- Basic Command Knowledge: Familiarity with typing simple commands like
ls(list files) orcd(change directory).
If you don't have an SSH key yet, you can create one by typing ssh-keygen -t ed25519 into your terminal. This generates a public key that you will upload to Hetzner during the setup process.
Which server specifications provide the best performance?
Choosing the right hardware is the most important step for speed. In 2026, the hardware landscape has shifted toward specialized efficiency.
We recommend choosing the CAX series instances, which utilize modern ARM64 processors. These chips handle multiple tasks simultaneously with less heat and lower costs than older Intel or AMD models. For a starting project, the CAX21 or CAX31 tiers offer a great balance of RAM (Random Access Memory - your server's short-term memory) and CPU cores.
Always select Ubuntu 26.04 LTS (Long Term Support) as your Operating System (OS). This version provides the latest security updates and performance patches until 2031, so you won't need to reinstall your server for a long time. Don't worry if this sounds technical; it is simply the software "engine" that runs your server.
How do you create your high-performance Cloud Server?
Once you are logged into the Hetzner Cloud Console, follow these specific steps to launch your instance.
Step 1: Create a Project Click the "New Project" button and give it a name like "Production-App." Projects help you group servers, firewalls, and networks together so they don't get messy.
Step 2: Add a Server Click "Add Server" and select a location closest to your users (e.g., Falkenstein for Europe or Ashburn for North America). Lower physical distance means lower latency (the time it takes for data to travel between the server and the user).
Step 3: Select Image and Type Choose Ubuntu 26.04 under the "Image" tab. Then, select the Arm64 tab and pick the CAX21 instance type to get the best performance for your money.
Step 4: Add your SSH Key
Click "Add SSH Key" and paste the contents of your public key file (usually found in ~/.ssh/id_ed25519.pub). This ensures you can log in instantly without typing a password every time.
What you should see: After clicking "Create & Buy Now," a green progress bar will appear. Within 30 seconds, the status will change to "Running," and you will see an IP address (a unique string of numbers like 123.45.67.89 that identifies your server on the internet).
How do you optimize the internal server settings?
After the server is live, you need to log in and tune the software for maximum speed. Open your terminal and type ssh root@your_server_ip.
Step 1: Update the System Run the following command to ensure all software is at the latest version:
sudo apt update && sudo apt upgrade -y
# apt update: Refreshes the list of available software
# apt upgrade: Installs the newest versions of your current software
Step 2: Enable BBR Congestion Control BBR (Bottleneck Bandwidth and Round-trip propagation time) is a Google-developed algorithm that makes your internet connection faster. It helps data move through "traffic jams" on the web more efficiently.
Paste these lines into your terminal:
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p # Applies the changes immediately
Step 3: Verify BBR is Active Run this command to check if the optimization is working:
sysctl net.ipv4.tcp_congestion_control
# Expected output: net.ipv4.tcp_congestion_control = bbr
Why should you use a Cloud Firewall?
Performance isn't just about speed; it's about staying online. If your server is busy fighting off "bots" (automated scripts trying to break in), it will slow down for your real users.
Hetzner provides a free "Cloud Firewall" that sits in front of your server. This means the bad traffic is blocked before it even reaches your CPU (Central Processing Unit - the brain of your server). In our experience, offloading security to the network level significantly reduces the load on your server's resources.
Create a Firewall in the Hetzner console and only allow "Inbound" traffic on ports 22 (for SSH), 80 (for standard web), and 443 (for secure web). Block everything else by default. This keeps your server "lean" because it doesn't have to process unnecessary connection requests.
How do you monitor performance to prevent slowdowns?
A fast server can become slow if you don't watch how its resources are being used. Hetzner includes a "Graphs" tab in the Cloud Console that shows real-time data.
Keep an eye on CPU Usage and Disk IOPS (Input/Output Operations Per Second - how fast the server reads and writes data). If your CPU usage is constantly above 80%, your server will feel sluggish. It is normal to see spikes during updates, but constant high usage means you should "Rescale" (upgrade) to a larger server size.
You can also install a tool called htop by typing sudo apt install htop -y. When you run htop, it shows a colorful list of everything running on your server, making it easy to see which program is hogging the memory.
What are the common mistakes to avoid?
Many beginners accidentally slow down their servers by installing too much software at once. Only install what you absolutely need for your application to run.
Common Gotchas:
- Forgetting to use ARM64 images: If you select an ARM server but try to run x86 software, it may not work or will run very slowly through "emulation" (software trying to act like a different type of hardware).
- Ignoring Latency: Choosing a server in Germany when your customers are in Los Angeles will add a 150ms delay to every click.
- Skipping Backups: Performance doesn't matter if you lose your data; always enable the "Backups" option (it adds 20% to the cost but is worth every penny).
Don't worry if you make a mistake and the server becomes unresponsive. One of the best features of cloud computing is that you can "Snapshot" (save a copy) of your server and simply delete it and start over if things break.
Next Steps
Now that your server is tuned for speed, you are ready to deploy your first application. You might want to look into setting up a "Reverse Proxy" (a traffic cop for your web server) like Nginx or Caddy to handle your website traffic efficiently.
You should also explore "Docker" (a way to package apps so they run the same way everywhere). Docker works exceptionally well on Ubuntu 26.04 and helps keep your server organized and fast.
For more detailed guides, visit the official Hetzner documentation.