Skip to content

Servers and load balancers ​

The Servers page shows every machine of your panel: the Main server and the load balancers. Here you set up new load balancers, check that they run and install updates. The running example: you set up a load balancer "LB Frankfurt" for viewers from Germany, Austria and Switzerland.

In the menu the page is under Monitor › Servers. It is for the team only.


1. The terms in one sentence ​

TermWhat it is
Main serverThe machine with the database. It also delivers streams as long as there are no load balancers.
Load balancerAn additional server that only delivers: live channels, catch-up and, when switched on, movies and series. It has no database.
AgentThe program on the load balancer the panel controls it through.
ManagedA load balancer the panel set up itself (Set up server). The panel can restart, update and reconfigure it.
ManualA load balancer you installed yourself and added with Add manually. The panel can only check it.

In short:

Set up load balancers with "Set up server". The panel then takes care of installation, hardening and updates itself.


2. The page ​

"Main server and load balancers: status, disks and usage." At the top right you choose the view: Compact (default) shows a table with one row per server, Detailed shows one card per server.

2.1 The cards ​

In the Detailed view the cards come in this order:

  1. Panel: the control panel itself with Services, Database, RAM and Last restart.
  2. Main server: "Database and streaming", with the version (Panel {v}). Details shows CPU and memory per service and the FFmpeg ingest processes, one process per running channel.
  3. One load balancer per server: "Streaming only – no database", with the agent's version (Agent {v}, amber with "update available" when it is older than the panel).

Each streaming server's card shows four numbers at the top: Connections, Users, Live and Down (red when channels on this server are down). A click goes to the matching list. On the main server, Connections counts the viewers of all servers together.

Below are bars for CPU, Memory, IO wait, Disk and, when a limit is set, Capacity. They turn amber from 80 % and red at 100 %. The small boxes show CPU load, Uptime, Input and Output.

Below the cards, two charts show the Network traffic and Connections of all servers in the last hour.

2.2 Status ​

BadgeMeaning
Setting up …The setup is running.
Setup failedThe setup failed. The Compact view shows only Disabled for it.
DisabledYou switched the server off.
Warning / CriticalA problem from the health banner, e.g. high CPU load (limits in the chapter Dashboard & statistics).
OnlineThe server reported within the last three minutes.

A load balancer only gets new viewers when it reported within the last 90 seconds. So a server can still show Online and get no more viewers.

When the main server cannot reach a load balancer, its card says "The Main cannot reach this server – channels do not start here". On managed servers, Fix firewall opens the agent port for the main server again.


3. Setting up a load balancer ​

You need a fresh Ubuntu or Debian server the panel can reach over SSH and on port 8090, and its root password.

First: Add a key of your own under SSH access (section 8). The setup switches password logins off. Without a key you can no longer log in to the server over SSH yourself.

  1. Monitor › Servers, Set up server.
  2. Name: LB Frankfurt. The name main is reserved for the main server.
  3. IP address or host name, SSH port (default 22), SSH user ("root, or a user with sudo") and Password. The password is "Used once, never stored."
  4. Domain (HTTPS):
    • Free address: the panel creates an address for the server. HTTPS works without any setup at a domain provider. This choice only exists when the panel offers such an address.
    • My own domain: e.g. lb1.example.com. Create an A record pointing to the server's IP at your domain provider first.
    • No domain: players connect over plain HTTP. Apps and MAG boxes still work, the web player on an HTTPS panel does not.
  5. Also for VOD (movies & series): on if the server should also deliver movies and series from your library. You then set the Library folders and the Download folder. Off means live streams only and saves memory, CPU and disk.
  6. Set up the firewall and Disable SSH password logins are on. Leave them on.
  7. Set up now.

A window shows the steps, from Connect over SSH to Harden SSH. At the end the panel reports "The server is ready and registered." If a step fails, the error is shown in the window and later under Actions › Setup log. You can start the setup again with the same name.

Then you assign channels to the server: in the channel editor under Servers (chapter Live Streams, section 5.8), or for many channels at once with the Servers mass action (chapter Mass edit & tools). A load balancer without channels gets no live viewers.

Example: "LB Frankfurt" for DE, AT, CH ​

After the setup you open the pencil on the "LB Frankfurt" card:

  1. Preferred for viewers from: Germany, Austria, Switzerland.
  2. Max. viewers: 800, Max. Mbit/s (uplink): 9000. 0 means "no limit".
  3. Save.

Viewers from these three countries now go to "LB Frankfurt" first. Section 5 explains exactly how.

Add manually ​

Add manually adds a load balancer on which you run the agent yourself. You enter the API address (main → server), the Public address (players → server) and a Shared secret (at least 16 characters; Generate makes one). The secret must be set as NODE_SECRET on the server.

A manual server shows "Manual" under Agent. Most actions are missing for it, and you install updates yourself ("Added manually – update its agent yourself (same version as the panel)."). So use Set up server where you can.


4. Actions on the card ​

The pencil (Edit) opens the server's settings. The Actions menu contains:

ActionWhat it does
Check nowAsks the server right away instead of waiting for the next check.
Restart agentRestarts the agent and the streaming service. Running channels on the server restart.
Domain / HTTPSChanges the domain (the same choice as in the setup). The panel fetches the certificate itself.
Own domainOpens Use your own domain (section 8).
Switch VOD off / Switch VOD onSwitches movies and series on this server off or on. Switching off is not possible while a library uses folders of this server. The files stay on the disk.
Library foldersChanges the folders. The agent restarts afterwards.
Agent log / Setup logThe last lines of the agent's or the setup's log
Accept new host keyOnly if you reinstalled the server or changed its SSH keys. Compare the fingerprint first.
DeleteRemoves the server from the panel.

The actions from Restart agent to Accept new host key only exist on managed servers.

The server's settings (pencil) also contain:

  • Enabled: off means the server delivers nothing any more, live channels included. New viewers go to other servers. There is no separate maintenance mode; use this switch for it.
  • Live TS without RTSP: on means viewers get the MPEG-TS as the source sends it, with every audio track, subtitles and teletext. Applies from each channel's next start.

When you rename a managed server with a free address, the panel can move the address along (Also change the address). The old address keeps working until every step has succeeded.

Caution when deleting: The server is also removed from every channel. Channels that were only on it then run on the main server. Its library folders and their titles disappear from the panel. The panel uninstalls nothing on the machine itself.


5. How viewers are distributed ​

For each new viewer the panel picks a server like this:

  1. Channel without servers: it runs on the main server.

  2. Channel with servers: the candidates are the channel's load balancers that are enabled and reported without errors within the last 90 seconds. The main server is not one of them.

  3. The panel looks in three groups, in order:

    1. servers that list the viewer's country under Preferred for viewers from,
    2. servers without countries ("For viewers from everywhere"),
    3. all other servers of the channel.

    In the first group with a server that is not full, it takes the one with the most room.

  4. Room means: viewers against Max. viewers and outgoing bandwidth against Max. Mbit/s (uplink), whichever is higher counts. Without a viewer limit the panel assumes 1,000 viewers.

  5. A server is full when it has reached Max. viewers or sends 95 % of Max. Mbit/s (uplink). When all are full, the one with the most room still gets the viewer. Nobody is turned away.

  6. When none of the channel's servers can be reached, new viewers get the channel from the main server.

When a server fails, the panel usually notices after 15 to 40 seconds. Viewers already on it only move when their player connects again.

When a channel is on several servers, only one of them pulls the source from the provider; the others take it from that one. So the channel uses only one provider connection.

Delivery groups under Settings › Domains only change the address a server is reached at, not the choice of server.


6. Updates ​

After a panel update, the main server and the load balancers need the new version too.

  • Update all ({n}) appears when servers are outdated. The main server goes first, then the load balancers one after another. Streams on each server restart for a moment.
  • The Automatic updates card below the servers has two switches:
    • Update the Main server automatically: it installs the panel's version by itself. If it does not come up healthy afterwards, it goes back to its old version.
    • Update load balancers and VPN servers automatically (default: on): once the main server has the new version, the load balancers follow, never all at once. The panel looks every 10 minutes.

The Live delivery card has the switch Live TS without RTSP on the Main server, the same switch every load balancer has (section 4).

How you update the panel itself is explained in the chapter Backups & updates.


7. A panel hosted by IPTV OS ​

When your panel runs at IPTV OS, the page looks a little different. The Panel card then says "hosted by IPTVOS", and you provide the main server yourself:

  • Add Main server: you enter the IP address of the server, the SSH port and the Root password. The panel checks the server (Check and set up) and sets it up. Needed: Ubuntu 24.04 or 26.04, at least 2 GB of memory, 10 GB of free disk and the ports 80, 443, 5433 and 8888. The panel restarts once while the database moves.
  • Add streaming server: the panel creates an Install command that you run as root on the server. It works once and is valid for 24 hours.

The main server's card then shows From the panel (whether the panel reaches it) and Test playback path. The owner sees the main server's logs under Logs, without SSH.


8. SSH access and own domain ​

  • SSH access (owner only): "One key for all servers the panel set up." Make one for me creates a key to download, I have a key lets you paste your own. Put on all servers again hands it out once more.
  • Use own domain: your own names for the panel, the main server and the load balancers. The panel shows the DNS records to add at your DNS provider, checks them every 30 seconds and applies them one by one.

9. Who may do what? ​

OwnerAdminStaffViewer
View the pageyesyeswith the Servers right (read)yes
Set up server, Add manually, edit, Check now, Deleteyesyeswith the Servers right (write)no
Other actions, Update all, Automatic updates, Live deliveryyesyesnono
SSH access, main server Logsyesnonono

10. Frequently asked questions ​

Do I need load balancers at all? No. Without load balancers the main server delivers everything. Load balancers pay off when the main server's bandwidth or CPU is no longer enough, or when you want to serve viewers in other countries from closer by.

I set up a load balancer but it gets no viewers. Assign channels to it (section 3). Channels without servers always run on the main server.

How do I take a server out of service for a while? Switch Enabled off in its settings. New viewers then go to the channel's other servers or to the main server.

The agent shows "update available". Click Update all, or switch on the automatic update of the load balancers under Automatic updates. You update manually added servers yourself.

Can I still log in to the load balancer over SSH with the password? Not if Disable SSH password logins was on. Log in with the key from SSH access.