0

I am setting up a physical server for an application that we have developed, the purpose of this server is to run the server's own software and store its database (mongodb).

On the server machine we want to configure a RAID 1 storage system to keep the information safe, but we do not know what would be better for this, whether to use SSD or HDD.

We have many questions about it such as

  • Will the performance improvement when using SSD be noticeable or is HDD enough?

  • Will SSDs have the same endurance as HDDs to be running 24-7?

  • Would the combined use of RAID 0 + RAID 1 with HDD be a better option than SSD?

I don't know if someone could help me solve some of these doubts or give me some kind of information or help in this regard.

Thank you!

2
  • Does this answer your question? How do you do load testing and capacity planning for databases?
    – diya
    Sep 27, 2022 at 9:18
  • The answers to all you questions depend on one thing only: YOUR load and YOUR usage patterns. Once you know those the other questions can be answered (and their answers will probably be obvious) and spinning rust might be sufficient for your needs and a better fit for your budget than SSD's - Note that "correctly selected SSD's / NVME's " (write intensive / cheaper "mixed us" etc.) for YOUR load and YOUR usage patterns should last for the typical life-time of a server.
    – diya
    Sep 27, 2022 at 9:26

1 Answer 1

1

Will the performance improvement when using SSD be noticeable or is HDD enough?

While there are scenarios where the SSD will be no quicker than using a HDD that would be pretty unlikely, for 90%+ (probably higher) you will see significantly higher performance using SSD over HDD.

Will SSDs have the same endurance as HDDs to be running 24-7?

Probably not no - you can spend a lot of money on SSD and get broadly the same write endurance as HDD (Intel Optane is particularly good in this regard) but generally speaking you will get less endurance with SSDs than with HDDs - especially with Consumer SSDs. The term that's most important here is 'DWPD', Daily Writes Per Day - how much you can write to an SSD on average per day without impacting the endurance of the SSD. Often Consumer SSDs have low DWPD figures such as 0.3 - i.e. you can only write 30% of the SSDs capacity per day before negatively impacting the SSD's endurance. Many top-end Consumer SSDs have a DWPD of 0.7, 1.0, even as much as 3.0 - whereas for Enterprise SSDs you may see this as much as 30.0, and those Optane SSDs can be in the hundreds or more.

Anyway have a look at how much writing you're doing and use that, compared to the size of the volume you need, to decide what level of DWPD you need.

Would the combined use of RAID 0 + RAID 1 with HDD be a better option than SSD?

"It depends", though probably not, just use R1/10 or R6/60 depending on your volume sizes - you'll be fine.

3
  • Endurane is wrong. SSD can have WAY higher endurance than HDD - it all depends what you BUY. A high end Kioxia gets 5 year warranty with 60 (!) full writes per day. Get a cheap end user one - you are stuck. As you say - but the result is not "probably not" but "only an issue if you are too stupid to buy an appropriate one".
    – TomTom
    Sep 27, 2022 at 12:15
  • You're splitting hairs here @TomTom, we both know you can buy SSDs and HDDs with both very high and very low endurances if you go out of your way to do so - the point of my answer was to help educate the question askers in the general state of things and give them tools to help themselves - there was a time when neither of us knew this stuff, I'm just trying to help ;)
    – Chopper3
    Sep 27, 2022 at 14:19
  • Chopper3 Thank you very much for your answer, I fully understand the comments and I am aware that the resistance of the disks will depend a lot on the disk itself and not so much on the technology, but indeed I was asking in a general scope and also taking the cost as a reference of these Now everything is much clearer to me!
    – coantia
    Sep 29, 2022 at 12:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .