4 ms·
> For example, you can make all these substitutions: >c6g.2xlarge→c6g.4xlarge→m6g.4xlarge→r6g.4xlarge→r6gd.4xlarge A long standing ticket in my personal proje
by pid-1 4y ago
> For example, you can make all these substitutions:
>c6g.2xlarge→c6g.4xlarge→m6g.4xlarge→r6g.4xlarge→r6gd.4xlarge
A long standing ticket in my personal project backlog is comparing different instance types performance. I'm not sure this equivalente is without caveats.
Anyhow, the reason "misprices" exist is because:
- Many AWS products are elastic but only allow one to choose a single instance type. So you need to guess the best instance for a workload and stick with it.
- No AWS product exposes a "Just give me the cheapest VM with x CPU and Y memory" API
- mtrainier12345 4y agoThere's actually an AWS API that does that. That's create-fleet in 'instant' mode. Docs are here: https://docs.aws.amazon.com/cli/latest/reference/ec2/create-fleet.html https://docs.aws.amazon.com/cli/latest/reference/ec2/create-... In short, you create a request specifying your CPU and memory constraints (you can also specify other constraints like processor manufacturer, memory per vCPU, etc). Then select lowest-price allocation strategy, and fleet "--type instant". Fleet will make a synchronous request provisioning the currently cheapest instance(s) which satisfy the constraints you selected, and will respond with the instance IDs.
- universa1 4y agoThe end of the article shows a request for just that, doesn't it? No clue about the API though... Depending on your workload you might be able to actually substitute a single 8xlarge with two 4xlarge for example... A while back I was actually doing something like that to save some money :-)
- pid-1 4y agoWow totally missed that. Cool stuff!
- alFReD-NSH 4y agoAutoscaling group with mix instance type spot strategy does that. You can even give weights to instance type, giving more performant/higher capacity higher weight and it can choose the cheapest one with the weight in mind.
- pclmulqdq 4y agoAWS doesn't want you to have that API! That's a significant part of their margin.