docs: staging VM booked as CPX32 (4 vCPU / 8 GB) — re-budget staging stack
ci / shared (pull_request) Failing after 4s

Staging runs without browserless / soft-plc / plc-sim; Werkbank runner
optional; memory caps ≈ 6.1 GB. Cost plan and M-MIG-3 updated to match.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit is contained in:
Sharang ParnerkarandClaude Fable 5.1 committed 2026-09-11 12:55:07 +02:00
1 parent c696be31ce
commit d5bc499415
3 files changed
+25 -24

No files matched your search

+4 -4
View File
@@ -9,13 +9,13 @@ Companion to `INFRASTRUCTURE.md` and `IMPLEMENTATION_PLAN.md`. **Revised 2026-09
| Item | Now (staging only) | After prod go-live | | Item | Now (staging only) | After prod go-live |
|---|---|---| |---|---|---|
| Core cluster (2 existing VMs, already paid) | unchanged | unchanged | | Core cluster (2 existing VMs, already paid) | unchanged | unchanged |
| `bp-platform-stage` — CX43/CPX41 class, 8 vCPU / 16 GB, 1 IPv4 | ≈ €25–30 | ≈ €25–30 | | `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 | | `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 | | Hetzner Volume for prod data (100 GB, €0.05/GB) | — | ≈ €5 |
| Object Storage (backups + seed + exports, ~300 GB) | ≈ €3–6 | ≈ €6–12 | | Object Storage (backups + seed + exports, ~300 GB) | ≈ €3–6 | ≈ €6–12 |
| Snapshots (2 VMs × ~40 GB, €0.012/GB) | ≈ €1 | ≈ €2 | | Snapshots (2 VMs × ~40 GB, €0.012/GB) | ≈ €1 | ≈ €2 |
| Strato domain + mail (existing) | unchanged | unchanged | | Strato domain + mail (existing) | unchanged | unchanged |
| **Platform delta, net / month** | **≈ €30–40** | **≈ €80–125** | | **Platform delta, net / month** | **≈ €17–25** | **≈ €65–110** |
No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compare: the SysEleven plan was €307–549/mo plus €6,912 upfront. No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compare: the SysEleven plan was €307–549/mo plus €6,912 upfront.
@@ -41,9 +41,9 @@ No commitments, no upfront payments: Hetzner bills hourly, monthly capped. Compa
## 3. Sizing ## 3. Sizing
### Staging — `bp-platform-stage` (booked in M-MIG-3) ### Staging — `bp-platform-stage` (CPX32, booked 2026-09-11)
Committed memory of the full first-line stack ≈ 13 GB (INFRASTRUCTURE.md §2): portal, tenant-registry + Postgres, ERPNext mock, Prüfwerk (agent, dashboard, MCP, docs, Mongo, browserless/Chrome, soft-PLC, PLC-sim), Werkbank runner, Firmwerk cloud + Mongo, OTel agent, plus the Orca master itself. **16 GB is the floor**; 8 GB would force dropping browserless and the PLC targets from staging. 8 vCPU keeps Rust builds of demo targets and Chrome-based scans from starving the portal. 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` (sized in the production plan)
+2 -2
View File
@@ -102,7 +102,7 @@ Hosts: `app-stage.breakpilot.com` / `app.breakpilot.com` (portal, tenants by pat
- **Goal:** `breakpilot-platform` cluster exists with one node serving `https://app-stage.breakpilot.com`. - **Goal:** `breakpilot-platform` cluster exists with one node serving `https://app-stage.breakpilot.com`.
- **Depends on:** M-MIG-0. - **Depends on:** M-MIG-0.
- **Repos:** `platform/orca-platform`. - **Repos:** `platform/orca-platform`.
- **Deliverables:** Hetzner VM `bp-platform-stage` (CX43/CPX41 class, Ubuntu 24.04, company project, private network `breakpilot-platform`, Cloud Firewall per `INFRASTRUCTURE.md §3`); docker + `docker login repo.breakpilot.com`; Orca at the core master's version or newer (both ≥ 0.2.13 with ACME fast-retry), installed as master with `orca install-service`; repo restructure: `cluster.toml` (name `breakpilot-platform`, ACME email, S3 backup `bp-platform-backups`, LiteLLM, admin + deployer tokens), `services/<project>/service.toml` layout (`platform-stage`, `pruefwerk-stage`, `firmwerk-stage`), every service pinned + memory-limited, `[security_headers] frame_options="DENY"`; delete `clusters/`, `overlays/`, `dns/`, `manifests/`, `scripts/{apply,plan}.sh`, `release.yaml`, the restore-drill stub; adapt `validate.sh` (pins ∈ {`bp-platform-stage`,`bp-platform-prod`}, memory required, secret refs project-scoped); README + `WEBHOOKS.md` describe the deploy flow; Strato A records `app-stage`, `registry-stage`, `pruefwerk-stage`, `firmwerk-stage`; a hello service on `app-stage`. - **Deliverables:** Hetzner VM `bp-platform-stage` (**CPX32**, 4 vCPU / 8 GB — booked 2026-09-11; Ubuntu 24.04, company project, private network `breakpilot-platform`, Cloud Firewall per `INFRASTRUCTURE.md §3`; browserless / soft-plc / plc-sim are not deployed on staging, see `INFRASTRUCTURE.md §2`); docker + `docker login repo.breakpilot.com`; Orca at the core master's version or newer (both ≥ 0.2.13 with ACME fast-retry), installed as master with `orca install-service`; repo restructure: `cluster.toml` (name `breakpilot-platform`, ACME email, S3 backup `bp-platform-backups`, LiteLLM, admin + deployer tokens), `services/<project>/service.toml` layout (`platform-stage`, `pruefwerk-stage`, `firmwerk-stage`), every service pinned + memory-limited, `[security_headers] frame_options="DENY"`; delete `clusters/`, `overlays/`, `dns/`, `manifests/`, `scripts/{apply,plan}.sh`, `release.yaml`, the restore-drill stub; adapt `validate.sh` (pins ∈ {`bp-platform-stage`,`bp-platform-prod`}, memory required, secret refs project-scoped); README + `WEBHOOKS.md` describe the deploy flow; Strato A records `app-stage`, `registry-stage`, `pruefwerk-stage`, `firmwerk-stage`; a hello service on `app-stage`.
- **Acceptance:** `orca status` healthy; `curl -I https://app-stage.breakpilot.com` = valid Let's Encrypt cert; backup lands in S3; a signed test webhook redeploys the hello service. - **Acceptance:** `orca status` healthy; `curl -I https://app-stage.breakpilot.com` = valid Let's Encrypt cert; backup lands in S3; a signed test webhook redeploys the hello service.
- **Gate:** standard + manual (spend + DNS). **Effort:** M. - **Gate:** standard + manual (spend + DNS). **Effort:** M.
@@ -132,7 +132,7 @@ Hosts: `app-stage.breakpilot.com` / `app.breakpilot.com` (portal, tenants by pat
- **Goal:** Prüfwerk (+Werkbank), Firmwerk cloud and the two CLIs run against staging with multi-tenancy. - **Goal:** Prüfwerk (+Werkbank), Firmwerk cloud and the two CLIs run against staging with multi-tenancy.
- **Depends on:** M-MIG-5. - **Depends on:** M-MIG-5.
- **Repos:** `platform/pruefwerk`, `platform/werkbank`, `platform/firmwerk`, `platform/werkpilot`, `platform/orca-platform`. - **Repos:** `platform/pruefwerk`, `platform/werkbank`, `platform/firmwerk`, `platform/werkpilot`, `platform/orca-platform`.
- **Deliverables:** Prüfwerk: iss+aud validation, CORS allowlist, scheduler via `GET /v1/tenants`, entitlement check on tenant-context build, §4.1 endpoints, usage events; services `pruefwerk-{mongo,agent,dashboard,mcp,docs}-stage`, `browserless-stage`, `soft-plc-stage`, `plc-sim-stage` on `pruefwerk-stage.breakpilot.com` (+ `/mcp`, `/docs`); no mailserver on stage. Werkbank: `werkbank-runner-stage` with a registry API key (`werkbank:runner`). Firmwerk: `firmwerk-cloud-stage` + `firmwerk-mongo-stage` on `firmwerk-stage.breakpilot.com`; CLI `v0.4.3` under `platform` packages. Werkpilot: release under `platform/werkpilot`. - **Deliverables:** Prüfwerk: iss+aud validation, CORS allowlist, scheduler via `GET /v1/tenants`, entitlement check on tenant-context build, §4.1 endpoints, usage events; services `pruefwerk-{mongo,agent,dashboard,mcp,docs}-stage` on `pruefwerk-stage.breakpilot.com` (+ `/mcp`, `/docs`); **no browserless / soft-plc / plc-sim on staging (8 GB budget)**; no mailserver on stage. Werkbank: `werkbank-runner-stage` with a registry API key (`werkbank:runner`). Firmwerk: `firmwerk-cloud-stage` + `firmwerk-mongo-stage` on `firmwerk-stage.breakpilot.com`; CLI `v0.4.3` under `platform` packages. Werkpilot: release under `platform/werkpilot`.
- **Acceptance:** tenants `acme` and `globex` via portal; Prüfwerk login per tenant; scan of `cra-vuln-demo`; tenant B cannot read A's scan (404/403); MCP token bound to tenant; runner completes a `dast` job; `firmwerk` device login against `firmwerk-stage`; Gatus checks for the stage hosts; old volumes on core deleted afterwards. - **Acceptance:** tenants `acme` and `globex` via portal; Prüfwerk login per tenant; scan of `cra-vuln-demo`; tenant B cannot read A's scan (404/403); MCP token bound to tenant; runner completes a `dast` job; `firmwerk` device login against `firmwerk-stage`; Gatus checks for the stage hosts; old volumes on core deleted afterwards.
- **Gate:** standard + security checklist. **Effort:** L. - **Gate:** standard + security checklist. **Effort:** L.
+19 -18
View File
@@ -17,7 +17,7 @@
├──────────────────────┼────────────────────┼───────┼────────────────────────────┼───────────┼──────────────────────────┤ ├──────────────────────┼────────────────────┼───────┼────────────────────────────┼───────────┼──────────────────────────┤
│ breakpilot-infra-vm1 │ breakpilot (core) │ core │ existing, 46.225.100.82 │ YES │ master · Identity+Infra │ │ breakpilot-infra-vm1 │ breakpilot (core) │ core │ existing, 46.225.100.82 │ YES │ master · Identity+Infra │
│ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ existing 16 GB, 178.105.159.224 │ YES │ agent · ERP, Nextcloud… │ │ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ existing 16 GB, 178.105.159.224 │ YES │ agent · ERP, Nextcloud… │
│ bp-platform-stage │ breakpilot-platform│ stage │ CX43/CPX41 class 8v/16 GB │ YES │ MASTER · Control+App (stage) │ │ bp-platform-stage │ breakpilot-platform│ stage │ CPX32 4v/8 GB (booked 2026-09-11) │ YES │ MASTER · Control+App (stage) │
│ bp-platform-prod │ breakpilot-platform│ prod │ sized at prod planning (≥16 GB, dedicated cores preferred) │ YES │ agent · Control+App (prod) │ │ bp-platform-prod │ breakpilot-platform│ prod │ sized at prod planning (≥16 GB, dedicated cores preferred) │ YES │ agent · Control+App (prod) │
│ (dev) │ — │ dev │ laptop docker-compose │ n/a │ all (in-memory) │ │ (dev) │ — │ dev │ laptop docker-compose │ n/a │ all (in-memory) │
└──────────────────────┴────────────────────┴───────┴────────────────────────────┴───────────┴──────────────────────────┘ └──────────────────────┴────────────────────┴───────┴────────────────────────────┴───────────┴──────────────────────────┘
@@ -65,26 +65,27 @@ Stopped and archived at M-MIG-2: `breakpilot-portal` + 4 per-tenant portals, `co
### Platform cluster (`platform/orca-platform`) — stage node ### Platform cluster (`platform/orca-platform`) — stage node
``` ```
bp-platform-stage (master, public IP, 8 vCPU / 16 GB) bp-platform-stage (master, public IP, CPX32: 4 vCPU / 8 GB)
project platform-stage project platform-stage
portal-stage app-stage.breakpilot.com 1 GB portal-stage app-stage.breakpilot.com 640 MB
tenant-registry-stage registry-stage.breakpilot.com 512 MB (migrate init) tenant-registry-stage registry-stage.breakpilot.com 384 MB (migrate init)
pg-stage internal, volume 1.5 GB pre_hook pg_dumpall pg-stage internal, volume 768 MB pre_hook pg_dumpall
erpnext-mock-stage internal 256 MB (stage only) erpnext-mock-stage internal 192 MB (stage only)
project pruefwerk-stage project pruefwerk-stage
pruefwerk-dashboard-stage pruefwerk-stage.breakpilot.com 1 GB pruefwerk-dashboard-stage pruefwerk-stage.breakpilot.com 640 MB
pruefwerk-agent-stage internal :3001 2 GB pruefwerk-agent-stage internal :3001 1.25 GB
pruefwerk-mcp-stage route pruefwerk-stage…/mcp/* 512 MB pruefwerk-mcp-stage route pruefwerk-stage…/mcp/* 256 MB
pruefwerk-docs-stage route pruefwerk-stage…/docs/* 128 MB pruefwerk-docs-stage route pruefwerk-stage…/docs/* 96 MB
pruefwerk-mongo-stage internal, volume 1.5 GB pre_hook mongodump pruefwerk-mongo-stage internal, volume 768 MB pre_hook mongodump
browserless-stage internal 1.5 GB werkbank-runner-stage internal (OPTIONAL — start only for runner tests) 512 MB
soft-plc-stage, plc-sim-stage internal (scan targets) 512 MB each
werkbank-runner-stage internal 1 GB
project firmwerk-stage project firmwerk-stage
firmwerk-cloud-stage firmwerk-stage.breakpilot.com 512 MB firmwerk-cloud-stage firmwerk-stage.breakpilot.com 384 MB
firmwerk-mongo-stage internal, volume 1 GB pre_hook mongodump firmwerk-mongo-stage internal, volume 512 MB pre_hook mongodump
otel-agent (observability) internal 256 MB otel-agent (observability) internal 192 MB
≈ 13 GB committed of 16 GB ≈ 6.1 GB committed (6.6 GB with the runner) of 8 GB
NOT on staging (8 GB budget): browserless (Chrome), soft-plc, plc-sim. Scan flows that need them
(DAST, ICS probe) are tested against external demo targets (cra-vuln-demo) or on the prod node
later; scan types that need Chrome are marked "unavailable on staging" in the E2E matrix (M-MIG-8).
``` ```
### Platform cluster — prod node (later, same shape) ### Platform cluster — prod node (later, same shape)