# sodani/ceph architecture

> Architecture diagram of the GitHub repository sodani/ceph, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sodani/ceph
- Repository: https://github.com/sodani/ceph

## Overview

Ceph is a scalable distributed storage system. Its repository contains storage daemons, client libraries, management services, and supporting protocols. A representative internal storage path is SeaStore transaction management with LBA mapping; the source index shows that transaction manager references the LBA node implementation. The map also preserves major runtime areas visible in the tree, including CephFS, RBD, RGW, deployment, and monitoring. This is a broad repository map, not a complete call graph: most implementation files were not sampled, so unsupported connections are omitted.

Main entry points: [`src/librbd/AsioEngine.cc`](https://github.com/sodani/ceph/blob/main/src/librbd/AsioEngine.cc) (RBD async engine), [`src/crimson/os/seastore/lba/lba_btree_node.h`](https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/lba/lba_btree_node.h) (LBA tree nodes), [`src/include/Context.h`](https://github.com/sodani/ceph/blob/main/src/include/Context.h) (Async completion), [`src/auth/cephx/CephxSessionHandler.cc`](https://github.com/sodani/ceph/blob/main/src/auth/cephx/CephxSessionHandler.cc) (CephX sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Client interfaces"]
  node_rados["RADOS client<br/>[RadosClient.cc]"]
  node_rbd["RBD async engine<br/>[AsioEngine.cc]"]
  node_cephfs["CephFS client<br/>[Client.cc]"]
  node_gateway["RADOS Gateway"]
end

subgraph group_cluster["Cluster services"]
  node_monitor["Monitor client<br/>[MonClient.cc]"]
  node_manager["Manager client<br/>[MgrClient.cc]"]
  node_mds["Metadata server<br/>[Server.cc]"]
  node_osd["OSD daemon<br/>[ceph_osd.cc]"]
  node_auth["CephX sessions"]
end

subgraph group_storage["Storage engines"]
  node_bluestore[("BlueStore allocator")]
  node_seastore_tx["SeaStore transactions"]
  node_lba_manager["LBA manager"]
  node_lba_nodes["LBA tree nodes<br/>[lba_btree_node.h]"]
end

subgraph group_operations["Operations"]
  node_volume["Volume provisioning<br/>[main.py]"]
  node_cephadm["Daemon orchestration<br/>[cephadm.py]"]
  node_container_engines["Container engines"]
  node_admin_context["Admin context<br/>[context.py]"]
  node_admin_logging["Admin logging<br/>[logging.py]"]
  node_dashboard["Manager dashboard"]
  node_node_proxy["Node proxy<br/>[main.py]"]
end

subgraph group_shared["Shared runtime"]
  node_messages["Message model<br/>[Message.h]"]
  node_completion["Async completion<br/>[Context.h]"]
end

node_application(("Storage clients"))

node_rbd -->|"completes callbacks"| node_completion
node_rbd -->|"adapts client"| node_rados
node_auth -->|"signs messages"| node_messages
node_seastore_tx -->|"uses mappings"| node_lba_nodes
node_lba_manager -->|"manages tree"| node_lba_nodes
node_bluestore -.->|"uses callbacks"| node_completion

click node_rados "https://github.com/sodani/ceph/blob/main/src/librados/RadosClient.cc"
click node_rbd "https://github.com/sodani/ceph/blob/main/src/librbd/AsioEngine.cc"
click node_cephfs "https://github.com/sodani/ceph/blob/main/src/client/Client.cc"
click node_gateway "https://github.com/sodani/ceph/tree/main/src/rgw"
click node_monitor "https://github.com/sodani/ceph/blob/main/src/mon/MonClient.cc"
click node_manager "https://github.com/sodani/ceph/blob/main/src/mgr/MgrClient.cc"
click node_mds "https://github.com/sodani/ceph/blob/main/src/mds/Server.cc"
click node_osd "https://github.com/sodani/ceph/blob/main/src/ceph_osd.cc"
click node_auth "https://github.com/sodani/ceph/blob/main/src/auth/cephx/CephxSessionHandler.cc"
click node_messages "https://github.com/sodani/ceph/blob/main/src/msg/Message.h"
click node_completion "https://github.com/sodani/ceph/blob/main/src/include/Context.h"
click node_bluestore "https://github.com/sodani/ceph/blob/main/src/os/bluestore/BitmapFreelistManager.cc"
click node_seastore_tx "https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/transaction_manager.cc"
click node_lba_manager "https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/lba/btree_lba_manager.cc"
click node_lba_nodes "https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/lba/lba_btree_node.h"
click node_volume "https://github.com/sodani/ceph/blob/main/src/ceph-volume/ceph_volume/main.py"
click node_cephadm "https://github.com/sodani/ceph/blob/main/src/cephadm/cephadm.py"
click node_container_engines "https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/container_engines.py"
click node_admin_context "https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/context.py"
click node_admin_logging "https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/logging.py"
click node_dashboard "https://github.com/sodani/ceph/blob/main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts"
click node_node_proxy "https://github.com/sodani/ceph/blob/main/src/ceph-node-proxy/ceph_node_proxy/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rados,node_rbd,node_cephfs,node_gateway toneBlue
class node_monitor,node_manager,node_mds,node_osd,node_auth,node_application toneAmber
class node_bluestore,node_seastore_tx,node_lba_manager,node_lba_nodes toneMint
class node_volume,node_cephadm,node_container_engines,node_admin_context,node_admin_logging,node_dashboard,node_node_proxy toneRose
class node_messages,node_completion toneIndigo
```

## Components

### Client interfaces

- [RADOS client](https://github.com/sodani/ceph/blob/main/src/librados/RadosClient.cc): `src/librados/RadosClient.cc`
- [RBD async engine](https://github.com/sodani/ceph/blob/main/src/librbd/AsioEngine.cc): `src/librbd/AsioEngine.cc`
- [CephFS client](https://github.com/sodani/ceph/blob/main/src/client/Client.cc): `src/client/Client.cc`
- [RADOS Gateway](https://github.com/sodani/ceph/tree/main/src/rgw): `src/rgw`

### Cluster services

- [Monitor client](https://github.com/sodani/ceph/blob/main/src/mon/MonClient.cc): `src/mon/MonClient.cc`
- [Manager client](https://github.com/sodani/ceph/blob/main/src/mgr/MgrClient.cc): `src/mgr/MgrClient.cc`
- [Metadata server](https://github.com/sodani/ceph/blob/main/src/mds/Server.cc): `src/mds/Server.cc`
- [OSD daemon](https://github.com/sodani/ceph/blob/main/src/ceph_osd.cc): `src/ceph_osd.cc`
- [CephX sessions](https://github.com/sodani/ceph/blob/main/src/auth/cephx/CephxSessionHandler.cc): `src/auth/cephx/CephxSessionHandler.cc`

### Storage engines

- [BlueStore allocator](https://github.com/sodani/ceph/blob/main/src/os/bluestore/BitmapFreelistManager.cc): `src/os/bluestore/BitmapFreelistManager.cc`
- [SeaStore transactions](https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/transaction_manager.cc): `src/crimson/os/seastore/transaction_manager.cc`
- [LBA manager](https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/lba/btree_lba_manager.cc): `src/crimson/os/seastore/lba/btree_lba_manager.cc`
- [LBA tree nodes](https://github.com/sodani/ceph/blob/main/src/crimson/os/seastore/lba/lba_btree_node.h): `src/crimson/os/seastore/lba/lba_btree_node.h`

### Operations

- [Volume provisioning](https://github.com/sodani/ceph/blob/main/src/ceph-volume/ceph_volume/main.py): `src/ceph-volume/ceph_volume/main.py`
- [Daemon orchestration](https://github.com/sodani/ceph/blob/main/src/cephadm/cephadm.py): `src/cephadm/cephadm.py`
- [Container engines](https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/container_engines.py): `src/cephadm/cephadmlib/container_engines.py`
- [Admin context](https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/context.py): `src/cephadm/cephadmlib/context.py`
- [Admin logging](https://github.com/sodani/ceph/blob/main/src/cephadm/cephadmlib/logging.py): `src/cephadm/cephadmlib/logging.py`
- [Manager dashboard](https://github.com/sodani/ceph/blob/main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts): `src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts`
- [Node proxy](https://github.com/sodani/ceph/blob/main/src/ceph-node-proxy/ceph_node_proxy/main.py): `src/ceph-node-proxy/ceph_node_proxy/main.py`

### Shared runtime

- [Message model](https://github.com/sodani/ceph/blob/main/src/msg/Message.h): `src/msg/Message.h`
- [Async completion](https://github.com/sodani/ceph/blob/main/src/include/Context.h): `src/include/Context.h`

### Other components

- **Storage clients**

## Connections

- RBD async engine → Async completion: completes callbacks (evidence: `src/librbd/AsioEngine.cc`)
- RBD async engine → RADOS client: adapts client (evidence: `src/librbd/AsioEngine.cc`)
- CephX sessions → Message model: signs messages (evidence: `src/auth/cephx/CephxSessionHandler.cc`)
- SeaStore transactions → LBA tree nodes: uses mappings (evidence: `src/crimson/os/seastore/transaction_manager.cc`)
- LBA manager → LBA tree nodes: manages tree (evidence: `src/crimson/os/seastore/lba/btree_lba_manager.cc`)
- BlueStore allocator → Async completion: uses callbacks
