Capacity Planning & Hardware Dimensioning
Proper hardware dimensioning ensures reliable streaming performance and prevents system starvation under peak camera and viewer loads.
1. Hardware Sizing Formulas
The following empirical formulas are calibrated against RUSEON Core's benchmark data:
CPU Cores Sizing Formula:
Required CPU Cores ≈ 0.5 + (N_cameras × 0.006) + (N_WebRTC_viewers × 0.002)Example: 100 cameras + 50 active WebRTC viewers requires $0.5 + (100 \times 0.006) + (50 \times 0.002) = \mathbf{1.2 \to 2\text{ Cores}}$.
RAM Footprint Sizing Formula:
Total RAM (MB) ≈ 35 MB (Base) + (N_cameras × 0.7 MB) + (N_viewers × 0.1 MB) + 16 MB (BadgerDB)Example: 200 cameras with 100 active viewers requires $35 + (200 \times 0.7) + (100 \times 0.1) + 16 = \mathbf{201\text{ MB RAM}}$.
Disk Capacity Sizing Formula:
$$\text{Storage Required (GB)} = \frac{\text{Bitrate (Mbps)} \times 86400 \times \text{Retention (Days)} \times N_{\text{cameras}}}{8000}$$
Example: 50 cameras @ 2.5 Mbps retained for 14 days requires $\frac{2.5 \times 86400 \times 14 \times 50}{8000} = \mathbf{18,900\text{ GB (18.9 TB)}}$.
2. Deployment Sizing Reference Scenarios
| Scenario | Cameras & Bitrate | Recommended CPU | Recommended RAM | Storage Volume (14 Days) | Network |
|---|---|---|---|---|---|
| Homelab / Small Office | 4 – 16 Cameras (1080p @ 2 Mbps) | 1 – 2 Cores | 512 MB | 1 – 4 TB SSD | 100 Mbps / 1 Gbps |
| Retail Store / Commercial | 32 – 100 Cameras (1080p @ 2.5 Mbps) | 2 – 4 Cores | 1 – 2 GB | 12 – 38 TB (SATA/RAID) | 1 Gbps |
| Enterprise Facility | 200 – 600 Cameras (1080p/2K Mix) | 8 – 12 Cores | 2 – 4 GB | 75 – 225 TB (RAID 6/ZFS) | 10 Gbps |