Selecting hardware for a video surveillance system¶
Hardware selection starts with the load the service must handle. Camera count alone is insufficient: a single camera can simultaneously send a main stream and substream, record an archive and undergo analytics processing. Archive playback creates a read load that differs from live video ingest.
Collect input data¶
Record the project parameters:
- Cameras — count, resolution, codec, frame rate and measured average and peak bitrate of each stream in use.
- Archive — retention depth, recording mode, additional copies, protected intervals and their retention period.
- Viewing — number of simultaneous video streams for viewers, including mosaics; volume of simultaneous archive exports.
- Analytics — algorithms and analysis areas, processing frequency, CPU or GPU, selected models and number of simultaneous cameras.
- Server failure — which cameras must continue operating and which streamers can accept them, taking zones and network connectivity into account.
- User operations — number of active users, API request rate, episode volume and required statistics history.
Measure bitrate on scenes representative of the site, including motion and night mode. A value from the camera specification does not replace measuring the selected settings.
Separate resources by role¶
The management server handles the API, users and background jobs, as well as PostgreSQL, Redis and Central. Streamers ingest video, deliver it to viewers and work with the archive. Analytics can run as separate services and needs its own memory and computing capacity calculation.
In a single-server installation, these loads add up. In a cluster, size each server type, then check the reserve for failure of one server. Adding a streamer does not automatically increase the database performance of the management server.
Calculate and verify¶
- Calculate network and archive capacity, observing bit/byte units and the retention period.
- Check the CPU with the required mix of ingest, recording and viewing.
- Measure analytics memory separately on the selected device.
- Compare the result with the installation components.
- Run a trial with simultaneous recording, archive reading and analytics. Check the maximum expected load and redistribution after a server failure.
During the trial, monitor health: camera availability, recording gaps, CPU, memory and disks. Successful operation without viewing does not establish the ability to serve the planned number of viewers.
There is no universal cameras-per-server figure. Record camera settings, component versions, hardware and your verification results so later changes to codecs, archive depth or analytics can be assessed under the same conditions.