selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

ceph logo

Self-host ceph

v22.0.0

Object, block and file storage on one big cluster

ReleaseOpen SourceOther
dnf install --assumeyes centos-release-ceph-tentacle
Updatedlast week
LanguageC++
Setup difficultyAdvanced
Stars
17 210
CPU
1 thread minimum, 3 recommended per HDD OSD; 4 minimum, 6 recommended per NVMe SSD OSD
RAM
>= 4 GiB per OSD
Storage
1x storage drive per OSD in most cases
Ports
8443 (ceph-mgr web dashboard with SSL/TLS enabled (default)), 8080 (ceph-mgr web dashboard when SSL is disabled)
Requires
LVM2
Docker
quay.io/ceph/ceph
Dashboard landing page with cluster status, capacity and inventory cardsCluster utilization card: used capacity, IOPS, latency and throughputDetails card summarizing the cluster configurationStatus card with cluster health and alerts grouped by severityCapacity card showing used space against OSD warning and full thresholdsInventory card listing cluster assets with links to their pages

What is ceph?

ceph alternatives

Should you self-host ceph?

ceph scores 78/100 on selfhost.directory (how scoring works) and ranks #1 of 7 in Distributed Storage. It has 17 210 GitHub stars, +115 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Other-licensed and written mostly in C++.

Its closest alternative on selfhost.directory is swiftstack (66/100, 2 805 stars). ceph scores higher overall. See ceph vs swiftstack side by side.

Features

  • Block devices (RBD)
  • Container-based deployment and orchestration (cephadm)
  • Erasure Coding
  • iSCSI gateway
  • Multi-cluster federation
  • NFS exports
  • POSIX file system (CephFS)
  • RBD mirroring
  • Replication and self-healing
  • S3-compatible object storage
  • SMB file shares
  • Snapshots and clones
  • Unified object, block and file storage
  • Web management dashboard

ceph README

Ceph - a scalable distributed storage system

See https://ceph.com/ for current information about Ceph.

Status

OpenSSF Best Practices Issue Backporting

Contributing Code

How to install ceph

Install ceph with Linux

In CentOS Stream:

dnf search release-ceph
dnf install --assumeyes centos-release-ceph-tentacle
dnf install --assumeyes cephadm

In SUSE:

zypper install -y cephadm

Ceph packages are published for Debian/Ubuntu (APT) and RHEL-family (DNF); some distributions already ship up-to-date Ceph.

How to configure ceph

  • osd_crush_chooseleaf_typeCRUSH chooseleaf type; 0 keeps replicas on one host in single-host clusters.

    values: integer (0 for single host)

  • osd_memory_target_autotuneLets cephadm tune each OSD's memory target automatically.

    values: true | false

  • mgr/dashboard/ssltrueEnables or disables HTTPS for the dashboard; turning it off sends credentials unencrypted.

    values: true | false

  • mgr/dashboard/server_addrAddress the dashboard binds to on the active ceph-mgr.

    values: IPv4/IPv6 address

  • mgr/dashboard/server_port8080TCP port the dashboard listens on when SSL is disabled.

    values: TCP port

FAQ

What license is Ceph released under?

Most of it is dual-licensed LGPL 2.1 or 3.0 per the COPYING file. Bundled components use other free licenses (BSD 3-clause, Boost, Apache 2.0) and the docs are CC BY-SA 3.0.

How do I contribute?

Code, docs, testing and bug reports are all welcome. The contribute page explains the workflow and the developer guide covers the details.

Who uses Ceph?

Companies, cloud providers, universities and research institutions worldwide; use cases, case studies and an opt-in public telemetry dashboard show real deployments.

How does Ceph compare with proprietary or cloud storage?

It offers enterprise storage capabilities as free open-source software on hardware of your choosing, with no license fees or lock-in, on premises, in private clouds or next to public cloud.

Should I use replication or erasure coding?

Replicated pools are the simple, fast default. Erasure coding fits more data in less raw capacity (for example 4+2 or 6+3) but costs performance, especially on spinning disks and during recovery.

What is the minimum cluster size?

Testing works with a single monitor, manager and OSD. Production wants at least three monitors for quorum, two managers, and at least as many OSDs as copies per object.

What hardware do I need?

Commodity hardware with no buy-list. Plan for the OSD memory target (4 GiB per OSD by default), separate drives for the OS and OSD data, and at least 10 Gb/s links between hosts.

Does Ceph work with Kubernetes?

Yes. The docs recommend Rook for running Ceph in Kubernetes or attaching to an existing cluster, and the Ceph CSI driver provisions block and file volumes.

Is Ceph production ready?

Yes, organizations from research institutions to cloud providers run it in production. A new stable series ships yearly, each is supported for about 24 months, and point releases arrive every 4-6 weeks.

How do I try Ceph quickly?

Use cephadm to bootstrap a cluster on one host and then grow it host by host. The host needs Python 3, systemd, Podman or Docker, clock sync and LVM2.

What is Ceph?

An open-source distributed storage system giving object, block and file storage from one platform. It runs on ordinary hardware, copies data around the cluster, and recovers on its own when drives or nodes fail.

More in Distributed Storage

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…