📜 ⬆️ ⬇️

EBS RAID for faster performance and cost effectiveness

Hello! image

Yesterday I wrote an article about the performance of EBS. It turned out that the most productive would be RAID 10 of EBSo. Besides the fact that RAID is faster, it is also more economically profitable. Minimum cost per month of EBS disk with 2000 IOPS (minimum size 200 GB)

200 * $ 0.125 + 2000 * $ 0.10 = $ 225
')
The same amount of information in 200 GB in RAID10, consisting of 8 standard EBS 50 GB each:

8 * (50 * $ 0.10) = $ 40

Based on the calculations, RAID is cheaper by more than five and a half times .

How to create such a RAID 10 quickly?

Install CLI . And run the command:
$ for x in {1..8}; do \ aws ec2 attach-volume --instance-id i-0000000 --device /dev/sdr${x} \ --volume-id `aws ec2 create-volume --availability-zone us-east-1d --size 50 | \ grep vol- | awk -F '"' {'print $4'}`; \ done 

Instance-ID and AZ substitute yours.

Next on the server run the command:
 # mdadm --create -l10 -n8 /dev/md1 /dev/sdr* mdadm: Defaulting to version 1.2 metadata mdadm: array /dev/md1 started. 

Something like this will appear in fdisk:
 Disk /dev/md1: 214.7 GB, 214742073344 bytes 2 heads, 4 sectors/track, 52427264 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 524288 bytes / 2097152 bytes Disk identifier: 0x00000000 

That's all, create partitions, format and use! Yes ... this is software-based RAID, so you should lay the CPU resources separately.

Source: https://habr.com/ru/post/163857/


All Articles