Sizing¶
Estimates for the default intervals (check in every 5 minutes, poll every minute, a metric
sample every 15 minutes) with package lists of 150 to 300 KB per device. They are a starting
point; measure with limdm_http_request_duration_seconds and the PostgreSQL statistics.
| 1,000 devices | 10,000 devices | 50,000 devices | |
|---|---|---|---|
| Check ins per second | 3 | 32 | 160 |
| Polls per second | 15 | 150 | 770 |
| Server instances (2 CPU, 2 GB each) | 1 (2 for HA) | 2 | 4 to 6 |
LIMDM_DB_MAX_CONNS per instance |
32 | 32 | 24 to 32 |
| PostgreSQL | 2 CPU, 4 GB RAM | 4 CPU, 16 GB RAM | 8 to 16 CPU, 32 to 64 GB RAM, max_connections 300 |
device_metrics (30 days) |
3 million rows, 0.5 GB | 29 million rows, 4 GB | 144 million rows, 20 GB |
devices with inventory |
0.2 GB | 2 GB | 10 GB |
device_packages (about 2,000 rows per device, with indexes) |
0.3 GB | 3 GB | 15 GB |
| Device events, compliance changes (365 days) | 1 GB | 10 GB | 50 GB |
| WAL per day (package changes are written as a diff) | 0.2 GB | 1 to 2 GB | 5 to 10 GB |
| Agent release rollout (6 MB package) | 6 GB | 60 GB | 300 GB |
Notes:
- The rollout window (default 24 hours) spreads the agent download over the day: 300 GB at 50,000 devices are about 30 Mbit/s on average instead of a peak of tens of Gbit/s. Settings, Operations bounds parallel downloads per instance.
- Installed packages live in
device_packages, one row per package. A check in with a changed list deletes and inserts only the changed rows. The upgrade to 0.17 moves the lists out ofdevices.packagesin one migration; at 50,000 devices plan a few minutes for the first start. - Audit entries are appended at the commit of a check in; the advisory lock is held for the append only, so check ins with command results scale with the database, not one after another.
- Shell transcripts (365 days) and script results (200 per device, up to 32 KB each) can add up to several GB at 50,000 devices; the audit log grows without limit unless audit retention is set.
- Rolling restarts of the same version do not lock tables. The first start of a new version applies the schema and builds new indexes concurrently.