« PreviousNext » | |
Did this page help you? Yes | No | Tell us about it... |
Amazon EBS provides the following volume types: General Purpose (SSD), Provisioned IOPS (SSD), and Magnetic. They differ in performance characteristics and price, allowing you to tailor your storage performance and cost to the needs of your applications. The table below describes basic use cases and performance characteristics for each volume type. For detailed pricing information on these volume types, see Amazon EBS Pricing.
Volume Type | General Purpose (SSD) | Provisioned IOPS (SSD) | Magnetic |
---|---|---|---|
Use cases |
|
|
|
Volume size | 1 GiB - 1 TiB | 10 GiB - 1 TiB | 1 GiB - 1 TiB |
IOPS performance | The ability to burst to 3,000 IOPS maximum, with a base performance of 3 IOPS/GiB | Consistently performs at provisioned level, 4,000 IOPS maximum | 100 IOPS on average with the ability to burst to hundreds of IOPS |
API and CLI volume name | gp2 | io1 | standard |
There are several factors that can affect the performance of Amazon EBS volumes, such as instance configuration, I/O characteristics, and workload demand. For more information about getting the most out of your Amazon EBS volumes, see Amazon EBS Volume Performance.
General Purpose (SSD) volumes offer cost-effective storage that is ideal for a broad range of workloads. These volumes deliver single-digit millisecond latencies, the ability to burst to 3,000 IOPS for extended periods of time, and a base performance of 3 IOPS/GiB. General Purpose (SSD) volumes can range in size from 1 GiB to 1 TiB.
General Purpose (SSD) volume performance is governed by volume size, which dictates the base performance level of the volume and how quickly it accumulates I/O credits; larger volumes have higher base performance levels and accumulate I/O credits faster. I/O credits represent the available bandwidth that your General Purpose (SSD) volume can use to burst large amounts of I/O when more than the base performance is needed. The more credits your volume has for I/O, the more time it can burst beyond its base performance level and the better it performs when more performance is needed.
Each volume receives an initial I/O credit balance of 5,400,000 I/O credits, which is enough to sustain the maximum burst performance of 3,000 IOPS for 30 minutes. This initial credit balance is designed to provide a fast initial boot cycle for boot volumes and to provide a good bootstrapping experience for other applications. Volumes earn I/O credits every second at a base performance rate of 3 IOPS per GiB of volume size. For example, a 100 GiB General Purpose (SSD) volume has a base performance of 300 IOPS.
When your volume requires more than the base performance I/O level, it simply uses I/O credits in the credit balance to burst to the required performance level, up to a maximum of 3,000 IOPS. Volumes larger than 1,000 GiB have a base performance that is equal or greater than the maximum burst performance, so their I/O credit balance never depletes and they can burst indefinitely. When your volume uses fewer I/O credits than it earns in a second, unused I/O credits are added to the I/O credit balance. The maximum I/O credit balance for a volume is equal to the initial credit balance (5,400,000 I/O credits).
If your volume uses all of its I/O credit balance, the maximum performance of the volume will remain at the base performance level (the rate at which your volume earns credits) until I/O demand drops below the base level and unused credits are added to the I/O credit balance. The larger a volume is, the greater the base performance is and the faster it replenishes the credit balance.
The table below lists several volume sizes and the associated base performance of the volume (which is also the rate at which it accumulates I/O credits), the burst duration at the 3,000 IOPS maximum, and the time in seconds that the volume would take to refill an empty credit balance.
Volume size (GiB) |
Base performance (IOPS) |
Burst duration @ 3,000 IOPS (seconds) | Seconds to fill empty credit balance |
---|---|---|---|
1 |
3 |
1,802 | 1,800,000 |
100 |
300 |
2,000 | 18,000 |
250 |
750 | 2,400 | 7,200 |
500 |
1,500 |
3,600 | 3,600 |
750 |
2,250 |
7,200 | 2,400 |
1,000 |
3,000 |
Infinite | N/A |
The burst duration of a volume is dependent on the size of the volume, the burst IOPS required, and the credit balance when the burst begins. This is shown in the equation below:
Burst duration = (Credit balance)/((Burst IOPS) - 3(Volume size in GiB))
If you notice that your volume performance is frequently limited to the base level (due to and empty I/O credit balance), you should consider using a larger General Purpose (SSD) volume (with a higher base performance level) or switching to a Provisioned IOPS (SSD) volume for workloads that require sustained IOPS performance greater than 3,000 IOPS.
Provisioned IOPS (SSD) volumes are designed to meet the needs of I/O-intensive workloads, particularly database workloads, that are sensitive to storage performance and consistency in random access I/O throughput. You specify an IOPS rate when you create the volume, and Amazon EBS delivers within 10 percent of the provisioned IOPS performance 99.9 percent of the time over a given year.
A Provisioned IOPS (SSD) volume can range in size from 10 GiB to 1 TiB and you can provision up to 4,000 IOPS per volume. The ratio of IOPS provisioned to the volume size requested can be a maximum of 30; for example, a volume with 3,000 IOPS must be at least 100 GiB. You can stripe multiple volumes together in a RAID configuration for larger size and greater performance.
Magnetic volumes provide the lowest cost per gigabyte of all Amazon EBS volume types. Magnetic volumes are backed by magnetic drives and are ideal for workloads performing sequential reads, workloads where data is accessed infrequently, and scenarios where the lowest storage cost is important. These volumes deliver approximately 100 IOPS on average, with burst capability of up to hundreds of IOPS, and they can range in size from 1 GiB to 1 TiB. Magnetic volumes can be striped together in a RAID configuration for larger size and greater performance.
If you need a greater number of IOPS or higher performance than Magnetic volume can provide, we recommend that you consider General Purpose (SSD) or Provisioned IOPS (SSD) volumes.