mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
seaweed-block: README: an overview figure of both modes at the top
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8b8ddf7db
commit
aa12233a31
3 files changed
+139
No files matched your search
@@ -11,6 +11,11 @@ Seaweed Block gives a VM, sandbox or container a plain block device over NVMe/TC
|
||||
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.
|
||||
|
||||
<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-explained)** · [Two modes](#two-modes) · [Architecture](#architecture) ·
|
||||
[Project status](#project-status) · [Documentation](#documentation)
|
||||
|
||||
|
||||
@@ -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 |
Reference in new issue
Block a user