Skip CNCF Incubating Runtime / Cloud Native Storage

Technology Guide

Longhorn

License: Apache-2.0

Longhorn Logo

Field Guide

Complete Guide

Longhorn is a distributed block storage system for Kubernetes, created at Rancher Labs and now a CNCF incubating project. It turns the local disks attached to worker nodes into replicated persistent volumes that pods consume through a standard CSI driver.

Each Longhorn volume has a dedicated microservice controller called the engine, implemented on top of a modified iSCSI target (longhorn-engine) that runs in a per-volume pod. The engine synchronously replicates writes to two or three replica pods, each of which stores the volume as a sparse file on a node’s local filesystem. Because every volume has its own engine process, a fault in one volume’s replicas cannot affect another. Snapshots are copy-on-write inside the engine; backups are incremental and uploaded to S3 or NFS; and volumes can be restored into another cluster from the same backup store, which is how disaster recovery and cross-cluster migration work.

Longhorn ships a web UI for volume, snapshot, and backup management, plus a ShareManager for ReadWriteMany volumes backed by NFS. It competes with Rook-Ceph, OpenEBS, and Portworx, and its niche is being simple to install and operate on small-to-medium clusters that want replicated block storage without running a full Ceph cluster.

CNCF Project

Cloud Native Computing Foundation

Accepted: 2019-10-11
Incubating: 2021-11-04

No articles found for Longhorn yet. Check back soon!