Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 2 min read Research easyNovice

Consolidating Facebook storage infrastructure with Tectonic file system

Tectonic is Facebook's data-center-scale distributed file system that replaces a set of use-case-specific storage systems, each scaling to tens of petabytes, with exabyte-scale clusters serving an entire data center. It disaggregates file system metadata into independently scalable layers hash-partitioned over a shared key-value store, isolates performance across dozens of traffic groups rather than hundreds of applications, and uses a client-driven microservice architecture with tenant-specific client-side configuration to match specialized systems. Moving the data warehouse onto Tectonic cut its cluster count by 10x and freed stranded resources, with performance comparable to or better than the previous systems.

Related posts

  • Meta’s AI Storage Blueprint at Scale

    Meta Engineering mediumAdept

    Meta rebuilt its BLOB-storage stack on top of the Tectonic block layer to stop storage from stalling GPUs in AI training. The rebuild collapsed multi-layer metadata into a flat ZippyDB schema with O(1) path-to-block lookups, replaced the dataplane proxy with a fat client SDK that streams directly from Tectonic, and deployed regional stacks colocated with GPUs. Hot spots and spikes are absorbed by a distributed data cache in spare GPU-host memory (Owl, ~80% hit rate) and a read-plan metadata cache (1-2 ms). Tail latency is handled with hedged reads, and checkpoint egress spikes with client-side dynamic concurrency control. To cut multi-hour cross-region ingestion, storage is treated as a tiered cache: host memory and flash as L1/L2, regional flash as L3 with TTL/LRU eviction, HDD-backed global storage as the source of truth, plus an explicit prefetch() API for on-demand hydration.

  • Husky: Efficient compaction at Datadog scale

    Datadog Engineering hardMaster

    Husky, Datadog's observability event store layered over object storage, keeps query cost low by controlling fragment count and layout through streaming compaction. Writers flush small sorted fragments into time-bucketed tables. Compactors lazily run size-tiered k-way merges, waiting until a few dozen fragments are available, which cuts CPU and object-store API costs by an order of magnitude. Metadata is swapped atomically in FoundationDB. A custom columnar format with per-column headers and fixed-size row groups lets each compaction use one GET per input, saturate the CPU and run in bounded memory, and sort schemas let queries skip fragments using only their metadata.

  • Turso Cloud on AWS is now available for everybody

    Turso easyNovice

    Turso Cloud is now generally available on AWS, built on an S3-native architecture where every commit is made durable on S3 Express One Zone and local disks serve as a read cache. Two factors make object storage viable for an OLTP write-ahead log: massive multitenancy, which lets commits be batched across many databases, and S3 Express latency in the single-digit milliseconds, comparable to fsync on EBS. Because each database is just a SQLite file on an always-up multitenant server, there are no cold starts, and databases can move between servers as load shifts. Paid Fly.io customers may stay or migrate; free-tier databases are auto-migrated to mapped AWS regions starting March 21.

  • Husky: Exactly-once ingestion and multi-tenancy at scale

    Datadog Engineering hardMaster

    Husky, Datadog's columnar event store, achieves exactly-once ingestion and cost-efficient multi-tenancy by routing events deterministically to Kafka partition groups (shards), so deduplication only has to happen within a shard. Time-bounded, immutable Shard Placements are allocated per tenant by a Sharding Allocator that uses FoundationDB transactions to give every Shard Router node the same answer. An Autosharder resizes each tenant's shard count from byte-throughput metrics. Consistent hashing with wraparound and shard exclusions keeps placement churn minimal, and a balancer counters hotspots. Limiting how many tenants each writer handles also cuts the number of blob-storage files and compaction work.

  • Introducing Husky, Datadog’s third-generation event store

    Datadog Engineering mediumAdept

    Husky is Datadog's third-generation event store, an unbundled, schemaless, vectorized column store that separates compute from storage on top of S3 and a FoundationDB-backed metadata store. The first-gen Logs system broke down through multi-tenant cascading failures. The second gen fixed that with custom sharding but couldn't handle tenant bursts or new product needs, so ingestion was split into stateless Writers, LSM-style distributed Compactors and Readers that coordinate through a strictly serializable metadata store. Because query capacity is decoupled from ingestion, queries can burst across many Readers or be isolated by product or tenant, for example keeping automated monitor queries apart from human ones.

The quest for software engineering knowledge.

Look:
Layout: