mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
docs: switch phase101 to nvme hardening
This commit is contained in:
1 parent
46b2ae53e9
commit
fa4ce1029f
3 files changed
+125
-139
No files matched your search
@@ -465,14 +465,13 @@ Recommended order from here:
|
||||
publish/NodeStage multipath attach, mounted writer/reader I/O, and zero
|
||||
Seaweed Block NVMe residue after delete. This is not a RoCE, performance,
|
||||
broad host compatibility, production HA, or soak claim.
|
||||
59. Phase 101: Data Lifecycle MVP. **Active plan**
|
||||
Add snapshot/backup/restore after it can reuse the same action owner,
|
||||
evidence, and status model rather than creating another isolated control
|
||||
plane. The first claim is intentionally narrow: source-gated
|
||||
crash-consistent snapshot evidence, backup artifact metadata, restore
|
||||
preflight, one bounded restore path into a new PVC, writer/reader
|
||||
verification, and zero-residue cleanup. No production backup, remote DR,
|
||||
retention, application consistency, encryption/KMS, or broad UI claim.
|
||||
59. Phase 101: NVMe Hardening And Soak. **Active plan**
|
||||
Harden the Phase 100 NVMe path before broadening the product surface:
|
||||
publish NVMe path identity/health into status surfaces, prove no false
|
||||
Ready on one-path failure, repeat stage/unstage without host residue, and
|
||||
run a bounded writer/reader soak. This remains a supported-lab claim only:
|
||||
no RoCE, production HA, broad host compatibility, performance/SLO, or
|
||||
backup/restore claim.
|
||||
|
||||
The internal release-train contract is
|
||||
`internal/docs/ref/operation-layer-v0.5-release-train.md`. Phases 41-44 close
|
||||
|
||||
@@ -1,174 +1,161 @@
|
||||
# Current Plan: Phase 101 Data Lifecycle MVP
|
||||
# Current Plan: Phase 101 NVMe Hardening And Soak
|
||||
|
||||
Status: active plan; implementation not started.
|
||||
Status: active plan; implementation starting.
|
||||
|
||||
## Why This Is Next
|
||||
|
||||
The operation layer now has a coherent beta-candidate loop:
|
||||
Phase 99 closed the NVMe baseline:
|
||||
|
||||
- ANA Identify/Get Log Page and provider-backed ANA state exist.
|
||||
- Direct-host ANA/multipath gates exist.
|
||||
- CSI can select and stage a single NVMe publish target.
|
||||
|
||||
Phase 100 closed the supported-lab Kubernetes CSI NVMe multipath attach path:
|
||||
|
||||
```text
|
||||
PVC / SwBlockVolume identity
|
||||
-> CRD status and Events
|
||||
-> evidence-backed decisions
|
||||
-> bounded lifecycle-owner finalizer mutation
|
||||
-> delete-safety hold/release
|
||||
dynamic PVC protocol=nvme, replicationFactor=2
|
||||
-> two NVMe frontend paths for one NQN/NSID
|
||||
-> master status groups them as one multipath publish target
|
||||
-> CSI publish context carries nvmeAddrs
|
||||
-> NodeStage connects every path
|
||||
-> app pod writer/reader passes
|
||||
-> cleanup proves no stale NVMe subsystem residue
|
||||
```
|
||||
|
||||
Phase 98 closed the returned-replica operation loop. Phase 100 closed the
|
||||
supported-lab Kubernetes CSI NVMe multipath attach path. The next user-visible
|
||||
gap is data lifecycle: users can create and operate block volumes, but they
|
||||
cannot yet create a product-owned recovery point, export it as a backup, or
|
||||
restore it into a new PVC-backed volume.
|
||||
The next risk is not "can NVMe attach once"; that is proven. The next risk is
|
||||
whether the NVMe path behaves like a product feature when it is stressed,
|
||||
observed, and partially failed.
|
||||
|
||||
This phase must reuse the operation model rather than invent a separate control
|
||||
plane:
|
||||
|
||||
```text
|
||||
live facts -> judgment -> safe action -> evidence -> CRD/report/dashboard/explain
|
||||
```
|
||||
This phase hardens the NVMe path without broadening the claim into production
|
||||
HA, RoCE, performance, or broad host compatibility.
|
||||
|
||||
## Product Goal
|
||||
|
||||
Deliver a narrow, honest data-lifecycle MVP:
|
||||
Move NVMe from a supported-lab attach proof to a supported-lab hardening proof:
|
||||
|
||||
```text
|
||||
source PVC-backed volume
|
||||
-> create a crash-consistent snapshot/checkpoint record
|
||||
-> export/record backup metadata and artifact location
|
||||
-> dry-run restore preflight with explicit blockers
|
||||
-> restore into a new PVC-backed volume only when evidence is sufficient
|
||||
-> writer/reader verifies restored data
|
||||
-> cleanup proves zero residue
|
||||
NVMe multipath attach
|
||||
-> visible path identity and ANA/path health in status surfaces
|
||||
-> one-path failure does not produce false Ready
|
||||
-> path recovery converges
|
||||
-> repeated stage/unstage leaves no residue
|
||||
-> bounded soak keeps writer/reader and cleanup true
|
||||
```
|
||||
|
||||
The first milestone can be source-gated. Do not claim production backup, remote
|
||||
DR, encryption/KMS, incremental forever, application consistency, or broad
|
||||
retention policy support.
|
||||
## D1: NVMe Status Surface Contract
|
||||
|
||||
## D1: Data Lifecycle Contract
|
||||
Expose enough NVMe facts for operators and gates to reason about the attached
|
||||
path instead of grepping CSI logs.
|
||||
|
||||
Define the product vocabulary and schema before wiring mutation:
|
||||
Required facts:
|
||||
|
||||
- `SwBlockSnapshot` or equivalent snapshot record shape.
|
||||
- `SwBlockBackup` or equivalent backup/export record shape.
|
||||
- restore request/decision shape.
|
||||
- status conditions:
|
||||
- `Ready`
|
||||
- `Blocked`
|
||||
- `EvidenceStale`
|
||||
- `SnapshotCreated`
|
||||
- `BackupAvailable`
|
||||
- `RestoreReady`
|
||||
- `RestoreBlocked`
|
||||
- stable reasons:
|
||||
- `snapshot_source_not_ready`
|
||||
- `snapshot_checkpoint_created`
|
||||
- `backup_artifact_recorded`
|
||||
- `restore_source_missing`
|
||||
- `restore_target_exists`
|
||||
- `restore_preflight_passed`
|
||||
- `restore_data_verified`
|
||||
- action records:
|
||||
- `data_lifecycle.create_snapshot`
|
||||
- `data_lifecycle.export_backup`
|
||||
- `data_lifecycle.restore_volume`
|
||||
- protocol=`nvme`;
|
||||
- `nqn`;
|
||||
- `nsid`;
|
||||
- first `nvmeAddr`;
|
||||
- full `nvmeAddrs[]` path list;
|
||||
- path count;
|
||||
- multipath requested/observed;
|
||||
- ANA state when available;
|
||||
- stale/missing path reason when evidence is incomplete.
|
||||
|
||||
Surfaces:
|
||||
|
||||
- CRD status;
|
||||
- `operator-snapshot.json`;
|
||||
- report summary;
|
||||
- dashboard JSON;
|
||||
- `ops explain`.
|
||||
|
||||
Success criteria:
|
||||
|
||||
- schema is camelCase and Kubernetes OpenAPI-valid;
|
||||
- status/action records appear in report, dashboard, operator-snapshot, and
|
||||
explain;
|
||||
- no action claims execution without evidence.
|
||||
- a healthy Phase 100-style volume shows two NVMe paths and no iSCSI frontend;
|
||||
- a missing-path snapshot shows `Ready=Unknown` or `Blocked`, never false
|
||||
`Ready=True`;
|
||||
- all surfaces agree.
|
||||
|
||||
## D2: Snapshot Evidence Gate
|
||||
## D2: NVMe Path Failure Gate
|
||||
|
||||
Implement the first source-gated snapshot/checkpoint path.
|
||||
Prove that the system does not lie when one NVMe path disappears.
|
||||
|
||||
Minimum acceptable scope:
|
||||
Minimum acceptable gate:
|
||||
|
||||
- single source volume;
|
||||
- quiesce/application-consistency is not claimed;
|
||||
- snapshot is crash-consistent at the block layer only;
|
||||
- evidence records source volume ID, PVC, authority epoch, primary, publish
|
||||
target, durable frontier/checkpoint identity, and captured time.
|
||||
- start from a mounted two-path NVMe volume;
|
||||
- make one path unavailable without deleting the whole volume;
|
||||
- keep workload data path semantics scoped and explicit;
|
||||
- status must not claim a clean two-path Ready state while evidence shows one
|
||||
path missing;
|
||||
- cleanup must remove all NVMe subsystem residue.
|
||||
|
||||
Success criteria:
|
||||
|
||||
- snapshot creation refuses when source volume is not Ready;
|
||||
- snapshot evidence is stable enough for cold-bundle replay;
|
||||
- no false `SnapshotCreated=True` when the checkpoint is missing or stale.
|
||||
- no false Ready;
|
||||
- path-count/path-health reason is visible;
|
||||
- writer/reader result is recorded honestly, whether pass or degraded;
|
||||
- recovery or final cleanup converges.
|
||||
|
||||
## D3: Backup Artifact Metadata Gate
|
||||
## D3: Stage/Unstage Idempotency And Residue Gate
|
||||
|
||||
Record backup/export metadata without overclaiming enterprise backup.
|
||||
Exercise attach/detach repetition, because host initiator residue is a common
|
||||
NVMe/iSCSI product failure mode.
|
||||
|
||||
Minimum acceptable scope:
|
||||
Minimum acceptable gate:
|
||||
|
||||
- local filesystem or configured artifact path only;
|
||||
- backup artifact has identity, source snapshot, size/checksum if available,
|
||||
created time, and restore compatibility metadata;
|
||||
- status surfaces show where the artifact is and whether it is complete.
|
||||
- repeat NodeStage/NodeUnstage through Kubernetes pod churn or runner helper;
|
||||
- record `nvme list-subsys` before/after each cycle;
|
||||
- assert no stale subsystem/controller survives final cleanup.
|
||||
|
||||
Success criteria:
|
||||
|
||||
- backup metadata is reproducible from support bundle;
|
||||
- missing/incomplete artifact surfaces `Blocked` or `EvidenceStale`, never
|
||||
`BackupAvailable=True`;
|
||||
- cleanup verifies no temporary export residue.
|
||||
- repeated stage/unstage does not accumulate stale NVMe sessions;
|
||||
- failed mid-cycle cleanup is surfaced as cleanup-required, not hidden;
|
||||
- final verifier returns zero residue.
|
||||
|
||||
## D4: Restore Preflight Gate
|
||||
## D4: Bounded NVMe Soak Gate
|
||||
|
||||
Before mutating a target volume, implement dry-run restore judgment.
|
||||
Run a small, deterministic soak rather than a performance benchmark.
|
||||
|
||||
Preflight must check:
|
||||
Minimum acceptable gate:
|
||||
|
||||
- backup artifact exists and matches declared snapshot/source identity;
|
||||
- target PVC/volume name is free or explicitly allowed;
|
||||
- requested size is compatible;
|
||||
- protocol/storage backend compatibility is explicit;
|
||||
- restore action owner has the minimum required RBAC and no broad workload or
|
||||
storage mutation power.
|
||||
- mounted writer/reader loop for a bounded duration or iteration count;
|
||||
- optional path flap if D2 is stable;
|
||||
- periodic status snapshots;
|
||||
- final cleanup verifier.
|
||||
|
||||
Success criteria:
|
||||
|
||||
- clean backup -> `restore_preflight_passed`;
|
||||
- missing artifact/source mismatch/target collision -> `RestoreBlocked`;
|
||||
- CRD/report/dashboard/explain agree;
|
||||
- action remains dry-run until the restore executor gate starts.
|
||||
- no false Ready during the run;
|
||||
- no path identity drift across snapshots;
|
||||
- no final NVMe residue;
|
||||
- result explicitly does not claim throughput, latency, or production SLO.
|
||||
|
||||
## D5: Restore Executor Close Gate
|
||||
## D5: Close Gate And Release Wording
|
||||
|
||||
Implement one bounded restore path after D4 is green.
|
||||
Close the milestone by updating user-facing docs and finished-plan evidence.
|
||||
|
||||
Minimum acceptable scope:
|
||||
Release wording must say:
|
||||
|
||||
- restore one source backup into one new PVC-backed volume;
|
||||
- verify mounted reader sees the restored data;
|
||||
- status and Events record `restore_data_verified`;
|
||||
- multi-volume isolation: restoring volume A cannot change volume B status,
|
||||
finalizers, authority, or frontend publication.
|
||||
|
||||
Success criteria:
|
||||
|
||||
- writer/reader proves restored data;
|
||||
- failed restore leaves no false Ready and no hidden residue;
|
||||
- cleanup verifier returns all zero residue counts;
|
||||
- final sign-off states exact non-claims.
|
||||
- NVMe-oF is supported as a lab-gated frontend path;
|
||||
- Kubernetes CSI NVMe multipath attach and basic hardening gates exist;
|
||||
- iSCSI remains the default broad-compatibility path;
|
||||
- no RoCE, production HA, broad distro/kernel compatibility, performance, or
|
||||
soak/SLO claim.
|
||||
|
||||
## Non-Claims
|
||||
|
||||
- no production backup/SLO/retention policy claim;
|
||||
- no application-consistent snapshot claim;
|
||||
- no remote DR or cross-cluster restore claim;
|
||||
- no incremental forever/dedup/compression claim;
|
||||
- no backup encryption/KMS claim;
|
||||
- no broad UI claim.
|
||||
- no RoCE claim;
|
||||
- no production HA claim;
|
||||
- no performance/latency/throughput claim;
|
||||
- no broad distro/kernel compatibility claim;
|
||||
- no transparent Kubernetes node-loss failover claim;
|
||||
- no backup/snapshot/restore claim.
|
||||
|
||||
## Release Relationship
|
||||
|
||||
Operation Layer v0.5 remains a large release candidate but still needs matching
|
||||
published images and pinned-image smoke before being marked released.
|
||||
|
||||
Phase 101 is development after that operation milestone. It should not block the
|
||||
operation release, and the operation release should not claim Phase 101 data
|
||||
lifecycle features.
|
||||
Phase 101 is a storage/protocol hardening milestone after Phase 100. It should
|
||||
not block the operation release, and the operation release should not claim
|
||||
Phase 101 NVMe hardening unless matching release images are published and
|
||||
smoked.
|
||||
@@ -225,14 +225,15 @@ rebuild, delete safety, or cleanup must start as a separate gated phase.
|
||||
Phase 98 closes the deployed workload-visible path: product-owned frontend
|
||||
publication after failback is followed by writer/reader verification and
|
||||
zero-residue cleanup in live k3s.
|
||||
- Next: Phase 101 Data Lifecycle MVP. Phase 100 closed the Kubernetes CSI NVMe
|
||||
multipath attach gap for the supported lab path: multiple NVMe frontend paths
|
||||
for one NQN/NSID survive master status, CSI publish context, NodeStage, app
|
||||
writer/reader, and cleanup evidence. The next product gap is a narrow
|
||||
snapshot/backup/restore loop that reuses the operation action/evidence/status
|
||||
model instead of creating another isolated control plane. Stronger
|
||||
committed-frontier reporting, broad distro/host compatibility, RoCE,
|
||||
performance, and longer soak remain later work.
|
||||
- Next: Phase 101 NVMe Hardening And Soak. Phase 100 closed the Kubernetes CSI
|
||||
NVMe multipath attach gap for the supported lab path: multiple NVMe frontend
|
||||
paths for one NQN/NSID survive master status, CSI publish context, NodeStage,
|
||||
app writer/reader, and cleanup evidence. The next product gap is to harden
|
||||
that path before broadening the product surface: publish NVMe path
|
||||
identity/health into status surfaces, prove no false Ready on one-path
|
||||
failure, repeat stage/unstage without host residue, and run a bounded
|
||||
writer/reader soak. Backup/restore, stronger committed-frontier reporting,
|
||||
broad distro/host compatibility, RoCE, and performance remain later work.
|
||||
|
||||
### Track E: Protocol / Backend Expansion
|
||||
|
||||
@@ -791,11 +792,10 @@ Approximate engineering effort if scope remains tight:
|
||||
master NVMe frontend grouping, CSI `nvmeAddrs` publish context, NodeStage
|
||||
multi-address connect, mounted writer/reader I/O, and zero NVMe residue after
|
||||
delete in the supported lab.
|
||||
- Phase 101 Data Lifecycle MVP is the active plan. It starts the next large
|
||||
user-facing capability: source-gated snapshot evidence, backup artifact
|
||||
metadata, restore preflight, one bounded restore path into a new PVC, and
|
||||
writer/reader verification, all through the existing operation
|
||||
action/evidence/status model.
|
||||
- Phase 101 NVMe Hardening And Soak is the active plan. It starts from the
|
||||
Phase 100 supported-lab attach path and adds status-surface visibility,
|
||||
one-path-failure honesty, repeated stage/unstage residue checks, and bounded
|
||||
writer/reader soak before any broader NVMe claim.
|
||||
- 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.
|
||||
|
||||
Reference in new issue
Block a user