- Zurück zur Übersicht: Deutsch Übersicht | Hub
The current binary starts all-in-one, be, proxy, cell-manager, and global-manager when that role's configuration is valid. A second all-in-one process can join the same cell. proxy dials the registered cell that contains a metadata call, ExecuteSql, or a user-key transaction, and fails closed otherwise. Those calls are not sent to [cluster] upstream. The disaggregated production topology is still a design target, not a deployment this repository runs. The 100B–10T+ range is a design model, not a measurement of this repository. Trillion-scale figures in arXiv:2610.32247v1 are Baidu production metrics, not results of this repository.
[Implementiert] means one metadbd --role all-in-one process in current source. It is not a multi-cell deployment. MetaDbEngine::new_single_node is an in-memory simulator with no disk and no Raft, not this process.
Im Einzelknotenmodus laufen GlobalManager, CellLocalManager, MetaCache, Proxy und das 1-Voter-OpenRaft-Speicher-Backend in einem einzigen Prozess. Auf ein separates KV-WAL wird verzichtet, da das CRC32C-gesicherte .raftlog bereits sequenzielle Absturzsicherheit garantiert.
[node]
node_id = 1
role = "all-in-one"
data_dir = "/var/lib/metadb"
grpc_listen_addr = "127.0.0.1:7800"
metrics_listen_addr = "127.0.0.1:9100"
[clock]
max_clock_drift_ms = 500
[storage]
memtable_size_bytes = 33554432 # 32 MiB
block_cache_bytes = 536870912 # 512 MiB (16-Shard-LRU-Cache)
mvcc_retention_ms = 5000 # 5 s In-Memory-MVCC-Zeitfenster
bloom_bits_per_key = 10
locality_tombstone_threshold = 128
locality_tombstone_ratio = 0.50
[sharding]
bootstrap_table_shards = true
shard_split_threshold_bytes = 4294967296 # 4 GiB
[security]
# Loopback development only. Literal 127.0.0.1. Remove this flag when you set shared_secret.
allow_unauthenticated = trueRust 1.100.0 (rust-toolchain.toml). all-in-one, be, proxy, cell-manager, and global-manager start when the configuration is valid. When [security.tls].mode is off, listeners are plaintext. tls and mtls are refused before listen. This process does not terminate TLS. See docs/designs/transport_security.md.
The [security] block above is the explicit loopback development opt-in. It is not a credential. grpc_listen_addr and metrics_listen_addr stay on the literal IP 127.0.0.1. The hostname localhost is not accepted for allow_unauthenticated. An empty secret without that flag does not start the process.
metadbd --config /etc/metadb/standalone.tomlTo require authorization: Bearer <secret> on metadata, transaction, control-plane, Raft transport, and GET /metrics, replace that [security] block. Do not leave allow_unauthenticated in the file. Both together are rejected. A whitespace-only shared_secret is rejected even if the flag remains. Peer Raft clients send the same token. metadb-ctl --auth-token (or METADB_AUTH_TOKEN) and metadbd --join / --cell-manager send that header.
[security]
shared_secret = "replace-with-a-long-random-string"[Implementiert] means in-process PID-boundary splits inside that same all-in-one process. It is not a multi-host topology. Jumbo isolation is a route flag and does not move peer shards.
Überschreitet ein Shard shard_split_threshold_bytes, teilt PolicyShardSplitter ihn strikt entlang einer group_key = PID-Grenze ([0x01][pid: 8B BE]), sodass (PID, "_attr_") und sämtliche Kind-Einträge gemeinsam auf demselben Shard verbleiben.
Stage 3 is a design target. The current binary does not deploy it.
metadbd starts --role all-in-one, be, proxy, cell-manager, and global-manager when that role's configuration is valid. proxy dials the registered cell that contains a metadata call, ExecuteSql, or a user-key transaction, and returns a placement error otherwise. Those calls are not sent to [cluster] upstream. CommitPrimary2pc, ApplyAuxBatch, ForwardRouter, and GetRoutes may still use that upstream. AllocateIdBlock is refused. This is not a production MetaCache of every shard and not a disaggregated production deployment.
A second metadbd --role all-in-one can join the same cell when --join or --cell-manager names the current leader and the data directory is fresh. That path is covered by crates/metadb-server/tests/join_existing_group.rs. The joiner is still an all-in-one process. It is not a role-trimmed backend, and the join does not create another cell. See Operations.
metadbd --role be hosts local Raft replicas. It is not a remote disk that a cell manager places a shard onto by itself. metadb-ctl raft scale-replicas calls ScaleShardReplicas and requires the requested voter count to already be registered in the cell. A fresh all-in-one cell has one node, so --target-voters 3 fails until those nodes exist. The constraints are in Operations.
100B – 10T+ is a design-model range: arithmetic for how a future multi-cell topology might be sized. It is not a record count this repository has stored. It is also not a Baidu production figure claimed as a result of rustfs/MetaDB. Baidu's published sizes, including the BOS2 figure of 1.848 trillion records in arXiv:2610.32247v1, are Baidu production metrics, not results of this repository.
Die Tabelle ist die vorgesehene Rollenaufteilung. Dieses Binary startet diese Rollennamen bei gültiger Konfiguration. Es übernimmt nicht die disaggregierten Produktionsaufgaben der Tabelle: ein Cell-Manager, der Shards auf andere Maschinen legt, oder ein Global-Manager als eigene Raft-Gruppe. proxy wählt die registrierte Zelle, die einen Metadatenaufruf, ExecuteSql oder eine Transaktion mit Benutzerschlüssel enthält, und schließt sonst fehl. Diese Wahl ist kein Produktions-MetaCache aller Shards. Die Jumbo-Isolation ist in diesem Baum ein Routenflag. Sie verschiebt keine Peer-Shards auf einen eigenen Host.
| Role | Design --role |
Intended responsibility |
|---|---|---|
| Global Manager | global-manager |
Would map coarse [start_key, end_key) intervals to CellId, allocate 65,536-ID blocks, and coordinate cross-Cell directory rename leases. |
| Cell Local Manager | cell-manager |
Would process BE heartbeats (20K–50K shards/Cell) and orchestrate PID splits and membership changes. |
Backend Storage (BE) |
be |
Would host Multi-Raft shard groups and the LSM engine on NVMe hosts. |
| Stateless Proxy | proxy |
Would embed MetaCache, compile the 20 SQL templates, and coordinate cross-shard 2PC. |
metadb-ctl cell register ruft RegisterCell auf. Ohne --start-key und --end-key sendet es [01, 04), das eine Standardzelle überlappt, und endet ungleich null. Mit diesen Schlüsseln bleibt die Zelle nur erhalten, wenn die Routen des Endpunkts diesen Bereich decken. Ein späterer Aufruf, den diese Zelle enthält, wird an den gespeicherten Endpunkt weitergeleitet.