NGINX Cache Lab

Browser-only capacity estimates and request-string tests. Traffic stays in your browser. No GPU, backend, or model calls.

Capacity assumptions

Bypass string laboratory

Space-separated NGINX arguments. Empty strings and exactly 0 are false; all other strings trigger bypass. Quotes support concatenation. This is not a boolean-expression language.

Request-policy simulation only: not a cache-hit predictor or full NGINX parser. Supports $http_*, $arg_*, $cookie_*, $request_method, $request_uri, $host, $scheme and generated $skip_* maps. Missing imported headers are treated as absent; credential-free access logs cannot reproduce header-dependent decisions. Redact sensitive data before import.

Configuration export

Staging template only. Review host policy, TLS, public routes, filesystem capacity and timeout budgets; run nginx -t and real traffic tests. Upstream caching headers can override the fallback TTL. max_size is not a hard filesystem quota.

Model and sources

RPS = concurrent users × requests/user/second. Resident keys = eligible RPS × new-key fraction × inactive seconds, unless overridden. This assumes a stationary workload; hot keys and Vary variants can invalidate it. inactive = max(TTL, revisit interval) × retention factor, a policy assumption rather than an optimum.

Zone MiB = ceil(keys × metadata headroom / approximate keys per MiB). NGINX documents about 8,000 keys per MB for Open Source, or 4,000 with extended commercial metadata; this calculator uses those as approximate binary-unit planning densities. Disk MiB = ceil(keys × (body bytes + overhead allowance) × disk headroom / 1048576). Overhead is an estimate, not an NGINX constant. TTL is freshness; inactive is idle retention. Per-worker buffers and total process memory are not included.

Official proxy module · Official map module

This compact static deployment contains sizing, traffic-string evaluation and configuration export. It does not run NGINX, save traffic remotely, or replay live endpoints.