Showing posts with label pricing. Show all posts
Showing posts with label pricing. Show all posts

Sunday, March 20, 2022

AWS Compute - EC2 Instances Information (General Purpose Type, Pricing Options)


SUMMARY:
1 - GENERAL PURPOSE TYPE OF EC2
2- EC2 INSTANCE PRICING OPTIONS


EC2 Instances - Elastic Compute Cloud

Amazon EC2 provides scalable computing capacity in the AWS cloud.
With EC2 instances you can configure security group, networking, and also manage storage.

EBS Storage and Instance store are two storage options.

By default, a maximum of 20 instances can only be created per Region and if needed to create more instances, then a request to the AWS support team need to be raised.


Types of EC2 Instances

  1. General Purpose:- Balance Memory and CPU
  2. Compute Optimized:- More CPU than RAM
  3. Memory-Optimized:- More RAM
  4. Storage Optimized:- Graphic Optimized
  5. Accelerated Computing:- Low Latency
  6. High Memory:- High Memory, Nitro System ( a type of hypervisor)
  7. Previous Generation


GENERAL PURPOSE TYPE:
It provides Balanced Memory CPU and networking resources and is well suitable for a variety of workloads. It is available in 4 sizes (Nano, small, Medium, Large).

There are 3 series in General purpose:
  1. A series
  2. M series
  3. T series

A Series (only has large size): It is well suited for the scale-out workloads that are supported by ARM Ecosystem (usually used for Robotic processes).

Below are well suitable use-cases for A-Series.
Webservers
Containerized Microservices
Caching fleets ( When you want to run multiple EC2 instances in parallel )
Distributed Data Store
The application that requires ARM Instruction set (
ARM is best known for its systems on a chip (SoC) , integrating on a single chip: microprocessor , graphics processing unit (GPU), DSP , FPU , SIMD , and peripheral controller . These are present in the majority of smartphones and tablets.)

M Series: It has M4, M5, M5a, M5ad, and M5d Instance types.
M4 Instance:- It features a Custom Intel Xeon E5-2676 v3 Haswell processor optimized specifically for EC2. It supports EBS Only Instance storage, vCpu 2 to 40(max), and RAM 8 GB to 160GB.
M5, M5a, M5ad, and M5d Instance:- These instances provide ideal Cloud infrastructure and offer a balance of compute, memory, and network resources for a broad range of applications. It supports EBS and NVMe SSD, vCpu 2 to 96(max), and RAM 8GB to 384 GB.

Below are the use cases:
Gaming Servers
Webservers
Small and Medium databases

T Series: t2, t3, t3a instance types
These instances are the baseline level of Cpu performance with the ability to burst to a higher level when required for your workload. It has vCpu 2 to 8 and RAM is 0.5GB to 32GB.

Below are the use cases:
Website and Web development
Code Repositories
Development Build and Test
Microservices


PRICING OPTIONS
OnDemand Instances 
Pay per second for the running instances.
The lifecycle of these instances can be controlled by you.
You can decide when to Start/Stop/Terminate/Hibernate/Reboot.
No long-term commitment is required.
The price per second is fixed.


Use Case:

For short term application
For an irregular workload that cannot be interrupted.


Reserved Instances (RI)
Amazon EC2 Reserved Instances (RI) provide a significant discount (up to 72%) compared to On-Demand pricing and provide a capacity reservation when used in a specific Availability Zone. If purchasing option for the EC2 instance is 1 year to 3 years then the Reserved Instance type is the best option. 
3 Payment options are available for RI:
  • Upfront
  • Partial upfront 
  • No Upfront
Reserved Instances are charged even there is no use.
Purchased RI is non-refundable.


Use Case:
For Long Term application
Discounted option as compared to On-Demand Instances.


Spot Instances
Spot Instance AWS Documentation
Because Spot Instances enable you to request unused EC2 instances at steep discounts, you can lower your Amazon EC2 costs significantly
The hourly price for a Spot Instance is called a Spot price.
Price is less than On-Demand Instances
These are selected on the basis of a bid that satisfies the requirement of EC2 instances.

How long do AWS spot instances last?
Regular spot pricing—instances can be terminated with 2 minutes notice. Defined duration—you can get a spot instance guaranteed to run for a period of 1-6 hours.

Use Cases:

Data Analytics
Batch jobs
Background processes




Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...