For optimal performance in terms of the storage layer, use disks backed by
Avoid
#mongodb #mongo #disk #raid #SSD
RAID-10
. RAID-5
and RAID-6
do not typically provide sufficient performance to support a MongoDB deployment.Avoid
RAID-0
with MongoDB deployments. While RAID-0
provides good write performance, it also provides limited availability and can lead to reduced performance on read operations, particularly when using Amazon’s EBS volumes.#mongodb #mongo #disk #raid #SSD
To check if the kernel knows about SSDs try:
When you run the command above, you will see results like below:
#ssd #linux #hdd #rotational
for f in /sys/block/sd?/queue/rotational; do printf "$f is "; cat $f; done
When you run the command above, you will see results like below:
/sys/block/sda/queue/rotational is 1
/sys/block/sdb/queue/rotational is 1
/sys/block/sdc/queue/rotational is 0 <=== Only this is SSD!
#ssd #linux #hdd #rotational