Yesterday we switched a c5.large to a m5.large and that went fine. Today we realized we needed a r5 instead, so we tried a r5, r5b, r5n, r6i and even went for a t3.xlarge. All returned the error that there was insufficient capacity. The request was made in us-east-1d. This concerns us greatly because as we grow, are we going to get constrained by insufficient capacity? I’m pretty much of the opinion that asking support for guidance on this will not get me much other than a generic response. As painful as it would be, I’m seriously wondering if a move to Ohio would be the best strategy. Any feedback is appreciated.
I just wonder why you deploy on a specific AZ? Is usually a good idea to be able to deploy in any AZ of the region, specially if you plan to grow.
InsufficientCapacity errors are related to the AZ, trying to deploy on another AZ should work.
Us-east-1 is the region that probably has the most capacity across all of its AZs. That being said, some AZs are bigger or smaller than others. Rather than moving to a whole new region, just stop locking yourself to specific AZs. Even a “normally flush with capacity AZ” could incur a demand spike from other customers that would hit you at an inconvenient time. Diversify.
Your east-1d is likely mapped to the AZ in east 1 that doesn’t get new instance types (az3). It is a capacity constrained AZ that stopped getting updates many years ago.
This I did not know and it is very relevant. Will look next time I login.
Interesting, is there some communication/documentation about it?
I don’t believe you’ll find any official docs from AWS on this. If you ask your account team though, they will tell you. You’ll also find plenty of references to this AZ on forums, etc with the same answer. It started around the time the nitro hypervisor was released (m4/r4/c4/t3). Nothing needing that system (including other AWS services) is available in that AZ.
I see, thanks!
I’ve worked in places that tried to stay within a single AZ to avoid cross zone bandwidth costs. Those bandwidth costs are generally negligible for most applications, but if you’re not going to run with enough server instances to have redundancy anyway, staying in one zone makes some sense until you run into issues like this.
It’s not just that. If you have a bunch of single points of failure items in your infra you might as well put them all in the same AZ because if you’re in all of the zones then any time one goes down you’re going to have problems. You might as well lose everything at once some of the time instead of everything all of the time.
Nitpicking, the nitro instances started with c5/m5/r5.
Half a decade ago I had a mongo setup that was spread across 3 AZs. It contributed a non-negligible sum to our small business bill. And it turned out our older mongo driver couldn’t handle a change of primary, so if the AZ with the primary went down, the app was dead. The mongo cluster kept running, just our driver was crap.
Moved all the replicas into the same AZ just to save that bit of dosh.
Thanks for the correction!
I run with a 5-AZ setup because of this.
In your EC2 console, check out the Instance Types page. You can query and filter based on what you’re looking for and which AZ you use. That way you’re not finding this out through trial and error.