docs: translate README and documentation to English

Also document the snapshot cleanup: older round snapshots are removed
during sync, and `cephmig cleanup` removes the rest after the cutover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 19:55:45 +01:00
1 parent 907d400765
commit b7d2a0687e
6 files changed
+655 -628

No files matched your search

+73 -73
View File
@@ -1,64 +1,64 @@
# Lokaler Millionentest mit Snapshots
# Local one-million-file test with snapshots
## Ergebnis vom 06./07.11.2026
## Result of 2026-11-06/07
**PASS**, abgeschlossen am 07.11.2026 um 01:58:57 Uhr MEZ. Der Job erreichte
`ready-for-cutover`. Die unabhängige Prüfung bestätigte den aktuellen Zielstand
und vier Snapshots: insgesamt **5.000.500 reguläre Dateipfade**, zusätzlich
Symlinks, Verzeichnisse, Besitzer, Rechte, ACLs, xattrs, Quotas und Snapshot-
Benutzermetadaten. Ein anderes Subvolume blieb mit 14.640 bestätigten
Schreibvorgängen beschreibbar.
**PASS**, completed on 2026-11-07 at 01:58:57 CET. The job reached
`ready-for-cutover`. The independent check confirmed the current target state
and four snapshots: a total of **5,000,500 regular file paths**, plus
symlinks, directories, owners, modes, ACLs, xattrs, quotas and snapshot user
metadata. Another subvolume stayed writable with 14,640 confirmed writes.
| Phase einschließlich interner Prüfungen | Dauer | Geschriebene Nutzdaten | MDS-Anfragen, beide Cluster |
| Phase including internal checks | Duration | Payload written | MDS requests, both clusters |
|---|---:|---:|---:|
| Erstabgleich, bestehender und neuer Snapshot | 5 h 01 min 11 s | 128.000.000 Byte | 40.451.000 |
| Änderungsabgleich | 1 h 12 min 13 s | 6.400.128 Byte | 16.875.108 |
| Finalisierung, unveränderte Quelle | 1 h 20 min 24 s | 0 Byte | 19.259.091 |
| Initial round, existing and new snapshot | 5 h 01 min 11 s | 128,000,000 bytes | 40,451,000 |
| Catch-up round | 1 h 12 min 13 s | 6,400,128 bytes | 16,875,108 |
| Finalization, unchanged source | 1 h 20 min 24 s | 0 bytes | 19,259,091 |
Die erste vollständige Kopie einschließlich abschließender Inventar- und
Metadatenarbeit dauerte rund 1 h 40 min; die erste vollständige Prüfung des
Live-Ziels danach etwa 1 h 21 min. Das gesamte Testszenario einschließlich
Datenerzeugung, Änderungen und unabhängiger Prüfung dauerte 9 h 04 min 37 s.
Maximal erfasster RSS des Go-Prozesses über die drei Phasen: 646,2 MiB.
Die Rohmesswerte stehen in [million-local.json](million-local.json).
The first full copy including the final inventory and metadata work took
about 1 h 40 min; the first full verification of the live target afterwards
about 1 h 21 min. The whole test scenario including data generation, changes
and independent verification took 9 h 04 min 37 s. Maximum sampled RSS of
the Go process across the three phases: 646.2 MiB. The raw measurements are
in [million-local.json](million-local.json).
Die vollständigen Metadatendurchläufe bleiben teuer: Selbst die Finalisierung
ohne Nutzdatenänderungen verursachte rund 19,3 Millionen MDS-Anfragen. Der
Prüfpfad ist derzeit seriell. Ceph meldete während des Laufs außerdem langsame
BlueStore-Operationen und einen hohen BlueFS-Anteil auf den kleinen Test-OSDs.
Die genauen Anteile von CPU und Datenträgerlatenz wurden nicht isoliert
profiliert. Es gab keine Prüfung der produktiven 2×25-Gbit-Verbindung.
Der Lauf belegt die geprüfte Datenkorrektheit im Labor; ein kurzer finaler
Schreibstopp für 200 Millionen Dateien ist damit noch nicht nachgewiesen.
Die Finalisierungsdauer enthält keinen Anwendungsneustart oder Client-Remount.
The full metadata passes remain expensive: even the finalization without any
payload changes caused about 19.3 million MDS requests. The verification
path is currently serial. During the run, Ceph also reported slow BlueStore
operations and a high BlueFS share on the small test OSDs. The exact shares
of CPU and disk latency were not profiled separately. The production
2×25 Gbit link was not tested. The run proves data correctness in the lab;
a short final write stop for 200 million files is not yet proven. The
finalization time does not include an application restart or client
remount.
Die automatische Bereinigung entfernte ausschließlich das Projekt
`cephmig-million` samt Testvolumes am 07.11.2026 gegen 02:03 Uhr MEZ.
Die Berichte blieben erhalten; danach waren rund 84 GiB Hostspeicher frei.
The automatic cleanup removed only the project `cephmig-million` and its
test volumes on 2026-11-07 at about 02:03 CET. The reports were kept;
afterwards about 84 GiB of host disk were free.
## Testaufbau
## Test setup
Der Test legt 1.000.000 Dateien mit je 128 Byte reproduzierbarem Inhalt an,
verteilt auf 1.000 Verzeichnisse. Dazu kommen 100 Hardlink-Namen und 100 Symlinks,
numerische Besitzer, POSIX-Zugriffs-/Default-ACLs, Benutzer-xattrs und Quotas.
The test creates 1,000,000 files of 128 bytes of reproducible content each,
spread over 1,000 directories. In addition there are 100 hardlink names and
100 symlinks, numeric owners, POSIX access and default ACLs, user xattrs and
quotas.
Ein vor der Migration angelegter Snapshot enthält den ursprünglichen Stand.
Nach dem Erstabgleich ändert der Anwendungsclient jeweils 1 % der Inhalte,
Dateinamen, Rechte/xattrs, löscht 1 % der Dateien und legt 1 % neue Dateien an.
Inhaltsänderungen behalten die ursprüngliche mtime. Danach folgen Änderungsabgleich
und Finalisierung mit gestopptem Testschreiber. Ein Schreiber in einem anderen
Subvolume läuft währenddessen weiter und bestätigt seine Schreibvorgänge mit fsync.
A snapshot taken before the migration holds the original state. After the
initial round, the application client changes 1 % each of the contents, file
names and modes/xattrs, deletes 1 % of the files and creates 1 % new files.
Content changes keep the original mtime. Then follow the catch-up round and
the finalization with the test writer stopped. Meanwhile, a writer in another
subvolume keeps running and confirms its writes with fsync.
Nach der Migration liest ein separater Python-libcephfs-Client den aktuellen
Zielstand und vier Ziel-Snapshots vollständig. Erwartete Inhalte und Metadaten
werden aus dem Testmodell berechnet. SQLite prüft auf Platte die bijektive
Zuordnung der Inodes zu Hardlink-Gruppen. Insgesamt sind 5.000.500 reguläre
Dateipfade sowie Symlinks, Verzeichnisse, ACLs, xattrs, Quotas und Snapshot-
Benutzermetadaten zu prüfen. Die Go-Migration prüft zusätzlich intern.
Ceph-interne Snapshot-IDs und ursprüngliche Erstellungszeitpunkte werden nicht
erhalten; diese bekannte Einschränkung bleibt bestehen.
After the migration, a separate Python libcephfs client reads the current
target state and four target snapshots in full. Expected contents and
metadata are computed from the test model. SQLite checks on disk that inodes
map bijectively to hardlink groups. In total, 5,000,500 regular file paths
as well as symlinks, directories, ACLs, xattrs, quotas and snapshot user
metadata are checked. The Go migration additionally verifies internally.
Ceph-internal snapshot IDs and original creation times are not preserved;
this known limitation remains.
## Start und Fortschritt
## Start and progress
```sh
make dev-million-start
@@ -66,35 +66,35 @@ make dev-million-status
docker compose -p cephmig-million -f dev/compose.yaml -f dev/compose.million.yaml logs -f benchmark
```
Das getrennte Compose-Projekt verwendet zwei dünn belegte 24-GiB-OSDs und
höchstens 10 GiB Container-RAM. Für den ersten Start sind 68 GiB freier
Hostspeicher vorgesehen: maximal 48 GiB OSDs plus 20 GiB Reserve. Die laufende
Prüfung stoppt weitere Schreibvorgänge bei weniger als 20 GiB Hostreserve,
3 GiB freiem Host-RAM oder 3 GiB freiem Ceph-Speicher je Cluster.
Images, bestehende Testcluster und deren Speicher kommen hinzu. Es werden keine
Kernel- oder FUSE-Mounts benötigt. Die Daemons laufen mit einem MDS-Cachelimit
von jeweils 768 MiB. Die Laufzeit hängt stark vom Datenträger und den anderen
Prozessen auf dem Host ab.
The separate Compose project uses two thinly provisioned 24 GiB OSDs and at
most 10 GiB of container RAM. The first start requires 68 GiB of free host
disk: at most 48 GiB for the OSDs plus a 20 GiB reserve. The running check
stops further writes when less than 20 GiB of host reserve, 3 GiB of free
host RAM or 3 GiB of free Ceph capacity per cluster remain. Images, existing
test clusters and their storage come on top. No kernel or FUSE mounts are
needed. The daemons run with an MDS cache limit of 768 MiB each. The runtime
depends heavily on the disk and the other processes on the host.
Der Treiber läuft als eigener Container weiter. Status, Protokolle, MDS-Zähler,
Laufzeiten und abgetasteter maximaler RSS des Go-Prozesses liegen unter
`.dev/million/main/`. Nur `result: PASS` bestätigt die vollständige Prüfung.
Erzeugung und abgeschlossene Prüfansichten haben Checkpoints; ein unterbrochener
Go-Abgleich verwendet das bestehende Migrationsjournal. Eine unterbrochene
Phase zählt nicht als verwertbare Laufzeitmessung. Die Testerzeugung läuft mit
acht Threads, der Kopierer mit acht Workern, die unabhängige Prüfung mit 16 Threads.
Queues und Datenpuffer sind begrenzt; Index und Inode-Zuordnung liegen auf Platte.
The driver keeps running as a container of its own. Status, logs, MDS
counters, durations and the sampled maximum RSS of the Go process are written
to `.dev/million/main/`. Only `result: PASS` confirms the complete check.
Generation and completed verification views have checkpoints; an interrupted
Go round uses the existing migration journal. An interrupted phase does not
count as a usable runtime measurement. Test generation runs with eight
threads, the copier with eight workers, the independent check with 16
threads. Queues and data buffers are bounded; index and inode mapping live on
disk.
## Bereinigung
## Cleanup
Nach erfolgreicher Prüfung Messwerte nach `docs/million-local.json` sichern
und ausschließlich dieses Testprojekt entfernen. Der Befehl verweigert die
Bereinigung ohne `PASS` und erfolgreichen Container-Exit:
After a successful check, save the measurements to `docs/million-local.json`
and remove only this test project. The command refuses to clean up without
`PASS` and a successful container exit:
```sh
make dev-million-finish
```
Die Berichte auf dem Host bleiben erhalten. Das Projekt `cephmig-dev` ist separat.
Ein lokaler Lauf ist kein Leistungsnachweis für 200 TB oder 200 Millionen Dateien.
MDS-Anfragen sind keine Messung physischer Datenträger-IOPS.
The reports on the host are kept. The project `cephmig-dev` is separate. A
local run is no performance proof for 200 TB or 200 million files. MDS
requests are not a measurement of physical disk IOPS.