Monitoring EBS for Performance and Availability Flashcards
EBS performance measure
IOPS(IO operations per second)
IOPS-SSDs
measured in 256 KiB
deliver constant performance for both random and sequential IO operations
4,000 IOPS can transfer 4000 256KIB chunks per second
5 IO operations at 54KiB will count as 5 operations
IOPS–HDDs
measured in 1024KiB
have optimal performance with large and sequential IO operations
8 sequential 128KiB operations will count as 1 operation
8 random 128KiB operations will count as 8 operations.
SSD-backed volumes
io1 and gp2
GP2 – General Purpose(default)
- -baseline performance of 3 IOPS per GB up to 10000 IOPS
- Minimum of 100 IOPS
- The larger the volume, the more IOPS
- Can burst up to 3000 IOPS if the size is under 1 TB
- up to 160 MiB/s of throughput
General Purpose SSD Credits
- credits represent how much available bandwidth a volume can use to burst IO operations.
- Volumes start out with their maximum amount of 5.4 million I/O credits.
io1 – Provisioned IOPS
- ideal for IOPS-intensive and throughput intensive workloads(like databases);
- Baseline performance of 30 IOPS per GB up to 20,000 IOPS
- Does not use credits to burst above baseline performance, instead it gives a consistent IOPS rate
- Delivers within 10 percent of provisioned IOPS performance 99.9 percent of the time in a given year.
- -up to 320 MiB/s of throughput
HDD-backed volumes
Throughput Optimized HDD(st1);
Cold HDD(sc1)
– Can sometimes provide more thoufhput(MB/s) but drastically less IOPs
Throughput Optimized HDD(st1)
Ideal for frequently accessed and throughput intensive workloads.
Cold HDD(sc1)
- less frequently accessed workloads
- - lowest cost HDD volume
Pre-warning/initialization
- -is no longer needed for new EBS volumes
- -EBS volumes get maximum performance right away
- -Storage blocks on volumes restored from snapshots do need to be initialized.
- initialization can be accomplished by reading from all blocks on a volume with dd or fio utilities
– sudo dd if=/dev/xvdf of=/dev/null bs=1M
EBS Monitoring – Get MetricStatistics
- VolumeReadBytes
- VolumeWriteBytes
- -VolumeReadOps
- VolumeWriteOps
- VolumeTotalReadTime
- -VolumeTotalWriteTime
- -VolumeQueueLength
Provisioned IOPS Metrics
VolumeThroughputPercentage
VolumeConsumeReadWriteOps
EBS status Checks
- run every 5 minutes
- OK, impaired, insufficient-data
- when finds that data might be inconsistent on a volume it disable IO to that volume by default.
- help prevent data corruption
- cause status to be impaired which can alert you.