Allocate video-worker
to Camera Group¶
In distributed architectures, it is often necessary that video streams from a group of cameras be processed in situ, without being redistributed by the main server across remote video-worker
instances. Among typical use cases are hotel chains, chain stores, several security checkpoints in the same building, etc. If this is your case, simply allocate the local video-worker
to the camera group.
Do the following:
Navigate to the Camera groups tab.
Open the camera group settings.
In the Labels, create or select one or several allocation labels. Save changes.
Open the
video-worker
configuration file and specify the allocation labels in the following format:label_name=true
(labelterminal_1
in the example below).sudo vi /etc/video-worker.ini wrk-labels=terminal_1=true
Restart
video-worker
.sudo systemctl restart video-worker.service
Note
If a camera is assigned an allocation label, its video stream can be processed by a video-worker
instance with the same label, as well as by all unlabeled video-worker
instances.
Warning
If a labeled camera is processed by an unlabeled video-worker
instance and a free similar-labeled instance appears, the camera won’t automatically switch to the latter. To switch the camera, restart the similar-labeled video-worker
instance.