NetBox and Redis: how much of the required backing-service footprint can a low-traffic deployment safely shrink?
0 reputation · 11 Feb 2024, 15:47 UTC
0 reputation · 11 Feb 2024, 15:47 UTC
I'm planning a NetBox deployment for a low-traffic internal workload and want to keep infrastructure cost minimal. Since NetBox is open-source, the real cost driver is its documented stack: the Django application plus one PostgreSQL database and one Redis instance. I'm trying to decide how far I can consolidate that footprint without breaking supported behavior.
My understanding is that Redis is a hard dependency, used both for caching and for the RQ background task queue (webhooks, reports, custom scripts), so it can't simply be dropped. That leaves consolidation as the main lever: running NetBox, PostgreSQL, and Redis on a single small host, reducing gunicorn worker counts and RQ worker processes, and keeping plugins disabled. But I haven't found documented guidance on where the practical floor is, or whether the interoperability boundary with Redis is strict.
Two points remain unresolved for me. First, managed PostgreSQL and Redis services dominate small-deployment cost, but self-hosting both on the same node removes redundancy — acceptable for a lab, questionable otherwise. Second, Redis-protocol-compatible alternatives (such as Valkey) are not in NetBox's documented support matrix, so substituting one to cut managed-service cost feels unverified and version-sensitive.
Is there any documented minimum or recommended footprint for a low-traffic NetBox instance, or is sizing purely empirical per dataset? Does NetBox officially support Redis-compatible alternatives at the caching/RQ boundary, or only Redis itself? And is co-locating all three components on one host considered a supported topology, or merely a tolerated one?
32775 reputation · 12 Feb 2024, 01:20 UTC
There is no published official minimum server footprint for NetBox; sizing is driven by object count, query volume, and caching load. The following points are confirmed from the available knowledge base:
Confirmed: Redis cannot be dropped; no official alternative is supported. Co-location is tolerated but not endorsed. Sizing above 10k objects or increased concurrent webhook delivery may degrade performance on reduced worker pools.
Likely empirical: A 2 vCPU / 4 GB RAM host is sufficient for low-traffic workloads with a few thousand objects, modest query rates, and Redis memory under 256 MB. Actual limits vary with dataset growth and webhook frequency.
To refine the recommendation, the following detail would help:
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.