Is there any reason to use gp2 instead of gp3 for a new EC instance for general purpose (smallish instance)?

I see that the default when setting up the root volume for a new instance is to use gp2. Yet, it’s more expensive and gp3 is described as the next generation option. Is there some reason one might wan to use gp2 instead gp3?

GP3 is always cheaper than GP2, even if you need to provision IOPS and throughput to match the GP2 on volumes larger than 170GB.

Lots of AMIs still use GP2 and it’s a bit tedious to change it every time you run an instance.

I’m working on building a conversion tool for automating the migration at any scale(from single volumes to entire AWS Organizations with thousands of accounts), including provisioning the performance to match GP2 and a few more capabilities. Let me know if you would like to try it out before I publish it on the marketplace. I’ll also open source it at some point.

GP3 has higher latency, otherwise no.

Wait, so for a small root partition on an EC2 instance, wouldn’t then be better to use gp2?

I’m not sure it would be noticeable, unless your workload is very latency sensitive.

I see. Thanks.

The latency is barely noticeable and for the vast majority of applications, the performance boost and lower price makes it worth it

The difference is in the order of single-digit miliseconds, so it’s not really relevant in the vast majority of use cases. The other difference, though, is I don’t believe GP3 supports burst I/O, which can be either good or bad depending on your workload characteristics.

Don’t you specify disk type when spinning an instance from an ami (not making disk type a part of an ami?)

You can do both. Same with Launch Templates. Another issue is that if you have any IaC you may want to update your template (i.e. a terraform module) but then you have to make sure that it can safely update all your current resources in-place.

From AWS’s perspective it’s probably the same as always: release it, then make it default, then discourage use of the old one, then ‘hide’ it, and only after what seems like forever, disable new creation.

You can still start instances with pure ephemeral storage with kernels and initrd’s from S3 on Xen instances for example.

This guy clouds

Wait wait, how are AMIs associated with disk types?

I just need it to be as good as a typical 5400 RPM HDD. The low-end ones. Or 7200 RPM, somewhat slightly better ones. This is what I’m moving away from. Want to make sure EBS isn’t actually worse than physical servers I’m renting.

gp2/3 are both SSD-based, HDD is st1 and sc1. In any case, both gp2 and 3 will be significantly faster than a 5400RPM HDD.

GP3 does not have higher latency than GP2. It has higher latency on larger volumes with no adjustment of IOPS from the default.

We’ve tested this thoroughly and this is just misinformation from people who have tried GP3 out without actually looking at the numbers and adjusting the IOPS to match the old volume when converting from GP2.

I know they are SSD. What I’m trying to figure out is how it compares to HDD on the metal vs SSD in EBS via the net and virtualized.

I’m moving away from my own dedicated servers. No virtualization of any kind and storage is right on the motherboard.

I want to make sure EBS gp3 isn’t worse than what I have now. (And what I have is mediocre by dedicated hardware standards. But I’ve never dealt with cloud before.)

no. However, most provisioning APIs are not gp3-aware, such as the in-tree EKS storage class provisioner nor the RDS storage type provisioner.

There were also some early extreme-latency toothing problems with it, as recently as February

consider your actual workload requirements first. So baseline your application’s IOPS, throughput and latency requirements and then select the storage class you need to satisfy them the closest. In most applications that need storage and aren’t abstracted by another service (i.e. not-a-standalone-database and flatfile storage requirement that can’t be satisfied by S3), usually revolves around some sort of append-only-ledger-type of workload like IoT data ingestion or moving something like a file server or other database product off-prem. In most cases, these applications prioritize either IOPS (transactional loads) and/or throughput (streaming transfers). Some transactional loads are latency sensitive, although in most cases, caching can be tuned to accommodate this.

In an AMI you can specify a bunch of block device details like the snapshot ID, disk position, read/write status and default EBS type.

Generally in the form of /dev/sda1=snap-123456778123123:true:gp2

This is the default value that is then used in the launch interface in the console and also the default value used when calling the API.

If you want to see this for yourself, click an AMI from the list in the EC2 console and check “Block Devices”. Generally, when you create an AMI that is based on a volume the default type is the one the volume had when you snapshotted it.

You should be fine probably even with magnetic volume types. But as always better to benchmark yourself for your own use case.