From 2ece6c2202c290f7f298887044d819e3ab09fdc8 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 2 Jul 2026 17:15:16 -0700 Subject: [PATCH] phase121: plan data plane address capability --- seaweed-block/docs/roadmap.md | 23 ++- seaweed-block/internal/docs/current-plan.md | 172 ++++++++++-------- ...edplan_nvme_tcp_management_lan_baseline.md | 56 ++++++ .../internal/docs/product-roadmap.md | 21 ++- 4 files changed, 180 insertions(+), 92 deletions(-) create mode 100644 seaweed-block/internal/docs/finished-plans/phase120_finishedplan_nvme_tcp_management_lan_baseline.md diff --git a/seaweed-block/docs/roadmap.md b/seaweed-block/docs/roadmap.md index d15a3038f6..fe432c6dd8 100644 --- a/seaweed-block/docs/roadmap.md +++ b/seaweed-block/docs/roadmap.md @@ -626,14 +626,23 @@ Recommended order from here: evidence, keeps RoCE/NVMe-RDMA as a non-claim, and chooses the conservative next step: first run a block NVMe/TCP performance baseline to find the actual bottleneck. -78. Phase 120: NVMe/TCP Performance Baseline. **Active** +78. Phase 120: NVMe/TCP Management-LAN Baseline. **Closed 2026-07-02, + QA PASS** Add a supported-lab Kubernetes PVC gate that measures the current NVMe/TCP - path before any RoCE/NVMe-RDMA investment. The gate records sequential - write/read MiB/s and small-write IOPS as baseline evidence only, with - explicit non-claims for RoCE, NVMe/RDMA, performance SLO, GPU/cuObject, - NIXL, broad compatibility, and published-image support. Any - `publish_target=:4420` evidence is a TCP target address, not a - RoCE/RDMA address. + path on the default Kubernetes InternalIP/LAN network. The passing run used + `192.168.1.181:4420` and recorded sequential write/read MiB/s plus + small-write IOPS. This is a functional/default-network baseline, not the + authoritative 100GbE performance baseline. It keeps explicit non-claims for + RoCE, NVMe/RDMA, performance SLO, GPU/cuObject, NIXL, broad compatibility, + and published-image support. +79. Phase 121: Data-Plane Address Capability. **Active** + Mirror the Rust volume RDMA pattern before rerunning performance gates: + data-plane addresses must be explicit, queryable, and surfaced as evidence + instead of inferred from Kubernetes InternalIP. Add per-node management IP + versus frontend/data-plane IP distinction, status/report evidence for the + selected NVMe/TCP target network, and a gate that refuses to label + `192.168.1.x` as a 100GbE performance baseline. This still does not claim + RoCE/NVMe-RDMA support. The internal release-train contract is `internal/docs/ref/operation-layer-v0.5-release-train.md`. Phases 41-44 close diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index 1595b7d330..597ef18064 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -1,80 +1,101 @@ -# Current Plan: Phase 120 NVMe/TCP Performance Baseline +# Current Plan: Phase 121 Data-Plane Address Capability -Status: implementation and QA-gate packaging. +Status: planning and implementation. -Phase 119 closed the RDMA evidence review: the mono RDMA/VFS/RustVolume/NIXL -work proves real object/VFS acceleration, but it is not a Linux -`nvme connect -t rdma` compatible NVMe-oF/RDMA target. Phase 120 therefore -takes the conservative next step: measure the supported block path -(`NVMe/TCP`) before spending more engineering time on RoCE/NVMe-RDMA. +Phase 120 proved the default Kubernetes NVMe/TCP path and collected a useful +management-LAN baseline, but it used `kubectl get nodes -o wide` InternalIP +addresses such as `192.168.1.181:4420`. That is correct for functional +cross-node attach, but it is not the right source of truth for a performance +baseline on the 100GbE/RoCE fabric. -This is a baseline phase, not a performance claim phase. +Rust volume already uses the better pattern: + +```text +[rdma] +enabled = true +ip = "" +port = 18516 + +PrepareRdmaRead/Write -> returns ok, rdma_ip, rdma_port, lease/capability +``` + +Seaweed Block should mirror that model before any more performance or RDMA +claims: the data-plane address must be explicit, queryable, and surfaced as +evidence. ## Why This Phase Exists -The product already has a supported-lab NVMe/TCP path: +There are three distinct network facts that must not be mixed: ```text -Kubernetes PVC - -> CSI dynamic provisioning - -> blockmaster/blockvolume external NVMe/TCP publication - -> Linux host nvme-tcp attach - -> pod mount + write/read +Kubernetes node InternalIP: 192.168.1.x + -> management/LAN path + -> valid for functional attach gates + +100GbE TCP data-plane IP: usually 10.x.x.x in this lab + -> valid for NVMe/TCP performance baseline + -> still not RoCE/NVMe-RDMA + +RoCE/NVMe-RDMA endpoint + -> different protocol path + -> requires explicit RDMA support/capability ``` -The next question is not whether RDMA can move memory quickly in another -project. The next question is where the current Seaweed Block NVMe/TCP path -actually spends time under a real Kubernetes PVC workload. +Phase 121 makes Block express these facts explicitly instead of inferring them +from Kubernetes InternalIP. -Phase 120 records a repeatable baseline so later work can compare: +## Target Model -- NVMe/TCP tuning; -- storage-engine changes; -- NVMe/RDMA work; -- object/VFS/NIXL acceleration work that is not directly block PVC. +Each block node needs separate address fields: + +```text +kubernetesNode: m01 +managementIP: 192.168.1.181 +frontendIP: +rdmaIP: +networkClass: management_lan | 100gbe_tcp | roce +``` + +The runtime/status surface should expose capability evidence in the same spirit +as Rust volume's `PrepareRdma*` responses: + +```text +nvme_tcp_supported=true +nvme_tcp_ip= +nvme_tcp_port=4420 +nvme_tcp_network_class=100gbe_tcp +nvme_rdma_supported=false +roce_ip= +rdma_capability_source=config|probe|absent +``` + +For now, `nvme_rdma_supported=false` remains the correct Block answer. ## Deliverables -1. Add an executable lab gate: +1. Add a values/config path that can override the frontend/data-plane IP per + Kubernetes node without abusing `internalIP`. + +2. Add status/report evidence that identifies the selected frontend network: ```text - scripts/run-phase120-nvme-tcp-performance-baseline-gate.sh - testops/scenarios/nvme-tcp-performance-baseline-chain.yaml + publish_target=:4420 + publish_target_network_class=100gbe_tcp + publish_target_source=configured_data_plane + management_ip=192.168.1.x ``` -2. The gate must use the supported Kubernetes NVMe/TCP path, not a standalone - helper path. +3. Add a TestOps gate that refuses to call a run a "performance baseline" unless + the publish target is on the configured data-plane network and route/interface + evidence agrees. -3. The gate must collect terminal `key=value` evidence: +4. Keep the protocol boundary explicit: ```text - phase120_nvme_tcp_performance_baseline_status=ok - protocol=nvme frontend_transport=tcp - managed_volume_status=ready - publish_target_loopback=false - marker_verified=true - final_data_verified=true - seq_write_mibps= - seq_read_mibps= - small_write_iops= - cleanup_status=ok - ``` - -4. The gate must explicitly record non-claims: - - ```text - roce_claim_allowed=false nvme_rdma_claim_allowed=false - performance_claim_allowed=false + roce_claim_allowed=false performance_slo_claim_allowed=false - perf_gate_type=baseline_no_slo - ``` - -5. Add a QA assignment: - - ```text - internal/docs/qa-assignments/phase120-nvme-tcp-performance-baseline-qa.md ``` ## Verification @@ -82,39 +103,38 @@ Phase 120 records a repeatable baseline so later work can compare: Local/source checks: ```powershell -bash -n scripts/run-phase120-nvme-tcp-performance-baseline-gate.sh -C:\work\swblock.exe validate testops/scenarios/nvme-tcp-performance-baseline-chain.yaml -go test ./cmd/blockvolume ./cmd/sw-block +go test ./cmd/sw-block ./cmd/blockvolume ./core/launcher +C:\work\swblock.exe validate ``` -Live gate: +Live gate should record: -```powershell -C:\work\swblock.exe run ` - testops/scenarios/nvme-tcp-performance-baseline-chain.yaml ` - -env product_root=/tmp/seaweed_block +```text +phase121_data_plane_address_capability_status=ok +management_ip=192.168.1.x +publish_target=<100G-IP>:4420 +publish_target_network_class=100gbe_tcp +publish_target_source=configured_data_plane +frontend_transport=tcp +nvme_rdma_supported=false +roce_claim_allowed=false +cleanup_status=ok ``` -The live gate may use local images while this remains a development phase. A -future release claim still needs matching published `seaweed-block` and -`seaweed-block-csi` images. - -Any `publish_target=:4420` row in this phase is an NVMe/TCP target address -on the Kubernetes/LAN network. It is not a RoCE/RDMA address or evidence of -NVMe/RDMA attach. +Only after this passes should a new high-speed NVMe/TCP baseline run and replace +the Phase 120 LAN numbers for performance discussion. ## Exit Criteria -Phase 120 can close when: +Phase 121 can close when: -- the source checks pass; -- the TestOps scenario validates; -- the live supported-lab gate passes or has a concrete lab/artifact blocker; -- the summary contains numeric baseline rows and the explicit non-claim rows; -- cleanup leaves `cleanup_status=ok`. +- values/config can carry a per-node data-plane frontend IP; +- generated/rendered blockvolume frontends use that data-plane IP; +- status/report/QA evidence distinguishes management IP from data-plane IP; +- the gate refuses to label `192.168.1.x` as a performance baseline network; +- cleanup remains zero-residue. ## Non-Claims -Phase 120 does not claim RoCE, NVMe/RDMA attach, NVMe/RDMA performance, a -performance SLO, production tuning, broad kernel/distro compatibility, -GPU/cuObject, NIXL production support, or published-image support. +Phase 121 does not implement NVMe/RDMA, RoCE I/O, GPU/cuObject, NIXL production +support, performance SLOs, broad host compatibility, or published-image support. diff --git a/seaweed-block/internal/docs/finished-plans/phase120_finishedplan_nvme_tcp_management_lan_baseline.md b/seaweed-block/internal/docs/finished-plans/phase120_finishedplan_nvme_tcp_management_lan_baseline.md new file mode 100644 index 0000000000..f51390ba72 --- /dev/null +++ b/seaweed-block/internal/docs/finished-plans/phase120_finishedplan_nvme_tcp_management_lan_baseline.md @@ -0,0 +1,56 @@ +# Phase 120 Finished Plan: NVMe/TCP Management-LAN Baseline + +Status: closed as a functional/default-network baseline. + +Phase 120 added and QA-validated a supported-lab Kubernetes NVMe/TCP gate: + +```text +scripts/run-phase120-nvme-tcp-performance-baseline-gate.sh +testops/scenarios/nvme-tcp-performance-baseline-chain.yaml +``` + +## Result + +Final live QA passed on commit `fb19f58` and was recorded in: + +```text +internal/docs/qa-assignments/phase120-nvme-tcp-performance-baseline-qa-signoff.md +``` + +Evidence: + +```text +publish_target=192.168.1.181:4420 +seq_write_mibps=82.37 +seq_read_mibps=231.05 +small_write_iops=771.08 +cleanup_status=ok +``` + +## Correct Interpretation + +This is a management-LAN/default Kubernetes InternalIP baseline: + +```text +192.168.1.x -> Kubernetes/LAN TCP path +``` + +It proves the supported NVMe/TCP PVC path can build, install, attach, mount, +write, read, collect metrics, and clean up. It is not the right performance +baseline for the 100GbE/RoCE fabric. + +## Follow-Up + +Phase 121 should add explicit data-plane address capability before rerunning a +high-speed NVMe/TCP baseline: + +```text +managementIP != frontend/data-plane IP +NVMe/TCP 100GbE baseline != RoCE/NVMe-RDMA claim +``` + +## Non-Claims + +Phase 120 did not claim RoCE, NVMe/RDMA attach, NVMe/RDMA performance, a +performance SLO, production tuning, broad kernel/distro compatibility, +GPU/cuObject, NIXL production support, or published-image support. diff --git a/seaweed-block/internal/docs/product-roadmap.md b/seaweed-block/internal/docs/product-roadmap.md index 4176602910..3b052cb433 100644 --- a/seaweed-block/internal/docs/product-roadmap.md +++ b/seaweed-block/internal/docs/product-roadmap.md @@ -331,12 +331,15 @@ rebuild, delete safety, or cleanup must start as a separate gated phase. a Linux `nvme connect -t rdma` compatible target. The decision was to keep RoCE/NVMe-RDMA as a non-claim and first run a block NVMe/TCP performance baseline before spending more time on RoCE. -- Phase 120 is the active plan. It adds a supported-lab Kubernetes PVC gate for - the implemented NVMe/TCP path and records sequential write/read MiB/s plus - small-write IOPS as baseline evidence only. It does not create a performance - SLO, RoCE/NVMe-RDMA claim, GPU/cuObject claim, NIXL claim, broad compatibility - claim, or published-image claim. Its `publish_target=:4420` evidence is a - TCP target address, not a RoCE/RDMA address. +- Phase 120 is closed as a management-LAN/default-network baseline. It proved + the implemented Kubernetes NVMe/TCP path and recorded sequential write/read + MiB/s plus small-write IOPS on `192.168.1.181:4420`, but those numbers are + not the authoritative 100GbE performance baseline. +- Phase 121 is the active plan. It mirrors the Rust volume RDMA pattern by + making data-plane addresses explicit, queryable, and visible in status/report + evidence before rerunning a high-speed NVMe/TCP baseline. It separates + management IP, NVMe/TCP data-plane IP, and optional RoCE/RDMA IP, while still + keeping RoCE/NVMe-RDMA unsupported for Block. - Later protocol candidates: complete a real NVMe/RDMA target, characterize NVMe/TCP performance, or bridge to object/NIXL acceleration where the product surface is object/storage rather than block PVC. Keep these separate so @@ -918,9 +921,9 @@ Approximate engineering effort if scope remains tight: `C:\work\rdma\seaweed-mono-rdma-refresh`, separated object/VFS acceleration from block NVMe/RDMA, and chose a block NVMe/TCP performance baseline as the next conservative step. -- Phase 120 is active. It packages the supported-lab NVMe/TCP performance - baseline gate and keeps all performance, RoCE/NVMe-RDMA, GPU/cuObject, NIXL, - broad compatibility, and published-image claims explicitly out of scope. +- Phase 120 is closed as a management-LAN/default-network baseline. +- Phase 121 is active. It adds the data-plane address capability model needed + before a real 100GbE NVMe/TCP baseline and before any future NVMe/RDMA work. - Phase 41-44 are the Operation Layer v0.5 release train: lifecycle-owner foundation, real API/admission proof, first bounded finalizer mutation, and delete lifecycle close gate.