YDB (Yandex Database) — distributed SQL concept page. Multi-model: tables + KV + Kafka-like topics. Tablets как Bigtable (data shards с leader+followers через Paxos-like), Hive scheduler управляет placement и auto-split, DTX coordinator делает cross-tablet транзакции через deterministic ordering (не классический 2PC, не TrueTime). Distributed Storage layer — proprietary BlobStorage с erasure coding (1.5x overhead vs 3x replication) распределён по 3 DC. Три сценария: cross-tablet ACID транзакция через DTX, auto-split tablet на hot key (orders), geo-replication при падении DC2. Два ADR: YDB vs Spanner vs CockroachDB (когда что выбрать), и почему YDB использует свой DTX-протокол вместо классического 2PC.
YDB partitions row-oriented tables by primary-key ranges into DataShard tablets. Tablets are persistent actors whose state is stored in distributed storage and can restart on another dynamic node. A multi-tablet transaction is a real distributed transaction; it is not made non-atomic merely because several shards participate.
Compute/tablet placement and distributed-storage redundancy are separate layers. block-4-2 is a single-data-center erasure-coded mode with rack requirements; mirror-3-dc is the multi-data-center mode. Stretching one block-4-2 group over three data centers contradicts the documented failure model.
block-4-2 is documented for one data center with rack failure domains, while mirror-3-dc spans three data centers.Single-DataShard transaction. Point-key work resolves one tablet leader and commits through its durable tablet state.
Distributed DataShard transaction. Both shards participate in one coordinated serializable outcome; partial local success is not exposed as commit.
Tablet restart and placement. A tablet leader can restart elsewhere because identity and persistent state are not tied to one dynamic node.
Storage mode and failure domains. One deployment selects a topology whose data-center and rack assumptions match its failure objective.
Hot range split and verify. A hot primary-key range triggers control-plane work; success is measured after split and movement.
block-4-2 как один режим через три DC; для этого failure realm используется mirror-3-dc.Введите числа или выберите пресет