# Cost Plan — Hetzner Infrastructure Companion to `INFRASTRUCTURE.md` and `IMPLEMENTATION_PLAN.md`. **Updated 2026-09-29:** both platform VMs are booked (staging CPX32 on 2026-09-11, production **CPX42** on 2026-09-23). **Revised 2026-09-11:** replaces the SysEleven plan (DUS2, 4 VMs / 3 clusters). The company runs on Hetzner Cloud already; the platform adds one Hetzner VM now (staging) and one later (production). All prices net EUR, exclusive of 19% VAT. **Hetzner list prices change; every figure marked "≈" must be re-checked in the Hetzner console at booking time.** --- ## 1. TL;DR | Item | Staging only (until 2026-09-23) | With production (since 2026-09-23) | |---|---|---| | Core cluster (2 existing VMs, already paid) | unchanged | unchanged | | `bp-platform-stage` — **CPX32** (4 vCPU / 8 GB, booked 2026-09-11), 1 IPv4 | ≈ €12–16 | ≈ €12–16 | | `bp-platform-prod` — **CPX42** (8 vCPU shared / 16 GB, booked 2026-09-23), 1 IPv4 | — | CPX42 list price (check the invoice; the ≈ €40–65 estimate assumed dedicated CCX cores) | | Hetzner Volume for prod data (100 GB, €0.05/GB) | — | not booked yet (local disk suffices) | | Object Storage (backups + seed + exports, ~300 GB) | ≈ €3–6 | ≈ €6–12 | | Snapshots (2 VMs × ~40 GB, €0.012/GB) | ≈ €1 | ≈ €2 | | Strato domain + mail (existing) | unchanged | unchanged | | **Platform delta, net / month** | **≈ €17–25** | **below the ≈ €65–110 estimate** (shared-vCPU prod, no Volume yet) | No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compare: the SysEleven plan was €307–549/mo plus €6,912 upfront. --- ## 2. What to use / what to skip | Service | Use? | Why | |---|---|---| | Cloud Servers (CX/CPX shared, CCX dedicated) | **Yes** | Shared vCPU is fine for staging; dedicated cores for prod (scan workloads, Chrome, Mongo). | | Primary IPv4 per VM | **Yes** | Per-node ingress needs one public IPv4 per node (≈ €0.50–1/mo each). | | Private Network | **Not used** | Master ↔ agent runs over WireGuard (`wg0`) between the two public IPs instead; 6881 is never exposed publicly. | | Cloud Firewall | **Yes (free)** | Per-VM rules in §3 of INFRASTRUCTURE.md. | | Snapshots | **Yes** | Weekly snapshot of each platform VM before prod; nightly for prod. | | Volumes | Later | Attach when local NVMe > 60 %; dsms data on prod. | | Object Storage (nbg1) | **Yes** | Already in use for core (`bp-*` buckets); one more bucket per cluster. | | Load Balancer | Later (Tier D) | Only when a second prod app node exists. | | Hetzner DNS | No | Zone stays at Strato (mail, existing records). Revisit only if Strato record limits bite. | | Managed Kubernetes / any managed service | No | Orca orchestrates. | | GPU servers | No | LiteLLM routes to external providers; add only for a paying dedicated-inference customer. | --- ## 3. Sizing ### Staging — `bp-platform-stage` (CPX32, booked 2026-09-11) Decision: **CPX32 (4 vCPU / 8 GB)** instead of the 16 GB class. Consequence: staging runs the first-line stack with tight caps (≈ 6.1 GB committed, INFRASTRUCTURE.md §2) and **without** browserless/Chrome, soft-PLC and PLC-sim; the Werkbank runner is started only for runner tests. Scan types that need Chrome or the PLC targets are exercised on the production node later. If staging needs the full scan matrix, resize to CPX42/CX43 (a Hetzner rescale keeps the disk; ~5 min downtime). ### Production — `bp-platform-prod` (CPX42, booked 2026-09-23) Sized on 2026-09-23 from the service limits: ≈ 8.75 GiB committed plus ≈ 1 GiB for the host, on **CPX42 (8 vCPU shared / 16 GB)**. Dedicated cores (CCX class) were deferred: Prüfwerk runs source-only (no Chrome, no PLC targets) and the dsms stack has not moved. Next step when either arrives: 32 GB (a Hetzner rescale keeps the disk; a few minutes of downtime). ### Storage Local NVMe of the flavors (80–160 GB) covers launch. Object storage grows with backups (30-day retention of nightly dumps ≈ 30 × dump size) and exports. --- ## 4. Growth tiers | Tier | Customers | Topology delta | Platform compute ≈ €/mo | |---|---:|---|---:| | **A** | ≤ 50 | stage CPX32 + prod CPX42 (today); prod to 32 GB for DAST or dsms | 65–95 (today below) | | **B** | 50–200 | prod flavor bump; small control VM (CX23 class) as Orca master; prod Volume | 110–160 | | **C** | 200–500 | split prod into app node + db node; Keycloak to its own core node | 200–300 | | **D** | 500+ | second prod app node + Load Balancer; second S3 provider | 350–500 | --- ## 5. Cost per customer At Tier A the platform delta is ≈ €80–125/mo; **one `PLT-CORE-CLD-STD` tenant (€290/mo) covers it**. From Tier B onward infrastructure is < 3 % of revenue at the SKU-sheet prices; LLM passthrough (LiteLLM) and on-call time dominate the cost of goods, not compute. --- ## 6. Things to validate at booking - Exact flavor names and prices in the console (CX43 / CPX41 / CCX23 naming changes between generations). - Location: `fsn1` or `nbg1` — keep the platform in the same location as the core master for latency to Keycloak; Object Storage is `nbg1` regardless. - IPv4 availability and price per primary IP. - Whether the company Hetzner project (the one holding the core servers and the `bp-*` buckets, migrated 2026-09-10) is used — it must be, for one invoice and one firewall set. --- *End of document. Revised 2026-09-11, node facts updated 2026-09-29; re-check prices before each booking.*