'SSD or HDD for Kafka Brokers? ( Using SSD for Kafka )

Kafka is fast because it uses sequential writing techniques on HDD.

If I use SSD for Kafka Brokers, do I get faster performance?

As far as I know, SSD works differently than HDD. And I think with SSD I wouldn't get sequential writes privileges. I'm worried that using SSD wouldn't be good for Kafka brokers.

My questions :

  1. Is SSD better than HDD for Kafka Brokers?
  2. Does the "sequential write technique" also apply to SSD?


Solution 1:[1]

I have run Kafka in production for 8 years with 1mio messages per second.

Spinning disks will only work as long as you can avoid lagging consumers. If you have too many, disk access will look like random I/O and spinning disk-based Kafka clusters will fail (tested for you).

Do not put Kafka on consumer drives, we tried, they die hard after about 1 year. Enterprise NVMe is awesome, if you can afford it. Currently experimenting with a 22 disk ssd raid0. 10gbit+ nics is a must.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hagen Rother