Protecting archives against streamer failure¶
In a Watcher cluster, automatic reassignment lets another streamer resume ingesting a camera after its current streamer fails. Recording continues on the new server if accessible storage is configured and placement rules allow the camera there.
Resuming ingest and keeping an additional copy of existing recordings are separate settings. Moving a camera after a failure does not itself copy data from an unavailable disk.
Prepare reserve capacity¶
Reassignment requires:
- Multiple streamers — a single-server installation has nowhere to move cameras.
- Working management — Central and placement must receive server state.
- Camera access — the backup streamer needs network access to camera sources or Agents.
- Allowed placement — required and dedicated zones must allow the backup server.
- Resources — stream limits, CPU, network and disks must accommodate the added load.
- DVR on the backup — storage and camera recording settings are required to continue recording.
Failover is enabled in the standard placement configuration, but takes effect only when the layouter is ready and suitable servers exist. Adding an empty record for a second server is insufficient.
What happens after a failure¶
When a streamer is considered unavailable, its cameras are considered for reassignment. Selection accounts for mandatory constraints and resources. Without a suitable server, the camera does not receive a working backup assignment.
Failure detection and reconnection take time. A gap can occur between the last recording on the failed server and the first recording on the backup. After switching, check the stream and new archive recording, not only the assigned streamer name.
Archives stored only on the failed server remain unavailable until that server and storage recover. Reassignment cannot restore damaged or lost data.
Additional archive copies¶
Camera DVR parameter redundancy_factor is used when assigning additional archive-copy servers. Suitable servers and resources limit the actual assignment count. Check assignments and recordings on additional servers before considering the archive protected.
Additional copies need separate capacity and interserver bandwidth. Count every retained copy in storage calculations. Distributing recordings across disks in RAID 0 does not create such copies.
After a server recovers¶
A working camera can remain on the backup streamer. Placement tries to retain a valid assignment and changes it when constraints, preferences or load require it. With preferred zones, recovery of suitable servers can cause a return to the preferred zone.
Central tracks servers reporting retained archive parts. After recovery, separately test old intervals on the original server and new intervals on the backup. Intact files and accessible storage remain necessary.
Test failover¶
Run tests with test cameras during an agreed maintenance window:
- Confirm recording works and the backup server meets zone constraints and has spare resources.
- Record the current streamer and the last available archive time.
- Stop the selected test streamer and check reassignment, resumed video and a new recorded interval.
- Restore the server and test archive playback before and after the switch.
- Test a prohibited case: a camera with a required zone must not be placed outside it.
Cluster state helps identify unavailable servers and recording gaps. Use zones to configure eligible servers.