Media server redundancy
This article is about redundancy of the LS4 program on two PCs. The uninterruptible power supply module Light Stream Reserve 15 is a different device; it is described in its own manual.
Quick navigation: how the pair works · setup · pair status · project transfer · switchover rules · manual broadcast handover · warnings · limitations · FAQ
How the pair works
The pair consists of exactly two servers:
- Primary — outputs Art-Net in the normal situation;
- Backup — works with the same project, but does not send Art-Net while the primary is healthy.
Once a second, the servers exchange short messages about their state — a “heartbeat”. From the heartbeat, each one knows whether its partner is on the network, whether it is sending Art-Net, what project it has and what it is playing.
The main rule of the pair: exactly one server is on air with Art-Net. A server that is not currently on air does not start Art-Net output at all — neither with a button, nor with autostart, nor when a project is opened. Everything else works on it as usual: the project is open, scenes and the schedule run, the interface is available.
If the primary stops responding or stops sending Art-Net for longer than the set threshold (5 seconds by default), the backup takes the broadcast over. When the primary returns, the broadcast can go back to it automatically or by a button — this is configurable.
Playback is not synchronized between the servers. The backup outputs what is playing on itself. For the fixtures to show the same show after a switchover, the same project must be open and the same schedule running on both servers — most conveniently through project autoload with schedule start (see General: program startup).
Pair setup
Redundancy settings belong to the computer, not the project: the two servers share the project, but the roles and partner addresses differ. They must be set on each server separately.
- Connect both PCs to one network in which they can see each other by IP.
- On the first server, open Settings → Program settings (
Ctrl+P) and go to the Redundancy tab. - Turn on the checkbox next to the Redundancy heading.
- In the Settings group, select This server's role — Primary.
- In the Partner address field, enter the IP address or name of the second PC.
- Set the Shared key — any string known only to you.
- Click Save.
- Repeat the same on the second server: the role Backup, the address of the first PC, the same port and the same shared key.
- Make sure that in the Status block both servers see each other and exactly one is on air.
| Parameter | What it sets | Default |
|---|---|---|
| This server's role | Primary is on air by default; Backup takes the broadcast when the primary is silent or has stopped sending | Primary |
| Partner address | The IP address or name of the second server | — |
| Port | The port number for the heartbeat (UDP) and project transfer (TCP). Must match on both servers | 6473 |
| Shared key | Signs every message of the pair. Must match on both servers | empty |
| Heartbeat, ms | How often the servers report on themselves, from 200 to 10,000 ms | 1000 |
| Switch over after, ms | How long the partner can be silent or not send Art-Net before the backup takes the broadcast. From 1000 to 120,000 ms, but no less than two heartbeats | 5000 |
| Return the broadcast to the primary automatically | The primary, once back on the network, takes the broadcast back from the backup by itself | on |
| Pause before return, ms | How long the primary waits after returning before taking the broadcast back (0–600,000 ms) | 10,000 |
Tips:
- Do not leave the Shared key empty: without a key, messages are accepted only from the partner's address but are not verified. With a key, a foreign program can neither forge the heartbeat nor send a project.
- If the servers do not see each other, check that the Windows firewall on both PCs allows the selected port — both UDP and TCP.
- A switchover threshold that is too small on a loaded network can cause a false switchover because of a few lost packets. A threshold of a few seconds is a reasonable margin.
The same page exists in the web control panel — the Redundancy tab. It works with the same settings and the same status, so the pair can be monitored and switched from a phone or laptop.
How to read the pair status
The top line of the tab briefly says who is outputting now: this server is on air, the partner is on air or nobody is on air.
In the Status block there are two cards — This server and Partner. Each shows the computer's name and address, role, state and operating details — whether Art-Net is being sent and at what rate, the open project, what is playing, FPS, the program version and uptime. For the partner, it additionally shows how many seconds ago its last heartbeat arrived.
| State | What it means |
|---|---|
| ON AIR (in orange) | The server is outputting Art-Net |
| Standby | The server is running but is not sending Art-Net — the broadcast is with the partner |
| Starting | The server has just enabled redundancy and is waiting for the partner's first heartbeat; it is not sending Art-Net yet |
| Off | Redundancy is turned off on this server |
| Not responding | The partner's heartbeat has not arrived for longer than the switchover threshold |
| not seen yet | No heartbeat from the partner has arrived since startup |
The Why: line under the cards explains the current decision — for example “partner not responding”, “primary is sending Art-Net”, “primary stopped sending Art-Net” or “broadcast handed over manually”.
The Log group at the bottom stores the latest events: state changes, the partner appearing and disappearing, manual broadcast handover, project transfer and errors.
Transferring the project to the backup server
At the top of the Project group it says whether the projects on the two servers match, and below it — which project is open on each: name, save time and a short file fingerprint. The saved project files are compared, so unsaved edits do not affect the result.
To send your project to the partner:
- Save the project (
Ctrl+S). Without a saved file, the transfer will not start. - Choose a method:
- Send project (.ls) — only the project file. Suitable when the media files (videos, images, models) are already on the partner at the same paths.
- Send with all media (.zip) — the project is gathered together with all external files, as with File → Collect project, packed into an archive and sent in full.
- Follow the progress line under the buttons: “Collecting…”, then “Sending …: N% (X of Y MB)” with a progress bar and finally “… sent, partner is opening it”.
The partner receives the file, checks that it arrived intact, places it in the folder Documents\Light Stream Apps\Light Stream 4\Redundancy\Incoming and opens it immediately. After it opens, both project lines should show “Projects match”.
- Unsaved edits on the partner will be lost when the received project is opened.
- If the partner is currently on air, loading the project will interrupt its output for the time it takes to open. Send the project to a server on standby or in a pause between shows.
- The .ls option sends the last saved file: anything changed after saving will not be transferred.
If the transfer fails, the progress line names the reason: “save the project first”, “partner not responding”, “partner does not accept the connection”, “partner rejected the transfer (check the shared key)”, “file arrived corrupted”, “the received project did not open”, etc.
Switchover rules
Each server makes the “who is on air” decision itself, based on the partner's heartbeat.
| Situation | What happens |
|---|---|
| Both servers have just started | Each first waits for the partner's heartbeat, but no longer than the switchover threshold. This way a server will not start outputting on top of a partner that is already on air. |
| The primary is running and sending Art-Net | The primary is on air, the backup is on standby. |
| The primary disappeared from the network (powered off, hung, cable disconnected) | After the switchover threshold, the backup takes the broadcast. |
| The primary is on the network but Art-Net is not being sent on it | After the same threshold, the backup takes the broadcast. The primary, seeing this, goes to standby and does not take the broadcast back by itself — otherwise auto-return would turn on the output that was just turned off on it. |
| The primary returned, auto-return is on | After the pause before return, the primary asks the backup to yield, the backup goes to standby and the primary starts output. |
| The primary returned, auto-return is off | The primary stays on standby (“partner is on air; broadcast is returned manually”). The broadcast can be returned with a button. |
| The partner is not on the network | The remaining server holds the broadcast alone and warns that it is working without a safety net. |
The backup yields the broadcast as soon as it sees the primary on air. Therefore at the moment of switchover, the two servers output Art-Net simultaneously for no longer than one heartbeat.
While the backup holds the broadcast and the primary is absent, the picture on the fixtures comes from the backup — what is playing on it. That is why it is important that it has the same project and the same schedule.
Manual broadcast handover
Under the server cards there are two buttons:
- Take the broadcast — this server asks the partner to yield and starts output. Available if the server is not currently on air.
- Hand the broadcast to the partner — this server goes to standby and the partner starts output. Available if this server is on air and the partner is on the network.
The manual decision is kept: a server that handed over the broadcast (or from which it was taken by a button) does not take it back by itself while the partner is on the network — even with auto-return on. The Why: line then says “broadcast handed over manually”. If the partner disappears from the network, the server will take the broadcast again by itself.
Use manual handover for planned work: updating the program or restarting the primary PC without interrupting the show.
Warnings in the top bar
While redundancy is enabled, the message bar of the main window hints at why the server behaves unlike a standalone one:
| Message | What it means |
|---|---|
| Redundancy: this server is on standby, Art-Net output is off. On air: … | The broadcast is with the partner, so Art-Net is not turned on on this PC. This is the normal state of a backup server. |
| Redundancy: waiting for the partner, Art-Net output is off. | The server has just started and is waiting for the partner's first heartbeat. |
| Redundancy: partner … not responding — this server is on air without a safety net. | Output is running but the second server is unavailable. Check it and the network between the PCs. |
On the Redundancy tab itself, setup problems are warned about separately: both servers have the same role, the partner address does not resolve to an IP, the port is occupied by another program.
If Art-Net “does not turn on”, first look at the message bar: a server on standby does not send Art-Net on purpose. General output diagnostics are in the article Art-Net is not being sent.
Limitations
- The pair has exactly two servers — primary and backup.
- Redundancy controls only the Art-Net output. Playback, schedule and the open project are not synchronized between the servers.
- Settings are stored on each PC and do not go into the project. After opening the project on a new computer, set up redundancy on it again.
- The project is not copied automatically: after edits, send it to the partner with the buttons of the Project group.
- The size of a single sent file or archive is up to 8 GB.
- The redundancy port must be free: a second copy of LS4 on the same PC or another program on this port will interfere.
FAQ
Art-Net does not turn on on the backup server
This is by design: while the broadcast is with the primary, the backup does not send Art-Net. Look at the Why: line on the Redundancy tab. If you need to output from the backup right now, click Take the broadcast.
Both servers say “on air”
The servers do not see each other's heartbeat: check the partner address, port and shared key on both PCs, and the firewall. If the tab shows the warning “both servers have the same role”, make one of them primary and the other backup.
The broadcast went to the backup and is not returning
Check the Return the broadcast to the primary automatically checkbox on the primary and the pause before return. If the broadcast was handed over with a button or Art-Net was turned off manually on the primary, the primary will not take it back by itself — click Take the broadcast on it.
Why does it say “Projects differ” although I opened the same project?
The saved files are compared in full. It is enough to save the project on one of the servers after any edit — and the files will differ. Send the project to the partner again.
Partner rejected the transfer
Most likely the shared key does not match. Set the same key on both servers and click Save on each.