Additional findface-video-worker deployment on remote hosts
Important
Before deploying findface-video-worker instances on remote hosts, do the following:
Allow accessing the
findface-ntlslicense server from any IP address. To do so, open the/etc/findface-ntls.cfgconfiguration file on the server withfindface-ntlsand setlisten = 0.0.0.0:3133. Restart thefindface-ntlsservice.sudo vi /etc/findface-ntls.cfg ## Address to accept incoming client connections (IP:PORT) ## type:string env:CFG_LISTEN longopt:--listen listen = 0.0.0.0:3133
sudo systemctl restart findface-ntls.service
Allow accessing the
findface-video-managerservice from any IP address. To do so, open the/etc/findface-video-manager.confconfiguration file on the server withfindface-video-managerand setlisten: 0.0.0.0:18810andrpc:listen: 0.0.0.0:18811. Restart thefindface-video-managerservice.sudo vi /etc/findface-video-manager.conf listen: 0.0.0.0:18810 ... rpc: listen: 0.0.0.0:18811
sudo systemctl restart findface-video-manager.service
On the FindFace Multi server, open the
/etc/findface-security/config.pyconfiguration file and make sure that theROUTER_URLparameter contains the external IP address of the FindFace Multi server and not the localhost. Thefindface-video-workerinstances on the remote hosts will be using this address for posting objects.sudo vi /etc/findface-security/config.py ... 'ROUTER_URL': 'http://192.168.0.12', ...
To install only a findface-video-worker service, do the following:
Tip
Before deployment, be sure to consult the system requirements.
Tip
If you have several video cards on your server, see Multiple Video Cards Usage before deploying findface-video-worker-gpu.
Download the installer file
findface-security-and-server-5.0.run.Put the
.runfile into some directory on the designated host (for example,/home/username).From this directory, make the
.runfile executable.chmod +x findface-security-and-server-5.0.run
Execute the
.runfile.sudo ./findface-security-and-server-5.0.run
The installer will ask you a few questions and perform several automated checks to ensure that the host meets the system requirements. Fill out the prompts appropriately once requested. The questions are the following:
Product to install: FindFace Video Worker.
Type of
findface-video-workerpackage: CPU or GPU.IP address of the
findface-securityhost.
After that, the installation process will automatically begin.
Note
The answers will be saved to a file
/tmp/<findface-installer-*>.json. You can edit this file and use it to install FindFace Multi on other hosts without having to answer the questions again.
Note
If you chose to install findface-ntls and/or findface-video-manager on different hosts than that with findface-security, specify their IP addresses in the /etc/findface-video-worker-cpu.ini (/etc/findface-video-worker-gpu.ini) configuration file after the installation.
sudo vi /etc/findface-video-worker-cpu.ini
sudo vi /etc/findface-video-worker-gpu.ini
In the ntls-addr parameter, specify the findface-ntls host IP address.
ntls-addr=127.0.0.1:3133
In the mgr-static parameter, specify the findface-video-manager host IP address, which provides findface-video-worker with settings and the video stream list.
mgr-static=127.0.0.1:18811
Tip
To automatically install findface-video-worker on another host without answering the installation questions, use the /tmp/<findface-installer-*>.json file. Execute:
sudo ./findface-security-and-server-5.0.run -f /tmp/<findface-installer-*>.json
You can find an example of the installation file in Installation File.
Important
To preserve the FindFace Multi compatibility with the installation environment, we highly recommend you to disable the Ubuntu automatic update. In this case, you will be able to update your OS manually, fully controlling which packages to update.
To disable the Ubuntu automatic update, execute the following commands:
sudo apt-get remove unattended-upgrades
sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service
sudo systemctl daemon-reload
Important
The FindFace Multi services log a large amount of data, which can eventually lead to disc overload. To prevent this from happening, we advise you to disable rsyslog due to its suboptimal log rotation scheme and use the appropriately configured systemd-journal service instead. See Service Logs for the step-by-step instructions.