talira

Longhorn

Cloud native distributed block storage for Kubernetes

open sourceApache-2.0self-hostablefree

Longhorn is distributed block storage for Kubernetes: it turns the disks on a cluster's nodes into replicated persistent volumes, with a dedicated storage controller per volume that synchronously replicates it across nodes, all orchestrated by Kubernetes itself. It takes incremental snapshots, backs volumes up to NFS or S3-compatible object storage on a schedule, restores them, and keeps disaster recovery volumes in another cluster to fail over to; ReadWriteMany volumes are served over NFS by a share manager. It has a web dashboard and a CLI, installs with kubectl, Helm or the Rancher app catalog, and upgrades without disrupting volumes. Originally developed by Rancher, it's a CNCF incubating project under Apache-2.0.

Ways to install

Problems it solves

  • persistent volumes for our bare-metal Kubernetes cluster that has no cloud block storage
  • replicate volume data across nodes so a pod can move when a node dies
  • use the local disks in our homelab Kubernetes nodes as shared storage
  • back up Kubernetes volumes to S3 or an NFS share on a schedule
  • keep a standby copy of our volumes in a second cluster and fail over to it
  • snapshot a volume before an upgrade and roll back if it breaks
  • ReadWriteMany volumes that several pods can mount at once
  • replicated storage without buying a SAN or running Ceph
  • a dashboard to see volume health, replicas and backups in the cluster
  • upgrade our storage layer without taking down the apps using it
  • storage for stateful apps on k3s or edge clusters with a few nodes

Features

  • synchronously replicated block volumes across nodes and data centers
  • a storage controller per volume, orchestrated by Kubernetes
  • thin-provisioned replicas
  • incremental snapshots
  • backups to NFSv4 or S3-compatible object storage with change block detection
  • recurring snapshot and backup schedules with retention
  • cross-cluster disaster recovery volumes
  • ReadWriteMany volumes through an NFS share manager
  • V1 (iSCSI) and V2 (SPDK) data engines
  • non-disruptive upgrades
View 2 more
  • web dashboard and longhornctl CLI
  • installs with kubectl, Helm or the Rancher app catalog

Limitations

  • Doesn't run on 32-bit ARM: supported architectures are AMD64 and ARM642

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Longhorn does.

  1. OpenEBS Kubernetes Storage Simplified
  2. Rook Storage Orchestration for Kubernetes
  3. Ceph The Future of Storage
  4. JuiceFS A distributed POSIX file system built on top of Redis and S3
  5. Google Cloud Filestore File storage that is highly scalable and secure.
  6. Azure Files Simple, secure, serverless cloud and AI file shares.

Compare Longhorn with the top 3