Skip to content

Storage model

LoonFS is architected around S3-compatible storage as the durable store, with a fast SSD and memory cache for acceleration. In embedded mode, LoonFS coordinates transactions directly with the object store, and compaction and indexing must be explicitly triggered. In server mode, the LoonFS server serializes multiple writers into a single batched commit stream and runs background compaction and indexing.

LoonFS is natively built on top of object storage, which stores both content and metadata. By default, both use the same object-store bucket.

Each namespace head.json points to a content store. File revisions refer to already-durable immutable objects by a random content ID, along with the byte length and integrity checksums.

Namespace metadata and content objects use separate layouts:

The two random shard levels spread content across 65,536 leaf prefixes to avoid same-prefix rate limits in hot namespaces.