Getting started¶
This page takes one node from an empty VM to running services. Repeat it on every node of the cluster.
Requirements¶
- Ubuntu 26.04+, RHEL 10+ (AlmaLinux 10, Rocky 10) running in a Proxmox (KVM) VM, or Amazon Linux 2027 on EC2.
- Python 3.12 or newer, and root access.
- Internet access during installation (packages, PyPI, and the HAProxy PPA on Ubuntu).
- For BGP mode, a BGP-capable upstream router with ECMP.
1. Prepare the Proxmox VM¶
Before installing, configure the VM for high throughput:
- CPU: type
host(passes AES-NI/VAES through to HAProxy's TLS code). - Network: SR-IOV VFs passed through to the VM. VirtIO with multiqueue (queues = vCPUs) is a fallback that tops out at tens of Gbit/s.
- Memory: fixed size, ballooning off, 1G hugepages.
- Hardware watchdog: add device
Intel 6300ESBwith actionReset.
For host BIOS and kernel settings, a full VM config and a verification checklist, see Proxmox deployment.
2. Install¶
Use a release tag (see
releases), not main, so you run a
reviewed script. The script installs the newest herr-ober from PyPI.
OBER_TAG=v0.6.1
curl -fsSL "https://raw.githubusercontent.com/dirkpetersen/herr-ober/$OBER_TAG/install.sh" | sudo bash
sudo ober bootstrap
The installer installs pipx if needed, then herr-ober globally with
PIPX_HOME=/opt/pipx and PIPX_BIN_DIR=/usr/local/bin. It also writes
/etc/profile.d/herr-ober.sh, which exports both variables, so a later
pipx upgrade herr-ober in a new root shell finds the global install.
There is no pipx package, so the one-liner installs pipx into its own venv at
/opt/pipx-tool. You can also install into a plain venv outside /root and /home:
sudo python3 -m venv /opt/herr-ober
sudo /opt/herr-ober/bin/pip install 'herr-ober[bgp]'
sudo ln -sf /opt/herr-ober/bin/ober /usr/local/bin/ober
sudo ober bootstrap
Amazon Linux has no NetworkManager, so in BGP mode ober config puts the VIPs on
lo-vip with systemd-networkd (/etc/systemd/network/60-lo-vip.{netdev,network}).
Why a global pipx install
The generated systemd units use ProtectHome=true and cannot see /root. If the install
or venv path is under /root or /home, bootstrap falls back to ProtectHome=read-only
and prints a warning recommending a global reinstall.
Upgrading from v0.3.0 or earlier¶
Re-run the one-liner. The old install lived under /root/.local/pipx; the installer prints how
to keep it (sudo ober bootstrap /root/.local/pipx/venvs/herr-ober) or copy its etc/ to
/opt/pipx/venvs/herr-ober/etc. Herr Ober no longer depends on a hostlist package, so
reinstall into a clean venv so that no stale hostlist package stays:
PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx reinstall herr-ober
sudo ober upgrade # installs ExaBGP again if the reinstall removed it, and rewrites the units
For later upgrades of a running cluster, follow the rolling upgrade steps.
3. Bootstrap¶
sudo ober bootstrap runs once per node. It:
- Creates the directories under the install path and writes the install pointer
/etc/ober/install_path. - Writes kernel tuning to
/etc/sysctl.d/99-herr-ober.conf(including conntrack limits) and applies it (see Architecture). - Installs
haproxy,keepalivedandfrr(only itsbfddis used, for BFD) from the OS packages and disables their distro units. On Ubuntu it first addsppa:vbernat/haproxy-3.4(it builds only for Ubuntu 26.04 and later, so bootstrap refuses 24.04 and Debian). On Amazon Linux 2027 it installshaproxy-awslcand nofrr(AL2027 has no such package, so no BFD). RHEL 10 ships HAProxy 3.0, so bootstrap downloads the HAProxy 3.4 RPM from the herr-ober releases, checks its pinned SHA-256 and installs it (see HAProxy 3.4 on RHEL 10). On RHEL it keeps SELinux enforcing and loads theherr_oberpolicy module (see Architecture). - Installs ExaBGP with pip into the venv
oberruns from (exabgp>=4.2,<5). - Writes the systemd units
ober-http,ober-bgpandober-ha(plus theober watchand blocklist sync units, which are enabled only when needed). - Writes initial configuration templates.
- Arms the systemd hardware watchdog with a drop-in (
RuntimeWatchdogSec=10s). - Only with
--firewall: enables ufw (Ubuntu) or firewalld (RHEL) and allows the SSH port(s) first, then 443/tcp, VRRP and BFD (3784/udp). An already active firewall gets only 443/tcp, VRRP and 3784/udp. Port 80, BGP and the stats port are not opened. Without--firewallno firewall is changed.
When ober runs from a venv (the pipx install above), bootstrap reuses an existing install
pointer, or else installs into that venv. Outside a venv, give the install path explicitly:
If bootstrap fails midway, run sudo ober uninstall before retrying. See
Configuration for how later commands find the install path.
4. Configure¶
Quickest way: the whole cluster in one command. On one node, or on any host with ober that
can SSH to the nodes as a user with sudo -n:
sudo ober cluster init 10.0.0.11 10.0.0.12 10.0.0.13 10.0.0.100 10.0.0.101 10.0.0.102 \
--backend s3.example.org --cert /path/fullchain-and-key.pem
- IPs: give the server addresses and the floating IPs in one list. Init logs in to each address. An address that a server has on a network card is a node. An address that no server has is a floating IP (a keepalived VIP): clients connect to it, and it moves to another node when one fails. Init stops when another device already uses a floating IP. When an address does not answer at all, init asks if it is a new floating IP or a server that is switched off. Give one floating IP per node, so all nodes carry traffic (DNS round robin). With one floating IP, only one node serves at a time.
- SSH: init logs in as the user that runs it (root with
sudo). When a server does not accept that user's SSH key yet, init shows one line to paste on that server and checks again. It makes an SSH key when the user has none, and it trusts a server's host key on first contact (a changed host key stops init). - Backend:
host[:port]orhttps://host. Port 443 (the default) uses TLS. Repeat--backendfor more servers. Init connects to each backend from each node first and stops with the reason when one cannot reach it (unknown name, refused, no answer, untrusted TLS certificate). It shows the network card and source address that each node uses for each backend. Linux already sends backend traffic out of the card on the backend VLAN, so ober does not set this. Init warns when backend traffic goes out of the client-side card on a host that has more cards. - Certificate: without
--cert, init uses the certificate that the nodes already have. The S3 hostnames come from the certificate SAN. - Public VIPs need
--allow CIDRfor the client networks, because internet VIPs deny all other sources. - Init installs ober (from this version's release tag) and runs
ober bootstrapwhere needed, writesober.yamlandober.local.yaml(local_ip) on each node, and starts ober, one node at a time. It always uses keepalived mode: BGP needs the AS numbers and the router address from your network team. On RHEL 10, bootstrap installs HAProxy 3.4 itself (see Bootstrap). - Init shows its plan and asks before it changes anything (
-yskips all questions; then an address that does not answer becomes a floating IP, so a switched-off server must be on). When a step fails, init says where and why. Fix it and run the same command again.
sudo ober config on a node with no ober.yaml asks the same things, each with an example:
the IPs, the storage address, the certificate file (Enter = the one the servers have) and, only
when a floating IP is a public address, the client networks. Then it runs ober cluster init.
Answer "no" to the first question for the full wizard.
Full wizard: the interactive wizard selects the HA mode (BGP or Keepalived) and configures VIPs, backends and certificates:
Choose BGP mode if you have a BGP-capable router for ECMP load balancing. Choose Keepalived
mode for VRRP-based failover without BGP. Every prompt is prefilled from ober.yaml.
ober config --dry-run validates and previews the result without root and without applying
anything. To edit ober.yaml by hand instead, use sudo ober config --non-interactive or
sudo ober apply (see Operations). The wizard and the YAML file are described
in Configuration.
5. Verify and start¶
ober doctor # prerequisites and configuration
sudo ober test # BGP neighbors or keepalived peers, backends, certificate
sudo ober start # ober-http first, then ober-bgp or ober-ha
ober status # service state, versions, VIPs, backends (--check for a one-line summary)
Check the health endpoint directly with:
Example: three-node keepalived cluster¶
For a three-node keepalived cluster without BGP, on node 1:
sudo ober bootstrap
sudo ober config
# Select: Keepalived/VRRP mode
# Peers: 10.0.0.2,10.0.0.3 (IP addresses, not hostnames)
# VIPs: 192.168.1.100,192.168.1.101,192.168.1.102 (one per node)
sudo ober start
Repeat the same steps on nodes 2 and 3 with the matching peer IPs and the same VIPs, or keep one
ober.yaml for all nodes and use ober push (see
One ober.yaml for the whole cluster).
Each VIP gets an owner node: by default the md5 of the VIP picks it, or set vips[].owner
(see Configuration). Then publish all VIPs under one name with DNS
round-robin:
s3.example.com IN A 192.168.1.100
s3.example.com IN A 192.168.1.101
s3.example.com IN A 192.168.1.102
Example: BGP/ECMP cluster¶
Every node announces the same VIP(s). Run sudo ober bootstrap and sudo ober config on each
node, select BGP/ECMP mode and enter the local and peer AS numbers, the BGP neighbor IP(s), the
router ID and the local address. Then run sudo ober test, which checks that TCP port 179 is
reachable on every neighbor, and sudo ober start. On the router, configure the nodes as BGP
neighbors with ECMP. A link failure is detected by the BGP hold time (3 s by default). For
0.9 s, set bgp.bfd_enabled: true (FRR bfdd next to ExaBGP) and enable BFD for the BGP
neighbors on the router (bird2: protocol bfd { } and bfd on;).