Skip to content

Choosing a CPU

Select a CPU for the actual streams and Watcher features. A camera-per-core number without codec, bitrate, viewing concurrency and processing mode does not describe installation performance.

The management server and streamer perform different work. The management CPU runs the API, PostgreSQL, Central and background jobs. The streamer CPU handles video ingest and delivery, archives and additional processing. On a single server, these loads add together.

Factors affecting the result

  • Streams — count, bitrate, codec and frame rate.
  • Viewing — concurrent streams and protocol, reading different archive intervals and file exports.
  • Processing — analytics decoding, image generation and video conversion when enabled.
  • Services — active users, API request rate and episode creation and processing.
  • Failover — added load after cameras move from an unavailable streamer.

CPU clock speed and logical core count alone do not define camera capacity. Measure the target processor model with the component versions intended for the site.

To estimate computation, measure total CPU time across all threads (user + system) per processing operation. If an operation runs r times per second and takes t milliseconds of CPU time, its average load is r × t / 1000 cores. Add all operations, decoding and other services, then divide by the selected allowable core utilization. For example, dividing by 0.7 leaves 30% computation reserve; this is an explicit calculation assumption.

Elapsed time for a multithreaded model is not its total CPU time. If only elapsed latency is measured, do not convert it directly into core count. Verify the final estimate at full load, including decoding and data transfer.

Test the selected server

  1. Connect a representative camera group with production settings. Enable recording and required analytics.
  2. Create the required concurrent views, including archive playback and exports.
  3. Increase load in stages. At each stage, wait for steady operation and check camera and recording errors.
  4. Repeat with the load expected to transfer from a failed neighboring server.
  5. Record the configuration and maximum load that retains the chosen CPU reserve and required operating quality.

For an initial Linux check:

lscpu
vmstat 1 10

In cluster state, monitor CPU alongside camera availability and recording. In vmstat, distinguish computation from disk wait: replacing the CPU does not fix slow storage.

Set placement limits

Streamer settings include Channel limit and Total bandwidth limit. Placement accounts for availability, limits and load. These fields state allowable load; they do not perform a load test for the administrator.

Do not maximize camera count at the expense of reserve: after another server fails, the limit may prevent accepting its streams. Check zones and limits together with CPU, disk and network calculations.