EC2 Billing vCPU options vs. Instance type

1

As mentioned here, r4.4xlarge instance type has 8 vCPU cores by default. But it is possible to set it to a lower value e.g. 1 at instance start request. In that case, how the billing works? Does it bill based on instance type? or vCPUs?

LahiruJ
질문됨 2년 전385회 조회
2개 답변
3
수락된 답변

Disabling cores don't effect on instance cost. The reason why you would typically want to disable some of available cores is due to software licensing. If your application needs a lot of memory but can not benefit from extra cores, it can be cost effective to disable some cores to lower licensing cost. Even if you would still be paying for the whole instance capacity.

profile picture
전문가
Kallu
답변함 2년 전
1

EC2 pricing [1] is based on the instance capacity. Even if you only use 1 vCPU, all 8 (in your example) would be allocated to you and available for use. There are services like Fargate [2] where pricing is based on vCPU. If your application requires fewer vCPUs and more of another resource, like RAM, then it's recommended to select an instance type that more aligns with your needs. My recommendation is to use the Instance Type feature in the EC2 Console. EC2 Console, on the left menu panel, select Instance Type. In this interface, you can list your requirements (number of vCPUs, amount of RAM, networking, etc) and the interface will display the available instance types including their on-demand costs. From this you can select the best instance type and size for your application or needs.

If later you need to increase (or decrease) the vCPU or RAM, you can change the instance type/size requiring only a start/stop [3].

I also recommend enabling the AWS Compute Optimizer (defaults are free) [4] which can use your running data to recommend the right instance type and size.

[1] https://aws.amazon.com/ec2/pricing/on-demand/

[2] https://aws.amazon.com/fargate/pricing/

[3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html

[4] https://aws.amazon.com/compute-optimizer/

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠