Professional Documents
Culture Documents
VH 6.x High Availability Architecture
VH 6.x High Availability Architecture
VH 6.x High Availability Architecture
Architecture
Version 6.x
My 2021
All contents of this document are: Copyright © 2021 Qognify Ltd. All rights reserved.
Contents
1 About This Guide .................................................................................................... 2
1.1 Who Should Read This Guide ................................................................... 2
2 Introduction ............................................................................................................. 3
3 VisionHub High Availability Performance Specification .................................... 4
4 VisionHub Middle-tier VMware High Availability ................................................. 6
4.1 VisionHub Middle-tier All-In-One VM High Availability .............................. 7
4.2 VisionHub Middle-tier Large Site VM High Availability .............................. 7
5 MS cluster HA and SQL always on ....................................................................... 9
5.1 VisionHub RSVR (N+1 cluster) ............................................................... 10
5.2 VisionHub Dual Recording ...................................................................... 11
5.3 VisionHub MSVR (mirrored SVR 1+1 cluster) ......................................... 12
6 PTZ High Availability ............................................................................................ 13
6.1 PTZ High Availability with Dual Recording .............................................. 13
7 Video Wall High Availability ................................................................................ 14
8 Mobile Viewer High Availability ........................................................................... 15
8.1 Streamer .................................................................................................. 15
8.2 Transcoder .............................................................................................. 15
9 Suspect Search High Availability ........................................................................ 16
10 Terms and Abbreviations ................................................................................... 17
VisionHub High Availability Architecture About This Guide
Page 2 of 18
VisionHub High Availability Architecture Introduction
2 Introduction
This document describes Qognify VisionHub high-availability (HA) architecture to support
service continuation in case of local site failure.
Under this document scope, there is no recommendation for a specific virtualization or storage
vendor – you should consult your own virtualization and HA vendor on the best ways to
configure your environment. For Qognify certified virtualization spec and configuration
procedure, refer to the VisionHub Virtualization Guidelines on The Q.
The server’s hardware and software requirements do not change whether they are installed
on physical or virtual servers. See the VisionHub System Requirement Guide. Make sure the
selected HA solution complies with those requirements.
Page 3 of 18
VisionHub High Availability Architecture VisionHub High Availability Performance
Specification
▪ Recovery time objective (RTO) – Defines the amount of time the business can be
without the service.
Example: An RTO value of 2 minutes means that if a service fails, it would be
recovered and restarted within 2 minutes.
▪ Recovery Point Objective (RPO) – The maximum time in which data might be lost if
there is a Major Incident. (It does not define how much data might be lost).
Example: An RPO value of 5 minutes means that in case of failure, data collected 5
minutes prior to the failure might be lost.
▪ Middle-tier (AMS)
▪ Recording
▪ PTZ – control over the captured scene therefore affects recording
▪ Viewing
– Video wall via decoders
– Mobile viewer via streamer and transcoders
Each layer may affect the data loss of video and dynamic data. The following table describes
the high availability RTO and RPO parameters for each layer and its relation to video and
dynamic data. Depending on the components deployment, the maximum RTO and RPO
number between components shall be taken to reflect the general VisionHub system high
availability RTO and RPO specification.
Table 3-1: HA Definitions for RTO and RPO for Each Layer
Video Dynamic data
Module performance (Sensor events) Notes
spec.
RTO RPO RTO RPO
[Minutes] [Minutes] [Minutes] [Minutes]
Middle tier (AMS) 0 0 7 1 Video can be viewed for
already logged-in users
manually. Automatic actions
related to video are not
operative.
RSVR 7 7 7 7 Video RPO can be reduced to
+ zero data loss, by supporting
edge storage and catch-up the
T missing recording from the
seconds edge storage during the
2MB failover time.
caching Video is cached in memory
prior to storage write. Caching
size is 2MB, the camera bit-
rate defines the time loss per
channel on a server failure.
Page 4 of 18
VisionHub High Availability Architecture VisionHub High Availability Performance
Specification
Page 5 of 18
VisionHub High Availability Architecture VisionHub Middle-tier VMware High Availability
NMS
Server
VH
Web server
OPAS
Video
Gateway
SQL DB
Each “vertical rectangle” represents a physical server or a VM. For an AIO (All in one)
deployment, all the middle tier blocks are combined to one server or VM.
Sizing guidelines:
Page 6 of 18
VisionHub High Availability Architecture VisionHub Middle-tier VMware High Availability
VH Free
AIO VM
VSXI VSXI
VSAN
(Shared Storage)
Server I Server II
VH VH
AIO AIO
VSXI VSXI
VSAN
(Shared Storage)
Server I Server II
Page 7 of 18
VisionHub High Availability Architecture VisionHub Middle-tier VMware High Availability
VH AMS VH VH
+ VGW + DataBase Non video
Web + NMS SQL server GW
VSAN
(Shared Storage)
VH AMS VH VH AMS VH
+ VGW + DataBase + VGW + Non video
Web + NMS SQL server Web + NMS GW
VSAN
(Shared Storage)
VH AMS VH VH VH
+ VGW + Non video DataBase Non video
Web + NMS GW SQL server GW
VSAN
(Shared Storage)
Page 8 of 18
VisionHub High Availability Architecture MS cluster HA and SQL always on
Deploying Always On availability groups for HA requires a Windows Server Failover Cluster
(WSFC). A cluster role should be created for the availability group in the failover cluster. The
failover cluster then monitors this role to evaluate the health of the primary replica.
Primary Secondary
Always On
Availability Group
1. All in one (All in one) server including the middle tier services, web tier and the SQL
server
2. Medium or Large site having the middle tier and web tier services on one server and
the SQL server on a separate server.
Each deployed node requires an availability group to monitor node health and failover
accordingly.
Page 9 of 18
VisionHub High Availability Architecture MS cluster HA and SQL always on
Primary Secondary
Non-video Middle Tier Middle Tier Non-video
Gateway services services Gateway
MS Cluster
Node 5 Node 3 Node 1 Node 2 Node 4 Node 6
Video High Availability
SVR I SVR I
SVR II SVR II
Monitoring Monitoring
RSVR RSVR
The RSVR monitors the cluster health. Once a recorder fails, the RSVR detects the failure and
initiates a failover process. The process includes gaining control over the edge devices
connected to the failed recorder. Both the failure detection and gaining control over the
cameras is time consuming, which mainly depends on the edge devices vendor(s). Some IP
cameras support fast configuration, some do not. The RSVR notifies the VDAS on the failover
process, so the clients can maintain live operation from the RSVR. Playback is tailored
automatically according to availability between the original SVR and the RSVR.
Sizing Guidelines:
Page 10 of 18
VisionHub High Availability Architecture MS cluster HA and SQL always on
A SVR I
B SVR II
The same edge device can be recorded on two different SVRs to achieve zero down-time. The
dual recording concept introduces primary and secondary SVRs. The primary recorder is the
master SVR that controls the streaming configuration of the edge device. The secondary
recorder can only request streams and listen to events. Once the same edge device is added
to a secondary SVR, the dual recording scheme is enabled. This scheme is implemented on
a channel basis. A recorder might be primary for one camera and secondary for another
camera and vice versa. In terms of deployment, one SVR server can act as primary and the
second SVR server as secondary, or they can both serve as primary and secondary on the
same SVR but not for the same edge device. The user has access to both channels/video
sensors (primary and secondary) and can select which to view via authorization configuration
that would be enforced on the Control application.
Sizing guidelines:
Page 11 of 18
VisionHub High Availability Architecture MS cluster HA and SQL always on
A SVR
Monitoring
B MSVR
Mirrored recorder (MSVR) is a combination of RSVR and dual recording redundancy solutions.
The MSVR monitors a single SVR for failure. Upon failure the MSVR signal to VisionHub that
it becomes the primary recorder for live monitoring. Playback is automatically tailored from
both SVR and MSVR and is transparent to the operator. The MSVR solution is per recorder
which means the entire recorder becomes MSVR (i.e. not on a channel basis).
Sizing guidelines:
▪ MSVR requires a dedicated license per video channel for all the recorder channels.
▪ MSVR, similar to Dual recording, is a camera model dependent feature which
requires a plug-in commitment if not already supported.
▪ Streaming considerations
– Dual unicast streaming
o May affect the device capabilities
o Requires double network bandwidth between camera and the
recorders
o Enables almost continuous live video monitoring up to the detection of
main recorder failure
– Multicast streaming
o Requires camera and network infrastructure support
o Enables continuous live video monitoring using direct streaming
o Both recorders join the same multicast group
▪ Recorders must be connected to the same VDAS (Video Application server).
▪ Automatic switch between SVR and MSVR upon failure and failback
▪ Single logical channel on VisionHub supporting both main SVR and its MSVR
channel
Page 12 of 18
VisionHub High Availability Architecture PTZ High Availability
1. “Direct PTZ” – Starting from the upcoming VisionHub 4.3 release, VisionHub client
connects directly to the recorder when requesting PTZ commands; this architecture
supports both distributed and centralized sites.
2. Legacy – An old centralized architecture, which is still supported for backward
compatibility and for migrated from NiceVision sites. The PTZ commands are routed
from the VisionHub clients to the Application Server, PTZ Server (ICM Engine) and
PTZ Agent.
Page 13 of 18
VisionHub High Availability Architecture Video Wall High Availability
Page 14 of 18
VisionHub High Availability Architecture Mobile Viewer High Availability
8.1 Streamer
There are two HA solutions:
When sizing the solution, each user will be allocated to a web server. Need to size a margin
for additional users, so that upon a failure the other web server will be able to support more
users due to the failure.
8.2 Transcoder
The transcoding component is heavily dependent on Intel libraries for performance
optimization which is tightly coupled with the Intel CPU. When using VMware, the CPU
identification is not transparent, and this results in performance decreasing; so, this is not a
feasible solution.
HA solution is implemented using scale-out servers. The streams which require transcoding
are allocated to several transcoders reducing the load while all servers are functional. Upon
failure of one of the servers, the streams associated to the failed server are re-allocated
(manually) to a different server(s) to maintain business continuity. The operators need to
manually re-initiate video streaming that was closed due to the transcoder server failure.
These streams will be automatically allocated between the remaining functional transcoding
servers.
Page 15 of 18
VisionHub High Availability Architecture Suspect Search High Availability
Page 16 of 18
VisionHub High Availability Architecture Terms and Abbreviations
Page 17 of 18
VisionHub High Availability Architecture Terms and Abbreviations
Page 18 of 18