Compare commits

...
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 489862a4fe seaweed-block: README: the filer wait is bounded; replicated mode wording; best-effort in the figure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:54:30 -08:00
pingqiuandClaude Opus 5.5 b0053091fd seaweed-block: README: mark v1.1.x as a Beta
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:42:12 -08:00
pingqiuandClaude Opus 5.5 aa12233a31 seaweed-block: README: an overview figure of both modes at the top
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:36:07 -08:00
pingqiuandClaude Opus 5.5 d8b8ddf7db seaweed-block: README: blockmaster is one instance; the filer only in the checkpointed mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:18:06 -08:00
pingqiuandClaude Opus 5.5 083458fef7 seaweed-block: README: block storage for SeaweedFS, in two modes
The headline names both modes; a table compares checkpointed local
block (supported) with replicated network block (preview), with one
figure per mode in light and dark. A new Architecture section names
each process, where it runs and what it talks to, and which processes
each mode needs. The Quick Start explains what mini starts and prints
and how it maps to a deployment. Agent workspaces stay the first use
case. The three figures no longer used are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:14:08 -08:00
10 changed files with 396 additions and 439 deletions

No files matched your search

+102 -103
View File
@@ -4,26 +4,56 @@
[![CI](https://github.com/seaweedfs/seaweed-block/actions/workflows/test.yml/badge.svg)](https://github.com/seaweedfs/seaweed-block/actions/workflows/test.yml)
[![Go](https://img.shields.io/github/go-mod/go-version/seaweedfs/seaweed-block)](go.mod)
[![License](https://img.shields.io/github/license/seaweedfs/seaweed-block)](LICENSE)
[![Status: Beta](https://img.shields.io/badge/status-beta-orange)](#project-status)
**Local-first block storage for AI agents.**
**Block storage for [SeaweedFS](https://github.com/seaweedfs/seaweedfs), in two modes.** **Beta:** v1.1.x is a
test release.
*Run locally. Persist incrementally. Resume anywhere.*
Seaweed Block gives a VM, sandbox or container a plain block device over NVMe/TCP or iSCSI. Either the disk lives on
the host and its changed data is checkpointed to your SeaweedFS, or every write is copied to replicas on other hosts.
Its first use case is agent workspaces: disks that must outlive the sandbox that uses them.
Seaweed Block gives each agent sandbox or microVM its own block disk on the host's local storage, and checkpoints the
changed data to your own [SeaweedFS](https://github.com/seaweedfs/seaweedfs). Writes and `fsync` complete locally;
checkpoints, named snapshots and restores carry the workspace's state beyond that host. High density per host is a
design goal; see [Vision](#vision).
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/seaweed-block-mode-overview-dark.svg">
<img src="docs/assets/seaweed-block-mode-overview-light.svg" alt="Seaweed Block in two modes. One blockmaster per cluster issues epochs and leases and decides failover; the sw-block CLI talks to it. Left, checkpointed local block (supported): on a host, the guest writes over NVMe/TCP or iSCSI to blockvolume, which completes write and fsync on its local write-ahead log and extent and checkpoints the changed 4 MiB chunks to SeaweedFS (master, volume servers and filer) in the background; blockmaster reads the HEAD records from the filer. Right, replicated network block (preview): the guest writes to the primary blockvolume, which sends every write to replica blockvolumes on other hosts; SeaweedFS is not used." width="100%">
</picture>
**[Quick start](#quick-start)** · [How it works](#how-it-works) · [Project status](#project-status) ·
[Documentation](#documentation)
**[Quick start](#quick-start-explained)** · [Two modes](#two-modes) · [Architecture](#architecture) ·
[Project status](#project-status) · [Documentation](#documentation)
<p align="center">
<img src="docs/assets/seaweed-block-lifecycle.svg" alt="The Seaweed Block lifecycle. Run locally: agent VMs on host A write to the host's local disk, where writes and fsync complete with no network round trip. Persist incrementally: checkpoints send only the changed 4 MiB chunks to your SeaweedFS in the background, and named snapshots share those chunks. Resume anywhere: host B restores a snapshot into a new volume, or takes a volume over in a planned move; it serves at once and fetches chunks on first read. Normal I/O to locally available data stays on the host." width="100%">
</p>
## Two modes
## Why not just use...
| | Checkpointed local block | Replicated network block |
|---|---|---|
| Status in v1.1.x (Beta) | **Supported** within the Beta | **Preview** inside the Beta, with [known limits](docs/releases/replicated-volumes-preview.md) |
| Where the guest's disk is | A local write-ahead log and extent on the host | A primary on the guest's host, with replicas on other hosts |
| When `fsync` completes | Once the data is on the host's local disk | With `sync-quorum` or `sync-all`, once a quorum or every replica has it (the default `best-effort` waits for none) |
| What leaves the host | The changed 4 MiB chunks, checkpointed to SeaweedFS in the background | Every write, to the replicas |
| Snapshots, restore, planned moves | Yes | Not yet: the two modes cannot be combined in v1.1.x |
| After a host is lost | An operator's forced move continues from the last checkpoint in SeaweedFS | With `--cluster-spec` and the lifecycle loop enabled (`--lifecycle-product-loop-interval`, off by default), blockmaster fails a `sync-quorum` or `sync-all` volume over to a replica when its fencing round decides; the operator then starts the guest on the new primary's host. `best-effort` is not failed over automatically |
| Use it for | Agent workspaces, sandboxes and VMs that need portable state | Workloads that need online copies on other hosts |
| | Local disk | Conventional network block storage | Seaweed Block |
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/seaweed-block-mode-checkpointed-dark.svg">
<img src="docs/assets/seaweed-block-mode-checkpointed-light.svg" alt="Checkpointed local block (supported). The guest writes over NVMe/TCP or iSCSI to blockvolume on the same host, which completes write and fsync on its local write-ahead log and extent. In the background, checkpoints send the changed 4 MiB chunks to SeaweedFS (master, filer and volume servers), which also holds the HEAD records. blockmaster issues epochs and leases to blockvolume. Snapshots, restore and planned moves use the chunks in SeaweedFS." width="100%">
</picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/seaweed-block-mode-replicated-dark.svg">
<img src="docs/assets/seaweed-block-mode-replicated-light.svg" alt="Replicated network block (preview). The guest writes over NVMe/TCP or iSCSI to the primary blockvolume on its host. The primary sends every write to replica blockvolumes on other hosts; with sync-quorum or sync-all, fsync completes once a quorum or every replica has it. Each replica keeps a local store. blockmaster issues epochs, decides failover and names the new primary. No SeaweedFS is involved and there are no snapshots, restore or moves in this mode yet." width="100%">
</picture>
The two biggest limits of the replicated preview: a replica that falls behind the retained log needs a manual re-add,
and a primary cut off from blockmaster is not stopped by a lease, so it may serve stale reads and, under
`best-effort`, accept writes that are later lost. Do not use replicated volumes for data you cannot lose.
## Agent workspaces
The first use case is the checkpointed mode: each agent sandbox or microVM gets its own disk on the host's local
storage. Writes and `fsync` complete locally, and checkpoints, named snapshots and restores carry the workspace's
state beyond that host.
| | Local disk | Conventional network block storage | Checkpointed local block |
|---|---|---|---|
| Where writes and `fsync` complete | On the host | Typically on a remote storage service | On the host |
| Network in the I/O path | No | Typically, for every read and write | No, for data on the host; a restored or moved volume fetches chunks on first read |
@@ -31,12 +61,6 @@ design goal; see [Vision](#vision).
| Resume on another host | Copy the data yourself | Typically, detach the volume and attach it there | Move the volume there, or restore a snapshot into a new volume there (placed by the cluster spec) |
| What persistence sends | Nothing | Typically every write, as it happens | Only the whole 4 MiB chunks that changed, at each checkpoint |
<p align="center">
<img src="docs/assets/seaweed-block-storage-models.svg" alt="Three ways to give an agent VM a disk. Local disk: all I/O stays on the host, fast, but the state is tied to that host. Network block storage: I/O typically crosses the network to a remote volume, so the state outlives the host, but the network is in the I/O path. Seaweed Block: normal I/O to locally available data stays on the host's local disk, and changed chunks go to your SeaweedFS in the background, so it runs at near-local speed and the state outlives the host up to its last checkpoint." width="100%">
</p>
## Run, checkpoint, snapshot, restore
1. **Run.** Start a volume on the host where the agent runs. The guest attaches it over NVMe/TCP or iSCSI, formats it
with its own file system, and works at near-local speed.
2. **Checkpoint.** The changed chunks go to your SeaweedFS: on demand (`sw-block ops chunk cut`), periodically (the
@@ -49,48 +73,32 @@ design goal; see [Vision](#vision).
The commands and what each needs: [snapshots, restore and verification](docs/operations-manual.md#5-snapshots-restore-and-verification).
## Features
Also: AI coding agents whose repositories, dependencies and build caches must outlive the sandbox; long-running
agents that stop, resume and move between hosts; and Kubernetes block volumes through the CSI driver (alpha).
- **Near-local speed for agent workloads.** Writes and `fsync` complete on the host's disk, with no network round
trip, and every guest `fsync` reaches it.
- **Any file system, unchanged tools.** The guest sees a plain block device, so `git`, `npm` and builds run as on a
local disk.
- **Incremental checkpoints.** Only the changed 4 MiB chunks upload: on demand, periodically, or with the daily
snapshot.
- **Snapshots and instant restore.** Named snapshots share chunks, and a restored volume serves before its data
arrives.
- **Safe moves between hosts.** Epochs and leases fence the old host, so a stale host cannot publish over the
workspace's state.
- **Self-hosted and open source.** Your data stays in your SeaweedFS. Apache-2.0, written in Go.
## Architecture
## Use cases
| Process | What it does | Where it runs | Talks to |
|---|---|---|---|
| `blockmaster` | The control plane: epochs, leases, placement and failover. A single instance per cluster in v1.1.x, with no high availability; its authority and lifecycle records are local files. | One host. Put its state directory on its own filesystem. | `blockvolume` (heartbeats, leases, assignments), `sw-block` (control API), and in the checkpointed mode the SeaweedFS filer (HEAD records). There it needs a reachable filer to start. |
| `blockvolume` (the holder) | Serves one volume to its guest over NVMe/TCP or iSCSI, from a write-ahead log and extent. In the checkpointed mode it checkpoints to SeaweedFS; in the replicated mode it sends writes to, or receives them from, the other replicas. | On the host where the guest runs: one process per volume (and per replica). | Its guest, `blockmaster`, SeaweedFS (checkpointed mode), the other replicas (replicated mode) |
| SeaweedFS: `weed master`, `weed volume`, `weed filer` | Holds the checkpointed chunks and the HEAD records. | Your SeaweedFS cluster. | `blockvolume`, `blockmaster` and `sw-block` reach it over the network |
| `sw-block` | The operator CLI: start and stop volumes, checkpoints, snapshots, restore, moves, checks. | Wherever the operator works. | `blockmaster`, each holder's status endpoint, the SeaweedFS filer |
- **AI coding agents** whose repositories, dependencies and build caches must outlive the sandbox.
- **Agent sandboxes and microVM platforms** that give each sandbox its own disk.
- **Long-running agents** that stop, resume and move between hosts.
- **Also:** Kubernetes block volumes through the CSI driver (alpha), and replicated volumes for workloads that need
synchronous copies (`sync-quorum`, `sync-all`; preview).
What each mode needs:
- **Checkpointed:** `blockmaster` (with `--workspace-rpc`), one `blockvolume` per volume, and SeaweedFS.
`blockmaster` contacts the filer only in this mode: at start it waits about 60 s for the filer to answer, then exits
with an error.
- **Replicated:** `blockmaster` and one `blockvolume` per replica, each on its own host. These volumes do not use
SeaweedFS: in a cluster of replicated volumes only, `blockmaster` runs without `--workspace-rpc` and opens no filer
connection.
## One engine, two durability profiles
In a standalone setup the guest runs on the holder's host: remote guests are not supported in v1.1.x. The Kubernetes
CSI driver (alpha) attaches a volume to a pod on another node.
Agent workspaces are the focus. The same block engine (write-ahead log and extent, NVMe/TCP and iSCSI frontends,
blockmaster's epochs) also runs replicated volumes, for workloads that need copies on other hosts before `fsync`
completes (`sync-quorum`, `sync-all`).
| | Checkpointed volume | Replicated volume (preview) |
|---|---|---|
| Built for | Agent workspaces: many independent, portable disks | Workloads that need online copies on other hosts |
| When `fsync` completes | Once the data is on the host's local disk | With `sync-quorum` or `sync-all`, once a quorum or every replica has it (the default `best-effort` waits for none) |
| After a host is lost | An operator's forced move continues from the last checkpoint in SeaweedFS | With `--cluster-spec` and the lifecycle loop enabled (`--lifecycle-product-loop-interval`, off by default), blockmaster fails a `sync-quorum` or `sync-all` volume over to a replica when its fencing round decides; the operator then starts the guest on the new primary's host (no path failover in the guest). `best-effort` is not failed over automatically; the operator's forced failover may lose the last acknowledged writes |
| Snapshots, restore, moves | Yes | Not yet: the two profiles cannot be combined in v1.1.x |
| Status in v1.1.x | Supported | Preview, with [known limits](docs/releases/replicated-volumes-preview.md) |
The two biggest limits of the preview: a replica that falls behind the retained log needs a manual re-add, and a
primary cut off from blockmaster is not stopped by a lease, so it may serve stale reads and, under `best-effort`,
accept writes that are later lost. Do not use replicated volumes for data you cannot lose.
A workload chooses the durability it needs: a checkpointed workspace does not pay for synchronous replicas, and a
replicated volume does not wait for checkpoints.
More: [agent workspace design](docs/design/agent-workspace-design.md), [volume lifecycle](docs/volume-lifecycle.md),
the [core design](docs/design/block-design.md), and the [TLA+ specifications](docs/spec/README.md) of the
protocols where a bug would lose data.
## Performance
@@ -105,68 +113,56 @@ slower); `fsync` latency and `fsync`-bound work are 1.3 to 1.5 times local. Thes
loopback, median of 3: measurements, not SLOs. Every number and how it was measured, with the build where it was
recorded: [workspace measurements](docs/workspace-measurements.md).
## Quick start
## Quick start, explained
A trial on a disposable Linux host, not for data you keep. You need `nvme-cli`, `sudo`, and SeaweedFS's `weed`
binary, tested with SeaweedFS 4.53 (from its [release page](https://github.com/seaweedfs/seaweedfs/releases/tag/4.53),
asset `linux_amd64.tar.gz`, which holds the one `weed` binary).
A trial of the checkpointed mode on a disposable Linux host, not for data you keep. You need `nvme-cli`, `sudo` for
the connect step, and SeaweedFS's `weed` binary, tested with SeaweedFS 4.53 (from its
[release page](https://github.com/seaweedfs/seaweedfs/releases/tag/4.53), asset `linux_amd64.tar.gz`, which holds the
one `weed` binary).
```bash
TAG=v1.1.1
TAG=v1.1.2
curl -fsSLO https://github.com/seaweedfs/seaweed-block/releases/download/$TAG/sw-block-$TAG-linux-amd64.tar.gz
curl -fsSLO https://github.com/seaweedfs/seaweed-block/releases/download/$TAG/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS && tar -xzf sw-block-$TAG-linux-amd64.tar.gz
export PATH="$PWD:$PATH" # so the sw-block commands that mini prints run as shown
./blockvolume --version # must print the tag's commit
# blockvolume keeps one lock per volume here, so only one live process serves a volume on a host:
sudo install -d -m 0755 -o root -g root /run/sw-block
sudo install -d -m 0755 -o "$USER" -g "$(id -gn)" /run/sw-block/locks
./sw-block mini --dir ./swb-mini --weed /path/to/weed
```
A failed start leaves `--dir` behind: start again with a new `--dir`, or on the same one with `--reuse`.
**What `mini` starts**, as the [standalone deployment](docs/standalone-deployment.md) describes:
- `weed mini`: a one-process SeaweedFS (master, volume server and filer) that holds the checkpointed chunks.
- `blockmaster`: the control plane.
- One `blockvolume`: volume `v1`, 256 MiB, as `walstore-chunk`, on loopback.
**What it shows today:**
- `mini` starts `weed mini`, `blockmaster` and one `blockvolume`: volume `v1`, 256 MiB, on loopback.
- It never runs `sudo` itself. It prints the `nvme connect` command that attaches `v1`, and the status, check and
snapshot commands. After the connect, `sudo nvme list` shows the disk's device (for example `/dev/nvme0n1`).
- Snapshots of `v1` work at once, through the `sw-block ops chunk snapshot` command it prints. A scheduled
`sched-<time>` snapshot also appears soon after the start. A restore into a new volume does not run inside `mini`
yet; use the standalone setup for it.
- To stop: unmount `v1`, run the `sudo nvme disconnect` that `mini` printed, then press Ctrl-C.
It prints every command before it runs it, and each process logs to `<dir>/<name>.log`. It needs no `sudo` to start,
and it never runs `sudo` itself.
**Next:**
- Other ways to install (the release image, a build from the tag): [operations manual](docs/operations-manual.md#1-install-the-binaries-and-units).
**What it prints for you:** the `nvme connect` command that attaches `v1`, its status URL, and the next commands
(snapshot, checks), each with the absolute paths of `sw-block` and `weed`. After the connect, `sudo nvme list` shows
the disk's device (for example `/dev/nvme0n1`). Snapshots of `v1` work at once, through the `sw-block ops chunk
snapshot` command it prints. A restore into a new volume does not run inside `mini` yet; use the standalone setup for
it. To stop: unmount `v1`, run the `sudo nvme disconnect` that `mini` printed, then press Ctrl-C. After a failed
start, it prints the `--reuse` command that starts again on the same `--dir`.
**From `mini` to a real deployment:**
| In `mini` | In a deployment |
|---|---|
| `weed mini` | Your SeaweedFS cluster: `weed master`, `weed volume` and `weed filer` |
| `blockmaster` | The `sw-blockmaster` systemd unit, its state in `/var/lib/sw-block-master` on its own filesystem ([why](docs/releases/v1.1.2.md#known-issue-blockmaster-restart-can-stall-on-a-busy-filesystem)) |
| `blockvolume` for `v1` | One `sw-blockvolume@<volume>` unit per volume, started with `sudo sw-block volume start` |
| The loopback trial | A cluster spec that names the hosts and the volumes' placements |
Next:
- Install, upgrade and run the services: [operations manual](docs/operations-manual.md#1-install-the-binaries-and-units).
- Services, restore and a second host: [standalone deployment](docs/standalone-deployment.md) and
[two hosts and a planned move](docs/operations-manual.md#appendix-b-two-hosts-and-a-planned-move).
- Kubernetes (alpha): [Kubernetes quick start](docs/quickstart-kubernetes.md), with v1.1.1. v1.1.0's generated pod
cannot start.
## How it works
- **Local execution.** `blockvolume` serves the guest's block device over NVMe/TCP or iSCSI on the same host. A write
lands in a local write-ahead log, and `fsync` completes once the data is on the host's disk. The log then drains
into a local extent.
- **Incremental persistence.** A checkpoint (a *cut* in the CLI and the manuals) uploads the volume's changed 4 MiB
chunks to SeaweedFS. It then advances the volume's HEAD root with a conditional update on its generation and epoch.
A snapshot names a root and shares chunks with the others, with no backing chain.
- **Recovery and mobility.**
- A restore makes a new volume that serves at once and fetches each chunk from the snapshot on first read.
- One `blockmaster` issues epochs and leases, and the holder of a checkpointed (single-replica) volume serves only
under its current lease.
- A planned move first seals the volume with a final checkpoint, then revokes the old holder, waits for its recorded
release, and grants the next epoch on the new host, which loads chunks on first read.
- The store refuses a HEAD update from a stale holder, even before that holder notices it was replaced.
<p align="center">
<img src="docs/assets/seaweed-block-hero.svg" alt="Write path: a microVM writes over NVMe/TCP or iSCSI to blockvolume, which completes write and fsync on its local WAL. Background path: a checkpoint uploads changed 4 MiB chunks to SeaweedFS and updates HEAD on generation and epoch; blockmaster issues epochs and leases; a stale holder's update is refused." width="100%">
</p>
More: [agent workspace design](docs/design/agent-workspace-design.md), [volume lifecycle](docs/volume-lifecycle.md),
and the [TLA+ specifications](docs/spec/README.md) of the protocols where a bug would lose data.
- Kubernetes (alpha): [Kubernetes quick start](docs/quickstart-kubernetes.md).
## Durability model
For the checkpointed mode:
| Level | Reached when | Where the data is | What it protects against |
|---|---|---|---|
| Local synced | the guest's `fsync` returns | the holder host's disk | a crash or restart of the processes on that host |
@@ -183,9 +179,12 @@ and the [TLA+ specifications](docs/spec/README.md) of the protocols where a bug
## Project status
| Capability | v1.1.x |
Seaweed Block v1.1.x is a **Beta**: a test release. "Supported" below means the configuration this Beta is built
and tested for; "Preview" has the stated limits. No production SLO is claimed.
| Capability | v1.1.x (Beta) |
|---|---|
| Local single-replica volumes (`walstore-chunk`) | Supported |
| Checkpointed local volumes (`walstore-chunk`) | Supported |
| NVMe/TCP and iSCSI | Supported; in a standalone setup the guest runs on the holder's host |
| Incremental checkpoints | Supported |
| Named snapshots and lazy restore into a new volume | Supported |
@@ -1,113 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="580" viewBox="0 0 1200 580" font-family="-apple-system, Segoe UI, Helvetica, Arial, sans-serif" role="img" aria-labelledby="title desc">
<title id="title">Seaweed Block: the write path and the background path</title>
<desc id="desc">Left, the write path: an agent sandbox or microVM writes to a plain virtio block disk; NVMe/TCP or iSCSI carries the request to blockvolume, which completes the write and fsync on its local WAL and acknowledges. A write does not wait on SeaweedFS, except that a restored volume fetches each chunk from its snapshot on its first read or write. Right, the background path: a cut (by default one scheduled snapshot a day; periodic cuts are optional) uploads only the changed 4 MiB chunks to your SeaweedFS and then updates the volume's HEAD root with a conditional update on generation and epoch. A snapshot names a root and shares its chunks; a restore makes a new volume that reads chunks on first use; a move lets another host take over at a higher epoch, and a stale holder's update is refused. Above both, blockmaster issues epochs and leases. The same core serves Kubernetes volumes through the CSI driver (alpha).</desc>
<style>
.bg { fill: #fcfcfb; }
.box { fill: #ffffff; stroke: #d6d5d0; stroke-width: 1.2; }
.panel { fill: #f3f2ef; }
.ink { fill: #0b0b0b; }
.ink2 { fill: #52514e; }
.sync { stroke: #2a78d6; }
.bgp { stroke: #eb6834; }
.ctl { stroke: #8a8984; }
.syncfill { fill: #2a78d6; }
.bgfill { fill: #eb6834; }
.ctlfill { fill: #8a8984; }
@media (prefers-color-scheme: dark) {
.bg { fill: #1a1a19; }
.box { fill: #262624; stroke: #45443f; }
.panel { fill: #211f1e; }
.ink { fill: #f0efec; }
.ink2 { fill: #c3c2b7; }
.sync { stroke: #3987e5; }
.bgp { stroke: #d95926; }
.ctl { stroke: #8f8e88; }
.syncfill { fill: #3987e5; }
.bgfill { fill: #d95926; }
.ctlfill { fill: #8f8e88; }
}
</style>
<defs>
<marker id="aS" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="syncfill" d="M0,0 L10,5 L0,10 z"/></marker>
<marker id="aB" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="bgfill" d="M0,0 L10,5 L0,10 z"/></marker>
<marker id="aC" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ctlfill" d="M0,0 L10,5 L0,10 z"/></marker>
</defs>
<rect class="bg" width="1200" height="580" rx="16"/>
<text class="ink" x="40" y="48" font-size="26" font-weight="700">Seaweed Block</text>
<text class="ink2" x="40" y="74" font-size="15">Writes complete on the host's local disk; snapshots, restore and moves go through your SeaweedFS in the background.</text>
<!-- blockmaster -->
<rect class="box" x="430" y="96" width="340" height="58" rx="10"/>
<text class="ink" x="600" y="120" font-size="15" font-weight="600" text-anchor="middle">blockmaster: the epoch authority</text>
<text class="ink2" x="600" y="141" font-size="12.5" text-anchor="middle">assigns each volume's holder · issues epochs and leases</text>
<!-- panels -->
<rect class="panel" x="30" y="176" width="560" height="340" rx="12"/>
<rect class="panel" x="610" y="176" width="560" height="340" rx="12"/>
<line class="sync" x1="50" y1="200" x2="74" y2="200" stroke-width="4" stroke-linecap="round"/>
<text class="ink" x="84" y="205" font-size="14" font-weight="700">WRITE PATH (synchronous)</text>
<line class="bgp" x1="630" y1="200" x2="654" y2="200" stroke-width="4" stroke-linecap="round" stroke-dasharray="7 5"/>
<text class="ink" x="664" y="205" font-size="14" font-weight="700">BACKGROUND PATH (cuts)</text>
<!-- write path chain -->
<rect class="box" x="60" y="222" width="270" height="52" rx="9"/>
<text class="ink" x="195" y="244" font-size="14" font-weight="600" text-anchor="middle">agent sandbox or microVM</text>
<text class="ink2" x="195" y="263" font-size="12" text-anchor="middle">a plain virtio block disk</text>
<line class="sync" x1="195" y1="274" x2="195" y2="296" stroke-width="2" marker-end="url(#aS)"/>
<rect class="box" x="60" y="298" width="270" height="40" rx="9"/>
<text class="ink" x="195" y="323" font-size="13.5" text-anchor="middle">NVMe/TCP or iSCSI</text>
<line class="sync" x1="195" y1="338" x2="195" y2="360" stroke-width="2" marker-end="url(#aS)"/>
<rect class="box" x="60" y="362" width="270" height="40" rx="9"/>
<text class="ink" x="195" y="387" font-size="13.5" font-weight="600" text-anchor="middle">blockvolume (one per volume)</text>
<line class="sync" x1="195" y1="402" x2="195" y2="424" stroke-width="2" marker-end="url(#aS)"/>
<rect class="box" x="60" y="426" width="270" height="52" rx="9"/>
<text class="ink" x="195" y="448" font-size="13.5" font-weight="600" text-anchor="middle">local WAL + extent</text>
<text class="ink2" x="195" y="467" font-size="12" text-anchor="middle">walstore, on the host's disk</text>
<!-- ack, on the left of the chain -->
<path class="sync" d="M60,452 H44 V248 H56" fill="none" stroke-width="2" marker-end="url(#aS)"/>
<text class="ink2" x="378" y="244" font-size="12.5">a write does not wait on</text>
<text class="ink2" x="378" y="262" font-size="12.5">SeaweedFS (a restored volume</text>
<text class="ink2" x="378" y="280" font-size="12.5">fetches each chunk</text>
<text class="ink2" x="378" y="298" font-size="12.5">on first read or write)</text>
<text class="ink" x="378" y="446" font-size="13" font-weight="600">ack (left arrow)</text>
<text class="ink2" x="378" y="464" font-size="12.5">write and fsync complete</text>
<text class="ink2" x="378" y="482" font-size="12.5">on the local WAL</text>
<!-- background chain -->
<rect class="box" x="640" y="222" width="290" height="52" rx="9"/>
<text class="ink" x="785" y="244" font-size="14" font-weight="600" text-anchor="middle">cut</text>
<text class="ink2" x="785" y="263" font-size="12" text-anchor="middle">daily snapshot by default; optional periodic cuts</text>
<line class="bgp" x1="785" y1="274" x2="785" y2="296" stroke-width="2" stroke-dasharray="6 4" marker-end="url(#aB)"/>
<rect class="box" x="640" y="298" width="290" height="40" rx="9"/>
<text class="ink" x="785" y="323" font-size="13.5" text-anchor="middle">only the changed 4 MiB chunks</text>
<line class="bgp" x1="785" y1="338" x2="785" y2="360" stroke-width="2" stroke-dasharray="6 4" marker-end="url(#aB)"/>
<rect class="box" x="640" y="362" width="290" height="40" rx="9"/>
<text class="ink" x="785" y="387" font-size="13.5" font-weight="600" text-anchor="middle">your SeaweedFS</text>
<line class="bgp" x1="785" y1="402" x2="785" y2="424" stroke-width="2" stroke-dasharray="6 4" marker-end="url(#aB)"/>
<rect class="box" x="640" y="426" width="290" height="52" rx="9"/>
<text class="ink" x="785" y="448" font-size="13.5" font-weight="600" text-anchor="middle">HEAD root (about 2 KB)</text>
<text class="ink2" x="785" y="467" font-size="12" text-anchor="middle">conditional update on {gen, epoch}</text>
<!-- background side notes -->
<text class="ink" x="948" y="244" font-size="13" font-weight="600">snapshot</text>
<text class="ink2" x="948" y="262" font-size="12">names a root; chunks are shared</text>
<text class="ink" x="948" y="300" font-size="13" font-weight="600">restore</text>
<text class="ink2" x="948" y="318" font-size="12">a new volume that reads the</text>
<text class="ink2" x="948" y="334" font-size="12">snapshot's chunks on first use</text>
<text class="ink" x="948" y="372" font-size="13" font-weight="600">move</text>
<text class="ink2" x="948" y="390" font-size="12">another host takes over at a</text>
<text class="ink2" x="948" y="406" font-size="12">higher epoch; a stale holder's</text>
<text class="ink2" x="948" y="422" font-size="12">HEAD update is refused</text>
<!-- blockvolume to cut -->
<path class="bgp" d="M330,392 H600 V248 H636" fill="none" stroke-width="2" stroke-dasharray="6 4" marker-end="url(#aB)"/>
<!-- control lines from blockmaster -->
<path class="ctl" d="M430,125 H352 V372 H334" fill="none" stroke-width="1.5" stroke-dasharray="2 4" marker-end="url(#aC)"/>
<text class="ink2" x="360" y="340" font-size="11.5">epoch, lease</text>
<path class="ctl" d="M720,154 V170 H1110 V478 H934" fill="none" stroke-width="1.5" stroke-dasharray="2 4" marker-end="url(#aC)"/>
<text class="ink2" x="1030" y="190" font-size="11.5">epoch fencing</text>
<!-- footer -->
<text class="ink2" x="40" y="548" font-size="13">The same core serves Kubernetes volumes through the CSI driver (iSCSI or NVMe/TCP; alpha).</text>
</svg>

Before

Width:  |  Height:  |  Size: 8.6 KiB

@@ -1,113 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1080" height="490" viewBox="0 0 1080 490" role="img" aria-labelledby="title description">
<title id="title">Seaweed Block: run locally, persist incrementally, resume anywhere</title>
<desc id="description">The Seaweed Block lifecycle in three steps. One, run locally: agent VMs on host A write to the host's local disk, where writes and fsync complete with no network round trip. Two, persist incrementally: checkpoints send only the changed 4 MiB chunks to your SeaweedFS in the background, and named snapshots share those chunks. Three, resume anywhere: host B restores a snapshot into a new volume, or takes a volume over in a planned move; it serves at once and fetches chunks on first read. Normal I/O to locally available data stays on the host; changed chunks go out at checkpoints, and a restored or moved volume fetches chunks on first read.</desc>
<defs>
<marker id="arrowTeal" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#187b67"/>
</marker>
</defs>
<rect width="1080" height="490" rx="20" fill="#f5f9f8"/>
<g font-family="Arial, Helvetica, sans-serif">
<text x="40" y="43" fill="#0f766e" font-size="15" font-weight="700" letter-spacing="2">SEAWEED BLOCK</text>
<text x="40" y="86" fill="#163832" font-size="32" font-weight="700">Run locally. Persist incrementally. Resume anywhere.</text>
<text x="40" y="118" fill="#48635e" font-size="18">Local-first block storage for AI agents</text>
<!-- step headers -->
<g font-size="20" font-weight="700" fill="#163832">
<circle cx="117" cy="160" r="13" fill="#187b67"/>
<text x="117" y="166" text-anchor="middle" fill="#fff" font-size="15">1</text>
<text x="138" y="167">Run locally</text>
<circle cx="424" cy="160" r="13" fill="#187b67"/>
<text x="424" y="166" text-anchor="middle" fill="#fff" font-size="15">2</text>
<text x="445" y="167">Persist incrementally</text>
<circle cx="805" cy="160" r="13" fill="#187b67"/>
<text x="805" y="166" text-anchor="middle" fill="#fff" font-size="15">3</text>
<text x="826" y="167">Resume anywhere</text>
</g>
<!-- 1. Host A: agents run on the local disk -->
<g>
<rect x="40" y="184" width="290" height="226" rx="14" fill="#fff" stroke="#cbded8"/>
<text x="58" y="208" fill="#75928e" font-size="11" font-weight="700" letter-spacing="1.5">HOST A</text>
<g fill="#eef6f3" stroke="#187b67" stroke-width="1.8">
<rect x="74" y="218" width="66" height="48" rx="8"/>
<rect x="152" y="218" width="66" height="48" rx="8"/>
<rect x="230" y="218" width="66" height="48" rx="8"/>
</g>
<g text-anchor="middle">
<g fill="#48635e" font-size="12">
<text x="107" y="237">agent</text>
<text x="185" y="237">agent</text>
<text x="263" y="237">agent</text>
</g>
<g fill="#163832" font-size="16" font-weight="700">
<text x="107" y="256">VM</text>
<text x="185" y="256">VM</text>
<text x="263" y="256">VM</text>
</g>
</g>
<g stroke="#187b67" stroke-width="2.2">
<path d="M107 268V294" marker-end="url(#arrowTeal)"/>
<path d="M185 268V294" marker-end="url(#arrowTeal)"/>
<path d="M263 268V294" marker-end="url(#arrowTeal)"/>
</g>
<rect x="75" y="300" width="220" height="36" rx="18" fill="#eef6f3" stroke="#187b67" stroke-width="1.5"/>
<text x="185" y="323" text-anchor="middle" fill="#163832" font-size="15" font-weight="700">the host's local disk</text>
<g text-anchor="middle" fill="#305c50" font-size="15">
<text x="185" y="366">writes and fsync complete here,</text>
<text x="185" y="387">with no network round trip</text>
</g>
</g>
<!-- host A to SeaweedFS: changed chunks, in the background -->
<path d="M334 300H424" stroke="#187b67" stroke-width="2.4" stroke-dasharray="7 5" marker-end="url(#arrowTeal)"/>
<g text-anchor="middle" fill="#266354" font-size="13">
<text x="380" y="276">only changed</text>
<text x="380" y="292">chunks</text>
<text x="380" y="320">in the</text>
<text x="380" y="336">background</text>
</g>
<!-- 2. SeaweedFS: checkpoints and snapshots -->
<g>
<rect x="430" y="184" width="220" height="226" rx="14" fill="#163e35"/>
<text x="540" y="218" text-anchor="middle" fill="#fff" font-size="20" font-weight="700">your SeaweedFS</text>
<rect x="452" y="238" width="176" height="42" rx="10" fill="#245446"/>
<text x="540" y="265" text-anchor="middle" fill="#fff" font-size="16" font-weight="700">checkpoints</text>
<rect x="452" y="292" width="176" height="42" rx="10" fill="#245446"/>
<text x="540" y="319" text-anchor="middle" fill="#fff" font-size="16" font-weight="700">named snapshots</text>
<g text-anchor="middle" fill="#cfe4dc" font-size="14">
<text x="540" y="366">sharing the same</text>
<text x="540" y="385">4 MiB chunks</text>
</g>
</g>
<!-- SeaweedFS to host B: restore or planned move -->
<path d="M654 300H744" stroke="#187b67" stroke-width="2.4" marker-end="url(#arrowTeal)"/>
<g text-anchor="middle" fill="#266354" font-size="13">
<text x="700" y="292">lazy restore</text>
<text x="700" y="320">or planned</text>
<text x="700" y="336">move</text>
</g>
<!-- 3. Host B: the workspace resumes -->
<g>
<rect x="750" y="184" width="290" height="226" rx="14" fill="#e4f5ee" stroke="#187b67" stroke-width="1.5"/>
<text x="768" y="208" fill="#75928e" font-size="11" font-weight="700" letter-spacing="1.5">HOST B</text>
<rect x="851" y="218" width="88" height="48" rx="8" fill="#fff" stroke="#187b67" stroke-width="1.8"/>
<text x="895" y="237" text-anchor="middle" fill="#48635e" font-size="12">agent</text>
<text x="895" y="256" text-anchor="middle" fill="#163832" font-size="16" font-weight="700">VM</text>
<path d="M895 268V294" stroke="#187b67" stroke-width="2.2" marker-end="url(#arrowTeal)"/>
<rect x="785" y="300" width="220" height="36" rx="18" fill="#fff" stroke="#187b67" stroke-width="1.5"/>
<text x="895" y="323" text-anchor="middle" fill="#163832" font-size="15" font-weight="700">the host's local disk</text>
<g text-anchor="middle" fill="#163832" font-size="15">
<text x="895" y="366">serves at once, and fetches</text>
<text x="895" y="387">chunks on first read</text>
</g>
</g>
<text x="540" y="446" text-anchor="middle" fill="#48635e" font-size="15">Normal I/O to locally available data stays on the host. Changed chunks go out at checkpoints,</text>
<text x="540" y="468" text-anchor="middle" fill="#48635e" font-size="15">and a restored or moved volume fetches chunks on first read.</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.8 KiB

@@ -0,0 +1,41 @@
<svg xmlns="http://www.w3.org/2000/svg" width="780" height="330" viewBox="0 0 780 330" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Checkpointed local block (supported)</title>
<desc id="d">The guest writes over NVMe/TCP or iSCSI to blockvolume on the same host, which completes write and fsync on its local write-ahead log and extent. In the background, checkpoints send the changed 4 MiB chunks to SeaweedFS (master, filer and volume servers), which also holds the HEAD records. blockmaster issues epochs and leases to blockvolume. Snapshots, restore and planned moves use the chunks in SeaweedFS.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#3987e5"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#c3c2b7"/></marker></defs>
<rect width="780" height="330" fill="#1a1a19"/>
<text x="16" y="26" font-size="15" font-weight="600" text-anchor="start" fill="#f0efec">Checkpointed local block (supported)</text>
<text x="16" y="44" font-size="12" font-weight="400" text-anchor="start" fill="#c3c2b7">Writes and fsync complete on the host; changed chunks go to SeaweedFS in the background.</text>
<rect x="16" y="62" width="400" height="250" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="28" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host</text>
<rect x="36" y="96" width="130" height="70" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="101.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">Guest</text>
<text x="101.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">VM, sandbox or</text>
<text x="101.0" y="151" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">container</text>
<rect x="236" y="96" width="160" height="70" rx="8" fill="#1f2a3a" stroke="#3987e5" stroke-width="1.5"/>
<text x="316.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="316.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">local WAL + extent</text>
<line x1="166" y1="131" x2="236" y2="131" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="201.0" y="124" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">NVMe/TCP</text>
<text x="201" y="148" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">or iSCSI</text>
<text x="316" y="190" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">write and fsync</text>
<text x="316" y="204" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">complete here</text>
<rect x="236" y="226" width="160" height="62" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="316.0" y="248" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">sw-block</text>
<text x="316.0" y="266" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">operator CLI</text>
<rect x="520" y="72" width="230" height="92" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="635.0" y="94" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">SeaweedFS</text>
<text x="635.0" y="112" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">weed master, filer, volume</text>
<text x="635.0" y="127" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">chunks and HEAD records</text>
<text x="635.0" y="142" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">snapshots share chunks</text>
<rect x="520" y="210" width="230" height="80" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="635.0" y="232" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockmaster</text>
<text x="635.0" y="250" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">epochs, leases, placement</text>
<text x="635.0" y="265" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">state on local files</text>
<line x1="396" y1="118" x2="520" y2="108" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<text x="458.0" y="101" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">changed 4 MiB chunks</text>
<text x="458" y="132" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">in the background</text>
<line x1="396" y1="150" x2="520" y2="238" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="448" y="214" font-size="11" font-weight="400" text-anchor="end" fill="#c3c2b7">heartbeat, lease</text>
<line x1="396" y1="262" x2="520" y2="262" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="458.0" y="255" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">control API</text>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

@@ -0,0 +1,41 @@
<svg xmlns="http://www.w3.org/2000/svg" width="780" height="330" viewBox="0 0 780 330" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Checkpointed local block (supported)</title>
<desc id="d">The guest writes over NVMe/TCP or iSCSI to blockvolume on the same host, which completes write and fsync on its local write-ahead log and extent. In the background, checkpoints send the changed 4 MiB chunks to SeaweedFS (master, filer and volume servers), which also holds the HEAD records. blockmaster issues epochs and leases to blockvolume. Snapshots, restore and planned moves use the chunks in SeaweedFS.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#2a78d6"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#52514e"/></marker></defs>
<rect width="780" height="330" fill="#fcfcfb"/>
<text x="16" y="26" font-size="15" font-weight="600" text-anchor="start" fill="#0b0b0b">Checkpointed local block (supported)</text>
<text x="16" y="44" font-size="12" font-weight="400" text-anchor="start" fill="#52514e">Writes and fsync complete on the host; changed chunks go to SeaweedFS in the background.</text>
<rect x="16" y="62" width="400" height="250" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="28" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host</text>
<rect x="36" y="96" width="130" height="70" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="101.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">Guest</text>
<text x="101.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">VM, sandbox or</text>
<text x="101.0" y="151" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">container</text>
<rect x="236" y="96" width="160" height="70" rx="8" fill="#e8f0fb" stroke="#2a78d6" stroke-width="1.5"/>
<text x="316.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="316.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">local WAL + extent</text>
<line x1="166" y1="131" x2="236" y2="131" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="201.0" y="124" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">NVMe/TCP</text>
<text x="201" y="148" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">or iSCSI</text>
<text x="316" y="190" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">write and fsync</text>
<text x="316" y="204" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">complete here</text>
<rect x="236" y="226" width="160" height="62" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="316.0" y="248" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">sw-block</text>
<text x="316.0" y="266" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">operator CLI</text>
<rect x="520" y="72" width="230" height="92" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="635.0" y="94" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">SeaweedFS</text>
<text x="635.0" y="112" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">weed master, filer, volume</text>
<text x="635.0" y="127" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">chunks and HEAD records</text>
<text x="635.0" y="142" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">snapshots share chunks</text>
<rect x="520" y="210" width="230" height="80" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="635.0" y="232" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockmaster</text>
<text x="635.0" y="250" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">epochs, leases, placement</text>
<text x="635.0" y="265" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">state on local files</text>
<line x1="396" y1="118" x2="520" y2="108" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<text x="458.0" y="101" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">changed 4 MiB chunks</text>
<text x="458" y="132" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">in the background</text>
<line x1="396" y1="150" x2="520" y2="238" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="448" y="214" font-size="11" font-weight="400" text-anchor="end" fill="#52514e">heartbeat, lease</text>
<line x1="396" y1="262" x2="520" y2="262" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="458.0" y="255" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">control API</text>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

@@ -0,0 +1,67 @@
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="420" viewBox="0 0 900 420" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Seaweed Block: block storage for SeaweedFS, in two modes</title>
<desc id="d">One blockmaster per cluster issues epochs and leases and decides failover; the sw-block CLI talks to it. Left, checkpointed local block (supported): on a host, the guest writes over NVMe/TCP or iSCSI to blockvolume, which completes write and fsync on its local write-ahead log and extent and checkpoints the changed 4 MiB chunks to SeaweedFS (master, volume servers and filer) in the background; blockmaster reads the HEAD records from the filer. Right, replicated network block (preview): the guest writes to the primary blockvolume, which sends every write to replica blockvolumes on other hosts; SeaweedFS is not used.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#3987e5"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#c3c2b7"/></marker></defs>
<rect width="900" height="420" fill="#1a1a19"/>
<text x="16" y="26" font-size="16" font-weight="600" text-anchor="start" fill="#f0efec">Block storage for SeaweedFS, in two modes</text>
<text x="16" y="45" font-size="12" font-weight="400" text-anchor="start" fill="#c3c2b7">One control plane; each volume is either checkpointed to SeaweedFS or replicated to other hosts.</text>
<rect x="330" y="62" width="240" height="62" rx="8" fill="#1f2a3a" stroke="#3987e5" stroke-width="1.5"/>
<text x="450.0" y="84" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockmaster</text>
<text x="450.0" y="102" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">epochs, leases, failover</text>
<rect x="640" y="62" width="150" height="62" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="715.0" y="84" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">sw-block</text>
<text x="715.0" y="102" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">operator CLI</text>
<line x1="640" y1="93" x2="570" y2="93" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="605.0" y="86" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">control API</text>
<text x="16" y="156" font-size="13" font-weight="600" text-anchor="start" fill="#f0efec">Checkpointed local block (supported)</text>
<rect x="16" y="166" width="410" height="120" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="28" y="186" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host</text>
<rect x="30" y="198" width="110" height="66" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="85.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">Guest</text>
<text x="85.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">VM, sandbox</text>
<rect x="200" y="198" width="200" height="66" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="300.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="300.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">WAL + extent</text>
<text x="300.0" y="253" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">fsync completes here</text>
<line x1="140" y1="231" x2="200" y2="231" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="170.0" y="224" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">NVMe/TCP</text>
<text x="170" y="248" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">or iSCSI</text>
<rect x="120" y="318" width="280" height="76" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="260.0" y="340" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">SeaweedFS</text>
<text x="260.0" y="358" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">weed master, volume, filer</text>
<text x="260.0" y="373" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">chunks and HEAD records</text>
<line x1="300" y1="264" x2="300" y2="318" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<text x="308" y="296" font-size="11" font-weight="400" text-anchor="start" fill="#c3c2b7">changed 4 MiB chunks</text>
<line x1="300" y1="198" x2="400" y2="124" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="330" y="166" font-size="11" font-weight="400" text-anchor="end" fill="#c3c2b7">lease</text>
<line x1="400" y1="340" x2="470" y2="124" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="455" y="150" font-size="11" font-weight="400" text-anchor="end" fill="#c3c2b7">HEAD records</text>
<text x="478" y="156" font-size="13" font-weight="600" text-anchor="start" fill="#f0efec">Replicated network block (preview)</text>
<rect x="478" y="166" width="406" height="120" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="490" y="186" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host A</text>
<rect x="492" y="198" width="110" height="66" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="547.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">Guest</text>
<text x="547.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">VM, container</text>
<rect x="662" y="198" width="200" height="66" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="762.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="762.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">primary</text>
<text x="762.0" y="253" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">local store</text>
<line x1="602" y1="231" x2="662" y2="231" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="632.0" y="224" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">NVMe/TCP</text>
<text x="632" y="248" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">or iSCSI</text>
<rect x="478" y="306" width="196" height="100" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="490" y="326" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host B</text>
<rect x="490" y="334" width="172" height="56" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="576.0" y="356" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="576.0" y="374" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">replica</text>
<rect x="688" y="306" width="196" height="100" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="700" y="326" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host C</text>
<rect x="700" y="334" width="172" height="56" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="786.0" y="356" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="786.0" y="374" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">replica</text>
<line x1="720" y1="264" x2="600" y2="334" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<text x="640" y="296" font-size="11" font-weight="400" text-anchor="end" fill="#c3c2b7">every write</text>
<line x1="780" y1="264" x2="786" y2="334" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="700" y1="198" x2="560" y2="124" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="600" y="140" font-size="11" font-weight="400" text-anchor="start" fill="#c3c2b7">epochs</text>
</svg>

After

Width:  |  Height:  |  Size: 8.1 KiB

@@ -0,0 +1,67 @@
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="420" viewBox="0 0 900 420" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Seaweed Block: block storage for SeaweedFS, in two modes</title>
<desc id="d">One blockmaster per cluster issues epochs and leases and decides failover; the sw-block CLI talks to it. Left, checkpointed local block (supported): on a host, the guest writes over NVMe/TCP or iSCSI to blockvolume, which completes write and fsync on its local write-ahead log and extent and checkpoints the changed 4 MiB chunks to SeaweedFS (master, volume servers and filer) in the background; blockmaster reads the HEAD records from the filer. Right, replicated network block (preview): the guest writes to the primary blockvolume, which sends every write to replica blockvolumes on other hosts; SeaweedFS is not used.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#2a78d6"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#52514e"/></marker></defs>
<rect width="900" height="420" fill="#fcfcfb"/>
<text x="16" y="26" font-size="16" font-weight="600" text-anchor="start" fill="#0b0b0b">Block storage for SeaweedFS, in two modes</text>
<text x="16" y="45" font-size="12" font-weight="400" text-anchor="start" fill="#52514e">One control plane; each volume is either checkpointed to SeaweedFS or replicated to other hosts.</text>
<rect x="330" y="62" width="240" height="62" rx="8" fill="#e8f0fb" stroke="#2a78d6" stroke-width="1.5"/>
<text x="450.0" y="84" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockmaster</text>
<text x="450.0" y="102" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">epochs, leases, failover</text>
<rect x="640" y="62" width="150" height="62" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="715.0" y="84" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">sw-block</text>
<text x="715.0" y="102" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">operator CLI</text>
<line x1="640" y1="93" x2="570" y2="93" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="605.0" y="86" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">control API</text>
<text x="16" y="156" font-size="13" font-weight="600" text-anchor="start" fill="#0b0b0b">Checkpointed local block (supported)</text>
<rect x="16" y="166" width="410" height="120" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="28" y="186" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host</text>
<rect x="30" y="198" width="110" height="66" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="85.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">Guest</text>
<text x="85.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">VM, sandbox</text>
<rect x="200" y="198" width="200" height="66" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="300.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="300.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">WAL + extent</text>
<text x="300.0" y="253" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">fsync completes here</text>
<line x1="140" y1="231" x2="200" y2="231" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="170.0" y="224" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">NVMe/TCP</text>
<text x="170" y="248" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">or iSCSI</text>
<rect x="120" y="318" width="280" height="76" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="260.0" y="340" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">SeaweedFS</text>
<text x="260.0" y="358" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">weed master, volume, filer</text>
<text x="260.0" y="373" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">chunks and HEAD records</text>
<line x1="300" y1="264" x2="300" y2="318" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<text x="308" y="296" font-size="11" font-weight="400" text-anchor="start" fill="#52514e">changed 4 MiB chunks</text>
<line x1="300" y1="198" x2="400" y2="124" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="330" y="166" font-size="11" font-weight="400" text-anchor="end" fill="#52514e">lease</text>
<line x1="400" y1="340" x2="470" y2="124" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)"/>
<text x="455" y="150" font-size="11" font-weight="400" text-anchor="end" fill="#52514e">HEAD records</text>
<text x="478" y="156" font-size="13" font-weight="600" text-anchor="start" fill="#0b0b0b">Replicated network block (preview)</text>
<rect x="478" y="166" width="406" height="120" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="490" y="186" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host A</text>
<rect x="492" y="198" width="110" height="66" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="547.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">Guest</text>
<text x="547.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">VM, container</text>
<rect x="662" y="198" width="200" height="66" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="762.0" y="220" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="762.0" y="238" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">primary</text>
<text x="762.0" y="253" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">local store</text>
<line x1="602" y1="231" x2="662" y2="231" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="632.0" y="224" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">NVMe/TCP</text>
<text x="632" y="248" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">or iSCSI</text>
<rect x="478" y="306" width="196" height="100" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="490" y="326" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host B</text>
<rect x="490" y="334" width="172" height="56" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="576.0" y="356" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="576.0" y="374" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">replica</text>
<rect x="688" y="306" width="196" height="100" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="700" y="326" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host C</text>
<rect x="700" y="334" width="172" height="56" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="786.0" y="356" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="786.0" y="374" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">replica</text>
<line x1="720" y1="264" x2="600" y2="334" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<text x="640" y="296" font-size="11" font-weight="400" text-anchor="end" fill="#52514e">every write</text>
<line x1="780" y1="264" x2="786" y2="334" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="700" y1="198" x2="560" y2="124" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="600" y="140" font-size="11" font-weight="400" text-anchor="start" fill="#52514e">epochs</text>
</svg>

After

Width:  |  Height:  |  Size: 8.1 KiB

@@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" width="780" height="330" viewBox="0 0 780 330" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Replicated network block (preview)</title>
<desc id="d">The guest writes over NVMe/TCP or iSCSI to the primary blockvolume on its host. The primary sends every write to replica blockvolumes on other hosts; with sync-quorum or sync-all, fsync completes once a quorum or every replica has it. Each replica keeps a local store. blockmaster issues epochs, decides failover and names the new primary. No SeaweedFS is involved and there are no snapshots, restore or moves in this mode yet.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#3987e5"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#c3c2b7"/></marker></defs>
<rect width="780" height="330" fill="#1a1a19"/>
<text x="16" y="26" font-size="15" font-weight="600" text-anchor="start" fill="#f0efec">Replicated network block (preview)</text>
<text x="16" y="44" font-size="12" font-weight="400" text-anchor="start" fill="#c3c2b7">Every write goes to the replicas; fsync waits for a quorum (sync-quorum), all (sync-all) or none (best-effort, the default).</text>
<rect x="16" y="62" width="400" height="140" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="28" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host A</text>
<rect x="36" y="96" width="130" height="70" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="101.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">Guest</text>
<text x="101.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">VM or container</text>
<rect x="236" y="96" width="160" height="70" rx="8" fill="#1f2a3a" stroke="#3987e5" stroke-width="1.5"/>
<text x="316.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="316.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">primary</text>
<text x="316.0" y="151" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">local store</text>
<line x1="166" y1="131" x2="236" y2="131" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="201.0" y="124" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">NVMe/TCP</text>
<text x="201" y="148" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">or iSCSI</text>
<rect x="520" y="62" width="240" height="110" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="532" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host B</text>
<rect x="540" y="92" width="200" height="62" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="640.0" y="114" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="640.0" y="132" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">replica, local store</text>
<rect x="520" y="186" width="240" height="110" rx="10" fill="#20201f" stroke="#5a5955" stroke-dasharray="4 3"/>
<text x="532" y="206" font-size="12" font-weight="600" text-anchor="start" fill="#c3c2b7">Host C</text>
<rect x="540" y="216" width="200" height="62" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="640.0" y="238" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockvolume</text>
<text x="640.0" y="256" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">replica, local store</text>
<line x1="396" y1="120" x2="540" y2="123" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<text x="468.0" y="112" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">every write</text>
<line x1="396" y1="150" x2="540" y2="245" stroke="#3987e5" stroke-width="1.6" marker-end="url(#a)"/>
<rect x="36" y="226" width="360" height="70" rx="8" fill="#242423" stroke="#5a5955" stroke-width="1.5"/>
<text x="216.0" y="248" font-size="13" font-weight="600" text-anchor="middle" fill="#f0efec">blockmaster</text>
<text x="216.0" y="266" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">epochs, failover: names the new primary</text>
<text x="216.0" y="281" font-size="11" font-weight="400" text-anchor="middle" fill="#c3c2b7">state on local files</text>
<line x1="316" y1="226" x2="316" y2="166" stroke="#c3c2b7" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="330" y="200" font-size="11" font-weight="400" text-anchor="start" fill="#c3c2b7">epochs</text>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

@@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" width="780" height="330" viewBox="0 0 780 330" role="img" aria-labelledby="t d" font-family="-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
<title id="t">Replicated network block (preview)</title>
<desc id="d">The guest writes over NVMe/TCP or iSCSI to the primary blockvolume on its host. The primary sends every write to replica blockvolumes on other hosts; with sync-quorum or sync-all, fsync completes once a quorum or every replica has it. Each replica keeps a local store. blockmaster issues epochs, decides failover and names the new primary. No SeaweedFS is involved and there are no snapshots, restore or moves in this mode yet.</desc>
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#2a78d6"/></marker><marker id="m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#52514e"/></marker></defs>
<rect width="780" height="330" fill="#fcfcfb"/>
<text x="16" y="26" font-size="15" font-weight="600" text-anchor="start" fill="#0b0b0b">Replicated network block (preview)</text>
<text x="16" y="44" font-size="12" font-weight="400" text-anchor="start" fill="#52514e">Every write goes to the replicas; fsync waits for a quorum (sync-quorum), all (sync-all) or none (best-effort, the default).</text>
<rect x="16" y="62" width="400" height="140" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="28" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host A</text>
<rect x="36" y="96" width="130" height="70" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="101.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">Guest</text>
<text x="101.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">VM or container</text>
<rect x="236" y="96" width="160" height="70" rx="8" fill="#e8f0fb" stroke="#2a78d6" stroke-width="1.5"/>
<text x="316.0" y="118" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="316.0" y="136" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">primary</text>
<text x="316.0" y="151" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">local store</text>
<line x1="166" y1="131" x2="236" y2="131" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)" marker-start="url(#a)"/>
<text x="201.0" y="124" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">NVMe/TCP</text>
<text x="201" y="148" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">or iSCSI</text>
<rect x="520" y="62" width="240" height="110" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="532" y="82" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host B</text>
<rect x="540" y="92" width="200" height="62" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="640.0" y="114" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="640.0" y="132" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">replica, local store</text>
<rect x="520" y="186" width="240" height="110" rx="10" fill="#f3f2ef" stroke="#b9b8b3" stroke-dasharray="4 3"/>
<text x="532" y="206" font-size="12" font-weight="600" text-anchor="start" fill="#52514e">Host C</text>
<rect x="540" y="216" width="200" height="62" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="640.0" y="238" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockvolume</text>
<text x="640.0" y="256" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">replica, local store</text>
<line x1="396" y1="120" x2="540" y2="123" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<text x="468.0" y="112" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">every write</text>
<line x1="396" y1="150" x2="540" y2="245" stroke="#2a78d6" stroke-width="1.6" marker-end="url(#a)"/>
<rect x="36" y="226" width="360" height="70" rx="8" fill="#ffffff" stroke="#b9b8b3" stroke-width="1.5"/>
<text x="216.0" y="248" font-size="13" font-weight="600" text-anchor="middle" fill="#0b0b0b">blockmaster</text>
<text x="216.0" y="266" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">epochs, failover: names the new primary</text>
<text x="216.0" y="281" font-size="11" font-weight="400" text-anchor="middle" fill="#52514e">state on local files</text>
<line x1="316" y1="226" x2="316" y2="166" stroke="#52514e" stroke-width="1.6" stroke-dasharray="5 4" marker-end="url(#m)" marker-start="url(#m)"/>
<text x="330" y="200" font-size="11" font-weight="400" text-anchor="start" fill="#52514e">epochs</text>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

@@ -1,110 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1080" height="640" viewBox="0 0 1080 640" role="img" aria-labelledby="title description">
<title id="title">Seaweed Block: local-speed execution, portable workspace state</title>
<desc id="description">Three ways to give an agent VM a disk. Local disk: all I/O stays on the host, so it is fast, but the state is tied to that host. Network block storage: I/O typically crosses the network to a remote volume, so the state outlives the host, but the network is in the I/O path. Seaweed Block: normal I/O to locally available data stays on the host's local disk, and changed chunks go to your SeaweedFS in the background, so it runs at near-local speed and the state outlives the host up to its last checkpoint. In SeaweedFS: incremental checkpoints of changed 4 MiB chunks, named snapshots with lazy restore, and planned moves fenced by epochs and leases.</desc>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#75928e"/>
</marker>
<marker id="arrowTeal" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#187b67"/>
</marker>
<marker id="arrowBlue" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#2676a3"/>
</marker>
<!-- a disk: 56 wide, 48 tall, drawn at its top-left -->
<g id="disk" stroke-width="2">
<path d="M0 8v32c0 4.4 12.5 8 28 8s28-3.6 28-8V8"/>
<path d="M0 24c0 4.4 12.5 8 28 8s28-3.6 28-8" fill="none"/>
<ellipse cx="28" cy="8" rx="28" ry="8"/>
</g>
<path id="check" d="M0 7l5 5 10-11" fill="none" stroke="#187b67" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/>
<path id="cross" d="M1 1l11 11M12 1L1 12" fill="none" stroke="#b45309" stroke-width="2.6" stroke-linecap="round"/>
</defs>
<rect width="1080" height="640" rx="20" fill="#f5f9f8"/>
<g font-family="Arial, Helvetica, sans-serif">
<text x="40" y="43" fill="#0f766e" font-size="15" font-weight="700" letter-spacing="2">SEAWEED BLOCK</text>
<text x="40" y="86" fill="#163832" font-size="32" font-weight="700">Local-speed execution. Portable workspace state.</text>
<text x="40" y="118" fill="#48635e" font-size="18">Three ways to give an agent VM its disk</text>
<!-- 1. Local disk: fast, but the state stays on one host -->
<g>
<rect x="40" y="140" width="320" height="300" rx="14" fill="#fff" stroke="#cbded8"/>
<text x="62" y="176" fill="#163832" font-size="22" font-weight="700">Local disk</text>
<rect x="60" y="192" width="280" height="92" rx="10" fill="#f5f9f8" stroke="#cbded8" stroke-dasharray="5 4"/>
<text x="72" y="208" fill="#75928e" font-size="11" font-weight="700" letter-spacing="1.5">HOST</text>
<rect x="78" y="216" width="84" height="54" rx="8" fill="#eef6f3" stroke="#187b67" stroke-width="1.8"/>
<text x="120" y="238" text-anchor="middle" fill="#48635e" font-size="12">agent</text>
<text x="120" y="257" text-anchor="middle" fill="#163832" font-size="17" font-weight="700">VM</text>
<path d="M168 243H246" stroke="#75928e" stroke-width="2.2" marker-end="url(#arrow)"/>
<text x="207" y="236" text-anchor="middle" fill="#48635e" font-size="13">all I/O</text>
<use href="#disk" x="262" y="219" fill="#fff" stroke="#48635e"/>
<rect x="80" y="318" width="240" height="36" rx="18" fill="#fff" stroke="#cbded8" stroke-dasharray="5 4"/>
<text x="200" y="341" text-anchor="middle" fill="#75928e" font-size="15">nothing leaves the host</text>
<use href="#check" x="62" y="381"/>
<text x="88" y="393" fill="#305c50" font-size="17">Local speed</text>
<use href="#cross" x="63" y="410"/>
<text x="88" y="421" fill="#305c50" font-size="17">State tied to one host</text>
</g>
<!-- 2. Network block storage: state off the host, network on every I/O -->
<g>
<rect x="380" y="140" width="320" height="300" rx="14" fill="#fff" stroke="#cbded8"/>
<text x="402" y="176" fill="#163832" font-size="22" font-weight="700">Network block storage</text>
<rect x="400" y="192" width="280" height="92" rx="10" fill="#f5f9f8" stroke="#cbded8" stroke-dasharray="5 4"/>
<text x="412" y="208" fill="#75928e" font-size="11" font-weight="700" letter-spacing="1.5">HOST</text>
<rect x="498" y="216" width="84" height="54" rx="8" fill="#eef6f3" stroke="#187b67" stroke-width="1.8"/>
<text x="540" y="238" text-anchor="middle" fill="#48635e" font-size="12">agent</text>
<text x="540" y="257" text-anchor="middle" fill="#163832" font-size="17" font-weight="700">VM</text>
<path d="M540 272V312" stroke="#2676a3" stroke-width="2.6" marker-end="url(#arrowBlue)"/>
<text x="552" y="295" fill="#2676a3" font-size="13">I/O, typically</text>
<text x="552" y="310" fill="#2676a3" font-size="13">over the network</text>
<rect x="440" y="318" width="200" height="36" rx="18" fill="#fff" stroke="#2676a3" stroke-width="1.5"/>
<text x="540" y="341" text-anchor="middle" fill="#163832" font-size="15" font-weight="700">remote volume</text>
<use href="#cross" x="403" y="382"/>
<text x="428" y="393" fill="#305c50" font-size="17">Network in the I/O path</text>
<use href="#check" x="402" y="409"/>
<text x="428" y="421" fill="#305c50" font-size="17">State lives off the host</text>
</g>
<!-- 3. Seaweed Block: local execution, background persistence -->
<g>
<rect x="720" y="140" width="320" height="300" rx="14" fill="#e4f5ee" stroke="#187b67" stroke-width="1.5"/>
<text x="742" y="176" fill="#163832" font-size="22" font-weight="700">Seaweed Block</text>
<rect x="740" y="192" width="280" height="92" rx="10" fill="#fff" stroke="#9cc8b9" stroke-dasharray="5 4"/>
<text x="752" y="208" fill="#75928e" font-size="11" font-weight="700" letter-spacing="1.5">HOST</text>
<rect x="758" y="216" width="84" height="54" rx="8" fill="#eef6f3" stroke="#187b67" stroke-width="1.8"/>
<text x="800" y="238" text-anchor="middle" fill="#48635e" font-size="12">agent</text>
<text x="800" y="257" text-anchor="middle" fill="#163832" font-size="17" font-weight="700">VM</text>
<path d="M848 243H926" stroke="#187b67" stroke-width="2.2" marker-end="url(#arrowTeal)"/>
<text x="887" y="236" text-anchor="middle" fill="#266354" font-size="13">local I/O</text>
<use href="#disk" x="942" y="219" fill="#fff" stroke="#187b67"/>
<path d="M970 270V312" stroke="#187b67" stroke-width="2.2" stroke-dasharray="6 4" marker-end="url(#arrowTeal)"/>
<text x="960" y="303" text-anchor="end" fill="#266354" font-size="13">changed chunks, in the background</text>
<rect x="780" y="318" width="236" height="36" rx="18" fill="#163e35"/>
<text x="898" y="341" text-anchor="middle" fill="#fff" font-size="15" font-weight="700">your SeaweedFS</text>
<use href="#check" x="742" y="372"/>
<text x="768" y="384" fill="#163832" font-size="17" font-weight="700">Near-local speed</text>
<use href="#check" x="742" y="398"/>
<text x="768" y="410" fill="#163832" font-size="17" font-weight="700">State outlives the host,</text>
<text x="768" y="430" fill="#163832" font-size="15">to its last checkpoint</text>
</g>
<!-- what lands in SeaweedFS -->
<path d="M880 440v26" stroke="#75928e" stroke-width="2" marker-end="url(#arrow)"/>
<rect x="40" y="470" width="1000" height="140" rx="16" fill="#163e35"/>
<text x="540" y="504" text-anchor="middle" fill="#fff" font-size="22" font-weight="700">In your SeaweedFS</text>
<g fill="#fff" font-size="19" font-weight="700" text-anchor="middle">
<text x="213" y="542">Incremental checkpoints</text>
<text x="540" y="542">Named snapshots</text>
<text x="867" y="542">Planned moves</text>
</g>
<path d="M376 523v34 M704 523v34" stroke="#497266"/>
<g fill="#cfe4dc" font-size="16" text-anchor="middle">
<text x="213" y="566">only the changed 4 MiB chunks</text>
<text x="540" y="566">lazy restore into a new volume</text>
<text x="867" y="566">fenced by epochs and leases</text>
</g>
<text x="540" y="595" text-anchor="middle" fill="#9cc8b9" font-size="14">A lost host loses only the writes since its last checkpoint.</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.4 KiB