docs: as-built infrastructure 2026-09-29 (#11)
ci / shared (push) Successful in 15s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit was merged in pull request #11.
This commit is contained in:
sharangandClaude Opus 5.5 committed 2026-09-29 08:23:52 +00:00
1 parent 8b2e1fc288
commit b8d200c1da
4 files changed
+212 -302

No files matched your search

+10 -10
View File
@@ -1,21 +1,21 @@
# Cost Plan — Hetzner Infrastructure
Companion to `INFRASTRUCTURE.md` and `IMPLEMENTATION_PLAN.md`. **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.**
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 | Now (staging only) | After prod go-live |
| 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` — ≥ 16 GB, dedicated cores (CCX23/CCX33 class), 1 IPv4 | — | ≈ €40–65 |
| Hetzner Volume for prod data (100 GB, €0.05/GB) | — | ≈ €5 |
| `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** | **≈ €65–110** |
| **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.
@@ -27,7 +27,7 @@ No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compa
|---|---|---|
| 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 | **Yes (free)** | Master ↔ agent Orca traffic; never expose 6880/6881 publicly. |
| 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. |
@@ -45,9 +45,9 @@ No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compa
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` (sized in the production plan)
### Production — `bp-platform-prod` (CPX42, booked 2026-09-23)
Same stack minus the mock, plus headroom for real scans and, after M-MIG-9, the dsms project (Postgres 17, IPFS, Qdrant, Ollama embed ≈ +6 GB). Start at 16 GB dedicated (CCX23 class) if dsms stays on the stage node for a while; otherwise 32 GB (CCX33 class). Decide at prod planning with 4 weeks of staging metrics from SigNoz.
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
@@ -59,7 +59,7 @@ Local NVMe of the flavors (80–160 GB) covers launch. Object storage grows with
| Tier | Customers | Topology delta | Platform compute ≈ €/mo |
|---|---:|---|---:|
| **A** | ≤ 50 | stage CX43 + prod CCX23/33 | 65–95 |
| **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 |
@@ -81,4 +81,4 @@ At Tier A the platform delta is ≈ €80–125/mo; **one `PLT-CORE-CLD-STD` ten
---
*End of document. Revised 2026-09-11; re-check prices before each booking.*
*End of document. Revised 2026-09-11, node facts updated 2026-09-29; re-check prices before each booking.*