Ceph RBD
Pool expansion
Ceph redistributed existing data. The new OSD on worker-4 held 497 MiB.
Kubernetes & scaling
Ceph and Longhorn on CrownLabs, with a separate Ceph scaling test on AWS.
When worker-4 joined CrownLabs, Ceph still had 3 OSDs and Longhorn showed zero disks on the new worker. Here’s what changed after we enabled storage.
Pool expansion
Ceph redistributed existing data. The new OSD on worker-4 held 497 MiB.
Adding a replica
Longhorn added a copy of the same 1 GiB volume on worker-4. The volume size stayed the same.
| Measurement | CrownLabs · Loop-backed disks | AWS · Dedicated gp3 EBS disks |
|---|---|---|
| Raw capacity | 16 → 22 GiB | 150 → 200 GiB |
| RBD pool estimated available space | 4.5 → 6.1 GiB | 47 → 63 GiB |
| Data on the new OSD | 497 MiB | 345 MiB |
| Placement groups on the new OSD | 100 | 24 |
| Cluster placement groups after rebalancing | 121 active+clean | 33 active+clean |
Raw capacity sums the OSD sizes. The pool’s MAX AVAIL estimates how much more user data the pool can store under its placement and replication rules.
worker-1, worker-2, worker-3worker-1, worker-2, worker-3, worker-4worker-1 in both testsFrom a Kubernetes pod, fio wrote 4 KiB blocks at random spots in a 512 MiB file, one write at a time.
Each bar shows the middle result from three runs.
Each write is 4 KiB, so the IOPS and throughput bars have a similar shape.
CrownLabs Ceph used loop-backed disks. AWS Ceph used dedicated gp3 EBS volumes and different VMs. The AWS result shows how the deployed setup performed in that environment.
With four Longhorn replicas, median write IOPS and throughput fell by 13.4%, and median p99 latency rose by 17.0% in this workload.
Each Longhorn trial ran for 60 seconds from worker-1. The earlier CrownLabs Ceph baseline lists a 60-second runtime, and the later Ceph trials explicitly used --time_based.
| Metric | CrownLabs Ceph RBD · 3 OSDs | CrownLabs Ceph RBD · 4 OSDs | CrownLabs Longhorn · 3 replicas | CrownLabs Longhorn · 4 replicas | AWS Ceph RBD · 3 OSDs | AWS Ceph RBD · 4 OSDs |
|---|---|---|---|---|---|---|
| Write IOPS | 148.96 | 117.73 | 397.36 | 344.18 | 230.02 | 207.81 |
| Write throughput | 0.582 MiB/s | 0.460 MiB/s | 1.552 MiB/s | 1.344 MiB/s | 0.899 MiB/s | 0.812 MiB/s |
| p99 write completion latency | 13.17 ms | 27.92 ms | 5.01 ms | 5.87 ms | 8.29 ms | 9.90 ms |
| Trial | Write IOPS | Write MiB/s | p99 (ms) |
|---|---|---|---|
| 1 | 149.94 | 0.586 | 13.17 |
| 2 | 148.96 | 0.582 | 13.17 |
| 3 | 138.32 | 0.540 | 17.69 |
With four OSDs, the same client on worker-1 completed fewer writes per second and saw higher p99 latency in this workload.
| Metric | 3 OSDs | 4 OSDs | Change |
|---|---|---|---|
| Write IOPS | 230.02 | 207.81 | −9.7% |
| Write throughput | 0.899 MiB/s | 0.812 MiB/s | −9.7% |
| p99 write completion latency | 8.29 ms | 9.90 ms | +19.4% |
| OSDs | Trial | Write IOPS | Write MiB/s | p99 (ms) |
|---|---|---|---|---|
| 3 | 1 | 230.02 | 0.899 | 8.29 |
| 3 | 2 | 217.49 | 0.850 | 9.11 |
| 3 | 3 | 236.00 | 0.922 | 7.90 |
| 4 | 1 | 207.81 | 0.812 | 10.03 |
| 4 | 2 | 207.95 | 0.812 | 9.76 |
| 4 | 3 | 205.23 | 0.802 | 9.90 |
We repeated the same fio workload after adding the fourth OSD. Both runs started with clean placement groups. The results show a slowdown in these trials, and the cause remains open.
Start with the three-worker Ceph cluster. Keep the pool replication settings and RGW replica count fixed. Use the same units for raw capacity at every stage.
| Measurement | Baseline | Worker added | Disk added |
|---|