궁금한게 많은 개발자 노트

[ AWS ] EC2 instance Purchasing Options 본문

DevOps

[ AWS ] EC2 instance Purchasing Options

궁금한게 많은 개발자 2022. 12. 8. 12:18

[ Purchasing Options ]

 

On-Demand Instances:good for short workloads, predictable pricing, pay by second

  • Linux or Windows : 1분이 지나고 매 초마다 지불, 다른 운영체제들은 시간으로 지불
  • 선불 결제가 없는 대신, 높은 금액 지불, No long-term commitment
  • Recommended for short-term and un-interrupted workloads, where you can't predict how the application will behave

 

Reserved Instances (1 & 3 years): run database for a long time, long workloads

  • On demand에 비해 대략 72% 절약
  • specific instance attributes를 예약(instance type, region, tenancy, os) 기간은 1 or 3년
  • Reserved Instance’s Scope – Regional or Zonal (reserve capacity in an AZ)
  • Recommended for steady-state usage applications (think database)
  • Reserved instance marketplace에서 사고 팔기 가능

 

Convertible Reserved Instances: long workloads with flexible instances

  • Can change the EC2 instance type, instance family, OS, scope and tenancy
  • On demand에 비해 대략 66% 절약

 

Saving Plans (1 & 3 years): commitment to an amount of usage, long workload =

                                              특정 instance type에 대해 지불하는 것이 아니라, 특정 사용량에 맞게 지불하는 방식

  • long-term usage에 근거하여 최대 72% 할인 가능
  • 1 or 3년의 10$/hour type commit
  • saving plans이외의 사용은 on-demand방식으로 청구됩니다.
  • Locked to a specific instance family & AWS region (e.g., M5 in us-east-1)
  • Flexible across: • Instance Size (e.g., m5.xlarge, m5.2xlarge) • OS (e.g., Linux, Windows) • Tenancy (Host, Dedicated, Default)

 

Spot Instance: short workload, chep, can lose instances (less reliable)

  • On-Demand와 비교하여 최대 90% 할인 가능
  • 자신이 정한 max price가 넘어가는 사용을 하게 된다면 instance는 유실될 수 있음에 주의
  • 가장 비용적으로 효율적인 instance type
  • Useful for workloads that are resilient to failure
    • Batch jobs
    • Data analysis
    • Image processing
    • Any distributed workloads
    • Workloads with a flexible start and end time
    • Not suitable for critical jobs or databases

 

Dedicated Hosts: Dedicated host allows you to book an entire physical server and control instance placements. And dedicated instances means that no other customers will share your hardware.

  • physical server with EC2 instacne capacity fully dedicated to your use
  • Allows you address compliance requirements and use your existing serverbound software licenses (per-socket, per-core, pe—VM software licenses)
  • most expensive option: on-demand, reserved(1 or 3 year)으로 사용 가능
  • Useful for software that have complicated licensing model (BYOL – Bring Your Own License). Or for companies that have strong regulatory or compliance needs

Dedicated Instances:

  • Instances run on hardware that’s dedicated to you.
  • May share hardware with other instances in same account
  • No control over instance placement (can move hardware after Stop / Start)

 

Capacity Reservations: reserve on-demand instances capacity in a specific AZ for any duration

                                         (일정 기간동안 특정 사용량 예약)

  • You always have access to EC2 capacity when you need it
  • No time commitment (create/cancel anytime), no billing discounts
  • if biling discount is needed: Combine with Regional Reserved Instances and Savings Plans to benefit from billing discounts
  • You’re charged at On-Demand rate whether you run instances or not
  • Suitable for short-term, uninterrupted workloads that needs to be in a specific AZ(Availability Zone)

 

Which purchasing option is right for me?
•On demand: coming and staying in resort whenever we like, we pay the full price
• Reserved: like planning ahead and if we plan to stay for a long time, we may get a good discount.
• Savings Plans: pay a certain amount per hour for certain period and stay in any room type (e.g., King, Suite, Sea View, …)
• Spot instances: the hotel allows people to bid for the empty rooms and the highest bidder keeps the rooms. You can get kicked out at any time
• Dedicated Hosts: We book an entire building of the resort
• Capacity Reservations: you book a room for a period with full price even you don’t stay in it

 

 

 

 

'DevOps' 카테고리의 다른 글

[ AWS ] EC2 Instance Storage Section - 2  (0) 2022.12.09
[ AWS ] EC2 Instance Storage Section  (0) 2022.12.08
[ AWS ] EC2 instance connect with SSH  (0) 2022.10.20
[ AWS ] EC2 Security Groups  (0) 2022.10.12
[ AWS ] EC2 Instance basic  (0) 2022.10.09
Comments