Web application server storage

Hi! I could use your advice. I’ve build an application in react to manage the media for a small community (around 1000 users). Each user has ~1000 images(10MB each), ~100 movies, various audio files. I’m planning for around 100TB of data. Users will not be using the application at any one time so intermittent usage.

To host this, I’ve built a proof of concept VM Host + Storage using Proxmox + CEPH. This is a DIY POC and a learning experience so my apologies in advance.

I chose Proxmox because I’ve been a long time user and CEPH for its reliability and because I wanted to scale by adding more OSDs and/or nodes. I could see my data needs exceeding a petabyte.

I’m getting some low test results (see below) and I’m learning it is due to the spinning rust (see node hardware below).

My ceph configuration is out of the box with the exception of having a separate 100GbE network for the cluster.

Any advice or thoughts would be helpful, especially regarding:
Simple ceph configuration changes
Just add more OSDs now
Just add more nodes now
Swap the rust for the silicon(SSD or NVMe)
Drop 2 nodes, save power, put all disks into a single server and configure ZFS for redundancy and speed

I’m wondering what my best path forward is considering my main constraint is budget (10-15K) and noise. What do you think?

Thanks for your time!

Test results:
Bandwidth: 45.4 GBytes 39.0 Gbits/sec

ceph:
rados bench -p pool 30 -t 32 -b 4K write rand
Total time run: 30.074
Total writes made: 23449
Write size: 4096
Object size: 4096
Bandwidth (MB/sec): 3.04574
Stddev Bandwidth: 0.50779
Max bandwidth (MB/sec): 3.9375
Min bandwidth (MB/sec): 2.17969
Average IOPS: 779
Stddev IOPS: 129.994
Max IOPS: 1008
Min IOPS: 558
Average Latency(s): 0.0409996
Stddev Latency(s): 0.0282434
Max latency(s): 0.243702
Min latency(s): 0.00339633

1gig write test:
dd if=/dev/zero of=here1G bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 14.0277 s, 76.5 MB/s

10gig write test:
dd if=/dev/zero of=here10G bs=10G count=1 oflag=direct
2147479552 bytes (2.1 GB, 2.0 GiB) copied, 8.43608 s, 255 MB/s

Hardware:

Node 1
OS: Proxmix 8.2.2
CPU: AMD EPYC 7763 64-Core
Motherboard: Asrock Rack ROMED8-2T Server Motherboard
RAM: 265gig ECC
Boot disk: 1TB SOLIDIGM (boot disk)
VM Host disks: Intel SSD D7-P5510 Series 7.68TB (x2 in raid 1)
Disk controller: Broadcom HBA 9400-16i - Storage Controller - 16 Channel - SATA 6Gb/s / SAS 12Gb/s
Ceph storage: Seagate Exos X18 16TB Enterprise HDD (x4)
Ceph network: Mellanox MCX455A-ECAT CX455A 100GbE Single Port PCIe ConnectX-4
Ceph public: 10GbE onboard NIC

Node 2
OS: Proxmix 8.2.2
CPU: AMD 5950X 16-Core
Motherboard: ASUS Prime B550-PLUS
RAM: 125gig ECC
Boot disk: 2TB 980 Pro
VM Host disk: Intel SSD D7-P5510 Series 7.68TB (x1)
Disk controller: Broadcom HBA 9400-16i - Storage Controller - 16 Channel - SATA 6Gb/s / SAS 12Gb/s
Ceph storage: Seagate Exos X18 16TB Enterprise HDD (x4)
Ceph network: Mellanox MCX455A-ECAT CX455A 100GbE Single Port PCIe ConnectX-4
public: 10Gb PCI-E NIC Network Card, Dual Copper RJ45 Port, with Intel X540 Controller

Node 3
OS: Proxmix 8.2.2
CPU:i5-9400
Motherboard: Asus Prime B365M-A
Ram: 16GB
Boot disk: WD 500GB NVME
Disk controller: Broadcom HBA 9400-16i - Storage Controller - 16 Channel - SATA 6Gb/s / SAS 12Gb/s
Ceph storage: Seagate Exos X18 16TB Enterprise HDD (x4)
Ceph network: Mellanox MCX455A-ECAT CX455A 100GbE Single Port PCIe ConnectX-4
public: 10Gb PCI-E NIC Network Card, Dual Copper RJ45 Port, with Intel X540 Controller

Networking:
MikroTik CRS504-4XQ-IN Cloud Router Switch 650MHz 4xQSFP28 100Gbit
MicroTik CRS312-4C+8XG-RM 12-Port 10G Switch

At 100TB, this seems like the logical solution. You can set up mirrors if you’re concerned about reliability.

Ceph is more for petabyte scale and it’s a monster to really try and pull performance out of.

You didn’t really give any requirements or estimates of desired bandwidth and/or simultaneous user capacity.

Given the dataset size, you can benefit from a dedicated metadata device on ZFS, and L2ARC/ZIL.

With that, you’d be able to make fairly good use of your 100GbE connections. From there, I’d set up multiple replicas of your application server and host the zfs dataset over NFS to the application servers.

Maybe 2-3 replicas. One on local, another on each other node.

  • Did you create the OSDs with separate db/wal devices on SSD, or is everything on spiining rust?
  • Is write caching disabled on the HDDs? hdparm -W or sginfo -c

I’m digesting this. I’m going to explore ZFS with both L2ARC and ZIL. My napkin math (without the L2ARC/ZIL) using the 12 drives highlights the constraint of low IOPS. I see only being able to support a handful of users at any one time with a mixed upload/download of images+video+audio. I figure I should plan to have 100 users at any one time. I’m not sure how the math will change with the L2ARC/ZIL but I’ll take a look.

Regarding the suggestion of application server replicas, I haven’t explored load balancing yet. Good point! Thx!

Now

Write caching was disabled on all drives. I did not create separate db/wal devices on SSDs… everything was on the rust. I’m thinking even with the db/wal devices on nvme drives, I’m still not going to get the IOPS I’m looking for but I need better understand how to calculate that for ceph clusters.

I think I might be looking to replace the rust for SSDs. What is the best price/TB option?

I don’t want to build SSD / NVME storage, any suggestions on what I should looking at buying?

Is your workload more reads or writes?

That will determine how to balance the l2arc and zil sizing.

The beauty of ZFS is you can have a large L2ARC and the most frequently used data will stay on SSD. And you can keep rust for the rest.

I’m a bit out of the loop on specific hardware, so I don’t know if I’d be the best person to make a recommendation.

Is your workload more reads or writes?
That will determine how to balance the l2arc and zil sizing.

More reads than writes. It can be compared to a photo / video gallery. How would you balance on a 7TB NVME disk?

I’m a bit out of the loop on specific hardware, so I don’t know if I’d be the best person to make a recommendation.

What I’m thinking about doing, is picking up a server that supports 24nvme drives and dropping in 1 vdev of 4 drives as needed. Currently looking at the Gigabyte R272-Z34.

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.