Memory on VPS Pro
Eight gigabytes is enough if each service gets a fixed allocation instead of fighting over what is left.
| Service | Starting allocation | Theoretical footprint |
|---|---|---|
| OpenSearch | 1.5 GB JVM heap | about 2 GB with off-heap memory |
| MariaDB | 2 GB InnoDB buffer pool | about 2.3 GB |
| PHP-FPM | 10 workers | about 1.2 GB, assuming 120 MB per worker |
| Valkey, cache | 512 MB, LRU eviction | 0.5 GB |
| Valkey, sessions | 256 MB, no eviction | 0.25 GB |
| nginx, Docker, Debian | — | about 0.5 GB |
| Total | about 6.75 GB of 8 GB |
Run it at the quietest hour of your market, or build on a second machine and ship the result.
Pages served from the full-page cache cost almost nothing. Transfer on VPS plans is a monthly allowance, not unmetered: 20 TB on Pro. At an assumed 2.5 MB per uncached page view including images, that is about eight million page views a month (theoretical: 20 × 10¹² bytes ÷ 2.5 × 10⁶).
Move to Cloud VPS Power ($42.99: 12 vCPU, 16 GB, 640 GB, 40 TB, 2 Gbps) when OpenSearch or the buffer pool needs twice the memory. When transfer or a CPU that is busy all day becomes the constraint, the Iron dedicated server at $64.99 (EPYC 4244P with 6 cores and 12 threads, 32 GB DDR5 ECC, 1 TB NVMe, a 10 Gbps port unmetered under fair use) is better value than stacking VPS upgrades.
Inbound, the store needs ports 80 and 443, plus 22 for your own SSH, ideally restricted to your address. MariaDB on 3306, OpenSearch on 9200 and Valkey on 6379 stay on the internal Docker network. Never publish OpenSearch: the stack below runs it with its security plugin off, which is acceptable only because nothing outside the host can reach it. Docker writes its own iptables rules, so a port published in compose is reachable even when ufw claims otherwise; publish nginx and nothing else.