Build Log / Entry 002 / Platform

A Ceph pool is as fast as its slowest drive.

Mixed SSD and NVMe drives pushed our Ceph latency past 500 ms. Three all-NVMe nodes on 10GbE brought every drive under 40 ms, with two fewer nodes.

The short version

  • Avoid mixing SSD and NVMe drives in one HA Ceph pool: every write waits for the slowest drive.
  • Run Ceph on 10GbE at minimum; 2.5GbE couldn't keep up with NVMe replication traffic.
  • Three matched NVMe nodes beat five mixed ones: drive latency fell from over 500 ms to under 40 ms.
  • In a mixed AMD and Intel cluster, set VMs to the x86-64-v3 CPU model and test live migration first.
Published
Read
5 min
Written by
Platform team
Stack
Proxmox VE 8.4 · Ceph · NVMe · 10GbE
In this entry · 5 sections
  1. 01Mixed drives in one pool
  2. 02Three nodes, all NVMe
  3. 03Then the network
  4. 04The cost of three nodes
  5. 05One CPU model for AMD and Intel

Our internal infrastructure runs on a self-hosted Proxmox cluster, with Ceph underneath for storage and Proxmox HA on top for failover. It started as five nodes with a mix of SSD and NVMe drives on 2.5GbE. It’s now three nodes, all NVMe, on 10GbE, and it’s faster.

Mixed drives in one pool

In a replicated Ceph pool, a write isn’t acknowledged until every copy of it is written. Each placement group keeps its copies on drives in different nodes, so a write is only as fast as the slowest of those drives. Put SSDs and NVMe drives in the same pool and the SSDs set the pace for every placement group with a copy on one of them.

That’s what we saw. Ceph’s per-drive latency, as reported by ceph osd perf, regularly went past 500 ms, and the virtual machines on the cluster felt it: slow disk writes in workloads that had nothing to do with the slow drives.

Three nodes, all NVMe

We cut the cluster from five nodes to three and put only NVMe drives in each one. Two of the original five couldn’t have stayed anyway: neither had a free PCIe slot for a 10GbE card.

After the drive change, latency on two of the three nodes dropped under 40 ms. The first node still sat around 140 ms.

Then the network

The remaining latency was the network. Ceph sends every write to the other nodes holding a copy before acknowledging it, so replication traffic shares the link with everything else, and 2.5GbE couldn’t keep up with NVMe drives. Each node got a 10GbE link to the same switch, and once all three were on it, every drive was under 40 ms.

Fig. 002.1: Three all-NVMe nodes, each on 10GbE to one switch, sharing one Ceph pool. VMs use the x86-64-v3 CPU model.

10GbE is still slower than a single NVMe drive, and Ceph’s guidance for NVMe clusters often calls for faster links and a separate network for replication. We have neither, and for this cluster’s load we don’t need them yet: latency stays under 40 ms. If it climbs again, a separate replication network is the next step.

The cost of three nodes

Three nodes is the smallest cluster that works for both Ceph and Proxmox HA, and it has less room for failure than five. Each node holds one copy of the data, so if a node goes down, the pool keeps running on the two remaining copies, with nowhere to rebuild the third until that node is back. We accepted that trade for matched hardware and lower latency.

One CPU model for AMD and Intel

The three nodes aren’t the same CPU vendor: there’s a mix of AMD and Intel. That doesn’t matter when a node fails outright, because Proxmox HA restarts the affected VMs on another node, and a fresh boot works on either vendor. It matters for live migration, which moves a running VM between nodes, for example to empty a node before maintenance.

A VM set to CPU type host sees every feature of the processor it started on. Live-migrate it to a node from the other vendor and those features disappear underneath it, and the VM can crash. A generic CPU type avoids that but hides features the workload could use. We set every VM to x86-64-v3, a CPU model that both our AMD and Intel chips support. Even then, Proxmox doesn’t guarantee live migration between Intel and AMD, so it’s worth testing with a representative VM before relying on it.

Let's Discuss
Your Ideas

Tell us what you're building. We'll tell you how we'd approach it.

Schedule a call