Skip to content

MAIN and Load Balancers: the New Cluster

XC_VM can spread your viewers and streams over several servers. One server is MAIN: it runs the admin panel and the database. The others are load balancers (LBs): they run streams and serve viewers. This page explains how MAIN and its load balancers now work together, what is better than before, and how to set it up.

You do not need to know how it works inside. If you want the technical details, see Cluster API (MAIN ↔ LB) in the Developer Guide.

The idea in one minute

Before, a load balancer was given MAIN's database password. It logged straight into MAIN's MySQL and Redis to read settings, lines and streams, and to write its stats and viewers. Every load balancer held the keys to the whole panel.

Now, each load balancer runs a small program called the agent (xc_agent). The agent talks to MAIN over one secure channel. The agent always starts the conversation: MAIN never connects to the load balancer, it waits for the agent to ask. Every message is signed and encrypted, even over plain HTTP. The load balancer no longer needs MAIN's database at all. In the end you can remove the database password from it completely.

 BEFORE                                   NOW

  ┌──────────┐  MySQL 3306 + Redis 6379    ┌──────────┐   one secure channel   ┌──────────┐
  │   LB     │ ──────────────────────────► │   MAIN   │ ◄───────────────────── │   LB     │
  │ (has the │   panel database password   │          │   (MAIN's normal HTTP  │  agent   │
  │ DB pass) │ ◄────── MAIN's /api ─────── │          │    port, signed and    │ (own key)│
  └──────────┘   (shared stream password)  └──────────┘    encrypted)          └──────────┘

Old versus new

Before (legacy load balancer) Now (cluster)
How the LB talks to MAIN Logs into MAIN's MySQL and Redis directly Its agent talks to MAIN through MAIN's normal web port
What the LB stores MAIN's database and Redis passwords Its own private keys and an access token that renews by itself (hourly by default)
If someone steals an LB They get the password to your whole panel database They get only that LB's identity, which you can revoke in one click
Ports open on MAIN MySQL (3306) and Redis (6379) open to every LB Only MAIN's web port; MySQL and Redis can be firewalled or closed
Status in the panel The LB wrote its own stats into MAIN's database The agent reports every 2 seconds; MAIN shows an LB as offline after 30 seconds of silence
Viewer links One shared secret signs links for every server Each LB gets its own key (Config flow), so a link made for one LB does not work on another
Relays between servers The stream password travels in the URL Signed tickets instead of the password (Data plane flow), and the stream bytes are sealed where both servers support it
RTMP viewers Refused on a load balancer, which cannot look up a line MAIN checks the line at each connect, through the agent, so a line disabled on MAIN is refused at once
Proxies Trusted by their IP address A proxy installed with the current proxy release signs what it sends with its own key
Movies and timeshift One PHP process per viewer Served by the streaming daemon (xc_fanout), which uses far less memory
LB software updates Came from MAIN Every server downloads checked releases from GitHub by itself, hourly
Switching over All or nothing Per LB and feature by feature; every step can be undone except removing the database password from an LB

What you get

Better security

  • No database password on the load balancers. Once a load balancer runs fully on the cluster, MAIN's database and Redis credentials can be removed from it (Drop DB credentials).
  • Every LB has its own identity. It is created on the LB itself during install, and its private keys never leave the server. Its access token expires and renews by itself (every 60 minutes by default).
  • One-click controls on the Cluster Nodes page: rotate a token, fence (stop) an LB, put it in quarantine, or revoke it.
  • Per-LB viewer keys. With the Config flow on, a viewer link made for one load balancer cannot be reused on another.
  • Signed relays and file transfers between your servers (Data plane flow), so the stream password is no longer needed in URLs. Where both servers support it, the bytes are sealed too.
  • Signed proxies. A proxy installed (or reinstalled) with the current proxy release signs its reports. Once it has signed one, MAIN no longer accepts unsigned reports from its address.
  • Safer TLS. A server that still uses the old built-in TLS key gets its own at startup, and only TLS 1.2 and 1.3 are allowed.

More reliable

  • MAIN outages hurt less. With the Config flow on, each load balancer keeps a local copy of what it needs (settings, servers, stream list). If MAIN is unreachable, viewers already watching keep watching and the LB's streams keep running. What the LB has to tell MAIN waits on its disk and is sent when MAIN is back.
  • Faster, clearer status. The Cluster Nodes page shows each LB's state, version, clock and warnings, such as a clock that is wrong, connections that do not match, or reports that are piling up.

Less work

  • Automatic enrolment. Installing a load balancer from the panel also joins it to the cluster.
  • Automatic updates. Every server checks GitHub hourly and installs new verified releases of the agent, the streaming daemon and the xcvm_core extension. MAIN no longer hands them out.
  • Lighter servers. Movies and timeshift are streamed by the daemon instead of PHP, so a busy load balancer needs far fewer PHP workers.

Before you start

  • A licence. MAIN signs every load balancer's tokens with your licence. Without a valid one, no new load balancer can join.
  • The xcvm_core extension with the cluster API. Check it under Settings → Cluster: the box at the top shows Extension: xcvm_core … (API 1).
  • Supported systems for load balancers: Ubuntu 20.04, 22.04 or 24.04, or Debian 12 or 13.
  • Network:
  • each load balancer must reach MAIN's HTTP port (or the Cluster API Port you choose);
  • each server needs outbound HTTPS to GitHub to download its updates;
  • MAIN needs SSH access to a new load balancer for the install. A server behind NAT can join with a code instead (see below).
  • Correct time on every server (NTP). The dashboard warns when a server's clock is more than 5 seconds off MAIN's, and the Cluster Nodes page from 30 seconds. At power-on, XC_VM waits up to 30 seconds for NTP's first synchronisation, then starts anyway with a warning in its journal (journalctl -u xc_vm).

Setting it up

Step 1: turn the cluster on (MAIN)

A panel installed from 2.6.2 on starts with the cluster on: the installer switches it on, sets New Node Mode to api when it can, and switches MAIN's data plane on. Check it under Settings → Cluster, then go to Step 2. On an older panel:

  1. Open Settings → Cluster.
  2. Switch on Enable LB API and click Save.

Leave the other settings at their defaults. You can come back to them later:

Setting Default When to change it
Cluster API Port 0 (use MAIN's HTTP port) If you want the cluster on its own port
MAIN Host Name empty Set a DNS name if MAIN's IP address may change
Cluster Transport auto auto already uses HTTPS when MAIN has a valid certificate
Offline Admission local What an LB does with new viewers while it cannot reach MAIN: local applies the line's connection limit itself, allow lets them in, deny refuses them

Step 2: add a load balancer

  1. Open Servers → Install Load Balancer.
  2. Fill in the server name, its IP address, and SSH login (user, password, port), as before.
  3. Optionally, paste the server's SSH host key fingerprint. The panel then refuses to install if it sees a different server (protection against a fake server). The key seen at a server's first install is saved, and every later install must match it. If you reinstalled the server's operating system, it has a new key: on the reinstall form, switch on Forget the Saved SSH Host Key (or paste the new fingerprint). That install then trusts the key the server presents and saves it.
  4. Start the install and follow its progress on the Server View page.

At the end of the install, the new load balancer installs its agent from GitHub, creates its own keys, checks that it can reach MAIN, and joins the cluster. Open Servers → Cluster Nodes: it appears there as active.

New Node Mode (Settings → Cluster) decides how a newly installed load balancer starts. With legacy (the default) it joins in mode 1 and you move it on (Steps 3 and 4). With api it joins straight in mode 2, every flow on, and gets none of MAIN's database or Redis credentials, as if it had already gone through Step 5's first part. api needs the cluster API on (without it a new load balancer installs the old way).

A load balancer that is already installed, or that MAIN cannot reach over SSH (NAT)

The server must already be in Servers → Manage Servers.

  1. Make sure the load balancer is updated to the current release.
  2. On Servers → Cluster Nodes, use Enrol by code: choose the server and click Issue code. If the LB must reach MAIN at another address (for example a private IP), type it in the MAIN URL field first. The page shows a command once.
  3. Run that command on the load balancer as root. It prints a short check code (SAS).
  4. Type the SAS into the request waiting on Cluster Nodes and click Approve.

A code is valid for 30 minutes and can be used once.

Step 3: move work to the cluster, one feature at a time

A new load balancer joins in mode 1. Its features are called flows: each one moves one kind of work from "the LB uses MAIN's database" to "the agent does it through the secure channel".

A load balancer you install from the panel gets its flows switched on by the install itself, as soon as its agent has connected. The machine was stopped for the install, so it has no viewers or streams to move over carefully. The install log says what was switched. If the node's agent cannot relay, Data plane alone stays off, and you switch it on from Cluster Nodes later. If the agent has not connected within about a minute, the install leaves every flow off and says so in its log: switch them on from Cluster Nodes, as below.

A load balancer that was already running and joined with an enrol code starts with every flow off. It is connected and reporting, but it still works the old way. You then switch its flows on, one by one, on the Cluster Nodes page.

The exception is a load balancer that was in mode 2, or whose DB credentials were dropped (Step 5). When you reinstall it or enrol it again by code, it comes back in mode 2 with every flow on, because in mode 1 it would have no database.

Switch them on in this order. After each one, watch the LB for a while (its streams, its viewers, the warnings on Cluster Nodes) before going on:

Order Flow What changes when it is on
1 Telemetry MAIN takes the LB's CPU, memory, network and stats from its agent
2 Commands Start/stop, restarts and viewer kills reach the LB as signed commands
3 Logs The LB's logs reach MAIN through the agent
4 Streams The LB reports its streams' status (running, stopped, codecs) through the agent
5 Content Recordings and movie analysis reach MAIN through the agent
6 Config The LB reads its settings, servers and stream list from its local copy, not from MAIN's database. It also gets its own viewer key
7 Connections The LB keeps its viewer list itself, and the agent mirrors it to MAIN. Needs Commands and Streams
8 Data plane Relays and files from other servers go through the agent with signed tickets instead of the stream password. Needs Streams and Content

Streams the LB already relays from another server when you switch Data plane on keep pulling the old way, with the stream password, until they restart. Nothing new goes out meanwhile: a parent no longer takes the password from a server with Data plane on, so such a relay that reconnects is refused. To move them over at once, restart them: on Streams, filter Server to the LB, select them and click Restart.

Once every load balancer has Data plane on, close the data plane on MAIN's side too, on Cluster Nodes → MAIN's data plane:

  1. Click Switch on. MAIN then reads load balancers' files and relays with tickets as well, through an agent of its own (the same as console.php cluster:main-dataplane on). If it answers that there is no agent binary yet, run console.php fanout_binary agent as root on MAIN first.
  2. The same card says whether the load balancers' legacy /api is closed. It closes by itself, within a minute, once every server, MAIN included, has its data plane on; until then the card names the servers that keep it open. A proxy never does: it reads no load balancer's files. Each load balancer's Legacy /api calls column shows who still calls it.
  3. When it says Closed, rotate the stream secret (console.php cluster:rotate-stream-secret on MAIN), so the old one opens nothing.

Every flow can be switched off again: the load balancer then goes back to the old way for that part. The exception is a load balancer in mode 2 (Step 4), which needs every flow: the page refuses to switch one off, and you press Mode down first. Before switching Connections on by hand, load the LB's current viewers into its agent with one command on the load balancer:

sudo -u xc_vm /home/xc_vm/console.php cluster:seed-connections

Without it, the agent starts with an empty viewer list, MAIN's list and its own disagree, and the resync that follows would drop the viewers the LB has.

Guided cutover

Guided cutover (Cluster Nodes, per load balancer) does this step for you: it switches the flows on in the order above, one at a time, and watches the load balancer for two minutes after each before going on.

  • Before each flow the load balancer must be active, heard by MAIN, and show no red badge (a report queue falling far behind, a clock far off). Otherwise the cutover stops there.
  • Before Connections it has the load balancer load its viewers into its agent (the command above), and waits for its answer.
  • If the load balancer is not healthy after a flow, that flow is switched off again and the cutover stops. The page says why.
  • Data plane is left off when the load balancer's agent does not offer the relay, as an install leaves it.
  • It ends in mode 1 with every flow on. It never moves a load balancer to mode 2: that stays your move (Step 4).

The page shows each flow's progress and refreshes itself while the cutover runs; Cancel cutover stops it before its next flow.

Step 4: full cluster mode (mode 2)

Mode 2 means the load balancer no longer touches MAIN's database at all. Press Mode up (the + next to the mode) on a load balancer in mode 1. The page moves it only when it can run that way right now:

  • every flow is on, Data plane included;
  • the Root pin badge is shown, so updates and restarts can reach the LB as signed commands;
  • the LB is active (not quarantined) and MAIN heard it in the last ten seconds;
  • the LB itself says that it runs from its own copy: it starts from its local settings and reads its streams by itself. That takes a minute or two after the flows are switched on. If it is not there yet, the page tells you so: try again shortly.

The Redis connection handler (Cache) may be on or off: a load balancer in mode 2 keeps its viewers on itself either way, and MAIN keeps its copy in whichever store the handler says.

The page asks you to confirm first. From its next heartbeat (about two seconds) the load balancer opens no connection to MAIN's MySQL or Redis, and its background services restart within a minute so that none keeps an old one. The MAIN DB connects box starts counting again at that moment: whatever it shows from then on was refused, with the file and line that asked. That is something on the load balancer that still needs MAIN's database. Watch that box and the node's streams for a while after the move. A red Streams not local badge next to the mode means the load balancer cannot read its streams any more: press Mode down, wait a minute or two, then Mode up again. With Automatic Mode Down (Settings → Cluster, in minutes; off by default) MAIN takes that first step by itself once the badge has stood that long, for a load balancer that this page moved to mode 2 and that still holds its database credentials. Mode up is still yours to press.

What can and cannot be undone

The move to mode 2 takes nothing away from the load balancer: it keeps its database credentials, so Mode down brings everything back, at any time.

It stops being undoable in these cases:

  • after Drop DB credentials (Step 5). There is then no way back from the panel. The page warns you if you press Mode down on such a load balancer: in mode 1 it would have no database at all;
  • after a database or Redis password change made while the load balancer was in mode 2. The new password does not reach it, so after Mode down it cannot connect. For the database password, set it on the load balancer (console.php cluster:set-db-password). For the Redis password, run the Redis rotation on MAIN again after Mode down: it then reaches this load balancer too;
  • after a reinstall of the load balancer while it is in mode 2: the install gives it no database credentials, and the page cannot tell, so Mode down does not warn you;
  • while MAIN is locked down (cluster:lockdown): undo the lockdown first.

With the DB Allowlist on (Step 5), MAIN's firewall lets the load balancer back in up to a minute after Mode down. Its services may fail and restart once during that minute.

Step 5 (optional): lock everything down

Only when every load balancer is in mode 2:

  1. Drop DB credentials (Cluster Nodes, per LB) removes MAIN's database and Redis passwords from the load balancer, and MAIN cancels its database access. This step cannot be undone from the panel, so the page allows it only after the load balancer has spent seven days in mode 2, and only while it can run that way right now: every flow is on, MAIN heard it in the last ten seconds, and it says that it reads its streams by itself. Otherwise the page tells you what is missing. Use those days: if the MAIN DB connects box of that load balancer keeps showing refused connections, something on it still needs MAIN's database. The request waits ten minutes for the load balancer. If the load balancer does not collect it in that time, nothing is removed: press the button again. Mode down withdraws a request the load balancer has not collected yet, and the load balancer itself removes the passwords only while it is in mode 2. When it is done, the load balancer shows a DB revoked badge.
  2. DB Allowlist (Settings → Cluster) firewalls MAIN's MySQL and Redis so that only MAIN, and servers that still need them, can connect.
  3. Proxies: reinstall each proxy from Servers → Manage Proxies, so it gets its own key and signs its reports.
  4. Last, an administrator can close MySQL and Redis to the network entirely by running /home/xc_vm/console.php cluster:lockdown as root on MAIN. It refuses while any LB is below mode 2 or any proxy has not signed yet. cluster:lockdown --undo reverses it.
  5. Viewer Record Proof (Settings → Cluster). Once locked down, MAIN no longer sends the load balancers the stream secret, and each viewer record a load balancer reports should carry MAIN's proof that MAIN sent it that viewer. Leave it on observe and watch the Viewer record proof card on Cluster Nodes: it shows which load balancers prove, what each counted today without a proof, and whether enforce is safe. When it says Ready for enforce, switch to enforce: MAIN then refuses a viewer record it did not mint, so a load balancer can only report viewers MAIN sent it. A load balancer on an older panel release, or RTMP viewers from before they carried the proof, show up there as unproven first.

Everyday use: the Cluster Nodes page

Servers → Cluster Nodes is where you watch and control your load balancers:

You see It means
State active / quarantined Normal / frozen until you click Trust again
Mode 0, 1, 2 Old way / mixed / fully on the cluster
Last seen, Agent When the LB last reported, and its agent version
Token expires When its current access token runs out. It renews by itself
clock … The LB's clock is off; fix its time (NTP)
connections differ MAIN and the LB disagree about who is watching; they re-sync by themselves
P0 / P1 lagging Reports are waiting to reach MAIN. Check the network between them
MAIN URL unreachable The LB cannot reach one of MAIN's addresses. Check the firewall or certificate
relay port down Another program uses port 31290 on the LB; free it
Legacy /api calls Who called the LB's old /api (the one with the stream password) in the last 7 days, by action and caller address. 0 means nothing did

The buttons:

Button What it does
Rotate token / Rotate all tokens now Issues a new token, for example if you think one leaked. The LB keeps working
Fence / Unfence Stops new viewers on that LB at once, and drops the rest after a short drain. Unfence puts it back on air
Quarantine / Trust again Freezes the LB's trust: it keeps serving but takes no new instructions. MAIN also does this by itself if it suspects a cloned server. Commands queued for it that grant something are ended by the quarantine (the page says how many, the audit log names them): after Trust again, send again what is still wanted
Resync The LB fetches its copy of the configuration and its viewer list again from scratch
Revoke Removes the LB from the cluster. Its tokens stop working at once; it must join again
Mode up / Mode down Moves the LB between modes 0, 1 and 2
Guided cutover Switches the LB's flows on one at a time, watched, up to mode 1 (Step 3)

Placement advice

Servers → Placement Advice → Show tells you which servers are busy and where their busiest streams could also run. A server's load is the highest of three readings: its viewers against its Max Clients, its outgoing traffic against its network speed (as the load balancing reads them), and its CPU. For a server at 80% or more, it names the least busy server under 40% and up to five of the busy server's streams, by viewers, that the other one does not run yet. Add that server to those streams (the stream's Servers tab) to share the viewers. The advice changes nothing by itself.

When MAIN is unreachable

  • Viewers already watching on a load balancer keep watching, and its streams keep running.
  • Everything the LB has to report waits on its disk and is sent when MAIN is back.
  • Offline Admission (Settings → Cluster) decides what happens to viewers the LB cannot check with MAIN.
  • By default a load balancer never stops on its own because it cannot reach MAIN. If you turn on Lease Fence in Settings → Cluster, an LB that has not heard from MAIN for too long stops serving. It refuses new viewers once its token has expired plus the Partition Tolerance (12 hours by default, never more than 26 hours after its last token), and drops the remaining viewers after the Fence Drain (10 minutes by default). Turn it on before you ever need it, because it reaches the LBs only while your licence is valid.

Signed, sealed load balancer configs (XCVT v2)

Every load balancer gets its config.enc (MAIN's database address and, unless it is in API mode, the credentials) from MAIN. From this release MAIN sends that config as XCVT v2: signed by MAIN's cluster root key and sealed to the load balancer's own key (its panel.sk). A load balancer pinned to MAIN refuses any config MAIN did not sign, and nobody who reads the config on its way (the command queue, a database backup) can open it. This covers every load balancer, with or without the cluster API. Proxies keep their config.ini.

Upgrade MAIN first. An older MAIN sends only the old format (v1). A load balancer on the new release that is already pinned refuses v1 configs and keeps the config it has, so its config changes wait until MAIN is upgraded.

What the install does now

A load balancer installed from this release is pinned during the install, before its config is written, over the same verified SSH session:

  1. MAIN creates the config directory and the load balancer's install_id, as root.
  2. The load balancer shows its panel key (panel_pk, creating panel.sk when it has none).
  3. MAIN checks its own cluster root and pins it on the load balancer (core.pin). No licence is needed for this pin: it carries public keys only. If MAIN has no cluster root yet, and none was ever recorded, it creates one and the install log asks you to back it up with console.php cluster:export-keys: from now on that root protects every load balancer's config. If a root was recorded before and is missing or does not open, the install refuses to make a new one: restore it with cluster:import-keys. This check (and the only automatic creation of a root) runs at an install and in server:xcvt-pin; there is no upgrade step that makes one, and the v2 pins cron:cluster sends only use the existing root. cluster:init and switching the cluster API on in Settings apply the same rule (cluster:init --force makes a new root on purpose, and every pinned load balancer then needs server:xcvt-pin).
  4. MAIN packs the config for that key (v2) and uploads it. Only then does the config directory go to the xc_vm user.
  5. When the load balancer runs, MAIN reads it back as xc_vm (the user PHP-FPM runs as): its config must be a load balancer's, its panel key the one MAIN recorded and its pin MAIN's key. If not, the install is marked failed (status 4).

In this release, if the pin cannot be made (for example the load balancer's xcvm_core predates v2), MAIN checks that the load balancer holds no pin, sends it a v1 config, and says so in the install log. A load balancer that holds a pin MAIN could not replace fails the install: it would refuse a v1 config.

How a load balancer judges a config

The extension on the load balancer decides, not the panel:

  • A pinned load balancer installs only a v2 config signed by the MAIN it pinned; a v1 config is refused. An un-pinned one installs only v1; a v2 config is refused until it is pinned. A v2 pin is signed with MAIN's cluster root and needs no licence.
  • The config must be addressed to this load balancer, at most an hour old, for a load balancer (never MAIN's own config) and, when one is already in place, for the same server id.
  • A v2 config older than the last one installed from the same MAIN (or as old with a different body) is refused as a replay. The extension keeps that mark itself; re-pinning with replace and importing the cluster keys reset it.
  • Pinning and installing a config are done as root; the extension refuses any other user. The panel's own calls already run as root.
  • Nothing is written when a config is refused.

The v2 file layout is in Core Extension.

Load balancers installed before this release

They have no v2 record on MAIN and keep getting v1 configs, with a node.config_v1 warning in the cluster audit log, until they are covered:

  • Enrolled load balancers that take root commands are covered by cron:cluster: it asks each one for its panel key (at most once a day) and sends it the v2 pin. Nothing to do, once the load balancer has a panel.sk (otherwise use the command below, which creates one).
  • Every other load balancer (the cluster API off, or not enrolled): run on MAIN, as xc_vm
console.php server:xcvt-pin <serverID> [sshPort] --cred-file=<path> --expect-hostkey=<sha1>

The credentials file is the same 0600 bin/install/<id>.cred as for an install (it is read and deleted). --expect-hostkey is the SHA-1 fingerprint read on the load balancer's console (ssh-keygen -l -E sha1 -f /etc/ssh/ssh_host_ed25519_key.pub). It may be left out only when the key MAIN stored was itself confirmed this way (an install or an earlier server:xcvt-pin given it): a key saved on first use is refused, so a pin is never written over an SSH session nobody checked. The command reads the install_id, shows the panel key, pins MAIN's root with replace, reads the pin back and records it; the key and the pin are written to the cluster audit log.

The same command re-pins a load balancer after MAIN's cluster root was replaced (a new root.enc, not a restore of the old one): pinned load balancers refuse everything the new root signs until they are re-pinned.

When a config does not install on a load balancer (its panel.sk was regenerated, it was re-pinned elsewhere), MAIN forgets the key it held for it, sends it nothing until it has asked again, and records only the key the load balancer shows.

The gate for the next release

console.php server:xcvt-report

lists every enabled load balancer (not MAIN, proxies or disabled servers): covered, or why not:

Reason Meaning What to do
ext_old its xcvm_core predates v2 update the load balancer, then server:xcvt-pin
no_pk it showed no panel key (panel.sk missing or does not open) server:xcvt-pin (creates one when there is none)
no_pin MAIN never pinned it with v2 server:xcvt-pin, or wait for cron:cluster
stale_fp its pin is of another MAIN root server:xcvt-pin
ssh_unreachable the last server:xcvt-pin did not reach it fix SSH, retry

A load balancer you are retiring can be waived: --waive=<serverID> --reason=<text> (--unwaive=<serverID> takes it back); both are written to the cluster audit log. The command ends with N+1 gate: PASS (exit 0) when no load balancer is uncovered.

The next release sends no v1 config at all, and an install whose pin fails fails. Update MAIN to it only once server:xcvt-report passes: a load balancer still uncovered (or waived) then gets no config. Configs MAIN sent before this release stay readable in old command rows and backups: change the database credentials once your load balancers are covered.

Common questions

Do I have to switch everything over at once? No. Each load balancer and each flow is switched separately, and you can mix old and new load balancers in the same panel.

Do I need HTTPS? No. Every message is signed and encrypted even over plain HTTP. If MAIN has a valid certificate, the default auto transport uses HTTPS anyway.

What happens if I change MAIN's IP address or port? MAIN tells the load balancers the new address and keeps answering on the old one for seven days, so none of them gets lost. Setting a MAIN Host Name (a DNS name) avoids the problem altogether.

Will the old way keep working? For now, yes. The old way (a load balancer that is not enrolled, its /api with the stream password, its access to MAIN's database and Redis) is deprecated: it is removed in a later major release, which will ask every load balancer to be in mode 2 before it updates. The Legacy /api calls column shows what still uses the old /api on each load balancer.

A load balancer shows "relay port down". What do I do? Another program on that load balancer uses port 31290, which the agent needs. Stop that program, and the agent takes the port by itself.

The install says the licence does not allow it (CLUSTER_LICENCE_REQUIRED). MAIN can only let new load balancers join with a valid licence. Check Licensing & Activation.

A new load balancer stayed in the old mode after install. It could not download its agent from GitHub, or the cluster was not switched on yet. Check that the server can reach GitHub over HTTPS, then join it with Enrol by code.

The install stops with "No MD5 hash for … in the hashes.md5 of release …". A load balancer installs its PHP and nginx bundle only after checking it against the checksum list of its release. This line means that the list does not name the bundle, or that the load balancer could not download the list. Check that the server can reach GitHub over HTTPS, then reinstall. If it can, the binaries release is missing the entry, and it has to be completed first.

On Ubuntu 20.04, the install log says "libssl3 is not installed". On Ubuntu 20.04 the install adds the OpenSSL 3 library for the bundled PHP. The log says whether it was installed and, if not, why. This line does not stop the install.