Professional Documents
Culture Documents
§ Applications with steady state or predictable usage § Reserved Instance pricing tier discounts only apply to
purchases made from AWS, and not to the third party
§ Applications that require reserved capacity Reserved instances
§ Users are able to make upfront payments to reduce their total
computing costs even further
§ Reserved instance is not a physical instance that is launched, but
rather a billing discount applied to the use of On-Demand
Instances
§ On-Demand Instances must match certain attributes, such as
instance type and Region, in order to benefit from the billing
discount.
§ Reversed Instance is like you are going to give the Convertible Reserved Instances
commitment to the AWS by buying the instance for one § It provides a discount of up to 54% off on demand.
year or more than one year by the requirement to your
§ It provides the feature that has the capability to change the
organization. Because you are giving one year of attributes of RI as long as the exchange results in the
Commitment to the AWS they will discount the price on creation of Reserved Instances of equal or greater value.
that instance. § Like Standard Reserved Instances, it is also useful for the
§ Reserved Instances provide you with significant savings steady state applications.
on your Amazon EC2 costs compared to On-Demand Scheduled Reserved Instances
Instance pricing. Reserved Instances are not physical § Scheduled Reserved Instances are available to launch
instances, but rather a billing discount applied to the use within the specified time window you reserve.
of On-Demand Instances in your account. These On-
§ It allows you to match your capacity reservation to a
Demand Instances must match certain attributes, such as predictable recurring schedule that only requires a fraction
instance type and Region, in order to benefit from the of a day, a week, or a month.
billing discount. § AWS does not have any capacity available for Scheduled
Standard Reserved Instances Reserved Instances or any plans to make it available in the
future. To reserve capacity, use On-Demand Capacity
§ It provides a discount of up to 75% off on demand. For Reservations instead
example, you are paying all up-fronts for 3 year contract. § Charges are incurred for the time that the instances are
scheduled, even if they are not used
§ It is useful when your Application is at the steady-state.
§ Scheduled Reserved Instances (Scheduled Instances) enable § after purchase cannot be modified, canceled, or resold
capacity reservations purchase that recurs on a daily, weekly, or
monthly basis, with a specified start time and duration, for a § only supported instance types: C3, C4, M4, and R3
one-year term. § the required term is 365 days (one year).
§ Capacity is reserved in advance and is always available when § minimum required utilization is 1,200 hours per year
needed
§ purchase up to three months in advance
§ Scheduled Instances are a good choice for workloads that do
not run continuously, but do run on a regular schedule for e.g.
weekly or monthly batch jobs
§ EC2 launches the instances, based on the launch specification
during their scheduled time periods
§ EC2 terminates the EC2 instances three minutes before the end
of the current scheduled time period to ensure the capacity is
available for any other Scheduled Instances it is reserved for.
§ Scheduled Reserved instances cannot be stopped or rebooted,
however, they can be terminated and relaunched within
minutes of termination
§ It allows you to bid for a price whatever price that you
want for instance capacity, and providing better savings if
your applications have flexible start and end times.
§ Spot Instances are useful for those applications that have
flexible start and end times.
§ It is useful for those applications that are feasible at very
low compute prices.
§ It is useful for those users who have an urgent need for
large amounts of additional computing capacity.
§ EC2 Spot Instances provide less discounts as compared to
On Demand prices.
§ Spot Instances are used to optimize your costs on the
AWS cloud and scale your application's throughput up to
10X.
§ EC2 Spot Instances will continue to exist until you
terminate these instances.
§ A Spot Instance is an instance that uses spare EC2 § Spot Instance request – Requests a Spot Instance. When
capacity that is available for less than the On-Demand capacity is available, Amazon EC2 fulfills your request. A
price. Because Spot Instances enable you to request Spot Instance request is either one-time or persistent.
unused EC2 instances at steep discounts, you can lower Amazon EC2 automatically resubmits a persistent Spot
your Amazon EC2 costs significantly. The hourly price for Instance request after the Spot Instance associated with
a Spot Instance is called a Spot price. The Spot price of the request is interrupted
each instance type in each Availability Zone is set by
Amazon EC2, and is adjusted gradually based on the § EC2 instance rebalance recommendation – Amazon
long-term supply of and demand for Spot Instances. Your EC2 emits an instance rebalance recommendation signal
Spot Instance runs whenever capacity is available to notify you that a Spot Instance is at an elevated risk of
interruption. This signal provides an opportunity to
§ Spot Instances are a cost-effective choice if you can be proactively rebalance your workloads across existing or
flexible about when your applications run and if your new Spot Instances without having to wait for the two-
applications can be interrupted. For example, Spot minute Spot Instance interruption notice.
Instances are well-suited for data analysis, batch jobs,
background processing, and optional tasks § Spot Instance interruption – Amazon EC2 terminates,
stops, or hibernates your Spot Instance when Amazon
§ Spot capacity pool – A set of unused EC2 instances with EC2 needs the capacity back. Amazon EC2 provides a
the same instance type (for example, m5.large) and Spot Instance interruption notice, which gives the instance
Availability Zone. a two-minute warning before it is interrupted.
§ Spot price – The current price of a Spot Instance per hour.
§ A dedicated host is a physical server with EC2 instance
capacity which is fully dedicated to your use.
§ The physical EC2 server is the dedicated host that can
help you to reduce costs by allowing you to use your
existing server-bound software licenses. For example,
Vmware, Oracle, SQL Server depending on the licenses
that you can bring over to AWS and then they can use the
Dedicated host.
§ Dedicated hos ts are us ed to a d d r e s s c o m p l i a n c e
requirements and reduces host by allowing to use your
existing server-bound server licenses.
§ It can be purchased as a Reservation for up to 70% off
On-Demand price.
• General Purpose Instances
• Compute Optimized Instances
• Memory-Optimized Instances
• Storage Optimized Instances
• Accelerated Computing
Instances
§ General purpose instances provide a balance of compute,
memory and networking resources, and can be used for a
variety of diverse workloads. These instances are ideal for
applications that use these resources in equal proportions
such as web servers and code repositories.
§ The most basic and all rounder AWS EC2 instances are
the General Purpose Instances. They provide a perfect
balance of computing, memory and networking resource.
The below image shows the important points of both the
sub class of the General Purpose Instance.
§ General-purpose instances offer a good mix of compute,
memory, and networking resources and can be used for a
wide range of workloads. These instances are ideal for
applications like web servers and code repositories that
use these resources in equal parts.
General Purpose - T3/T4g Instance General Purpose - Mac Instance
§ The T3/T4g have a baseline CPU performance of 2.5 GHz. § AWS EC2 now provides macOS as an option for
development. These are based on the Apple Mac Mini
These instance can burst to higher performance for shorter computer. It uses the Intel core I7 processor with 3.2 GHz
duration. The T3/T4g are burstable instance for this reason. (4.6 GHz Turbo) performance. There is only the
mac1.metal option.
§ This burst is paid with CPU credits. When the instance is idle it
§ macOS products can use these instance for development,
leads to accumulation of CPU Credits. testing.
§ The T4g is the AWS Graviton2 Processor. General Purpose - Arm Instance (A1)
§ The ideal use case for these instances are micro-service, low- § The ARM based processor for AWS EC2 instance. It fully
latency application, development environment. supports the ARM based development environment.
§ Web server, micro-services, are some of the workload
§ Yo u s h o u l d b e s a f e t o n o t r e l y o n t h e b u r s t a b l e C P U example for these instance.
performance.
§ If you have to pick one instance, then pick the M5
General Purpose - M5 Instance instance in this general category.
§ Use a T3/T4g only if you want to use the free tier service.
§ These are, the more stable instance, in comparison to the
T2/T4a Instance. They use a 3.1 GHz Intel Processor. These § The other ARM and Mac instance, are very specific. You
should be the first choice for anyone starting out on AWS. should use them till you do not have a specific need for
these instance
These instances provide a better baseline performance.
§ The best use case for M5 Instance are small and midsize
databases, data processing tasks.
§ The AWS Compute Optimizer service analyzes the
resources used in the AWS environment and provides
suggestions to rightsize user applications. The service can
help organizations reduce costs by up to 25% through its
optimization recommendations for existing EC2 servers.
§ This machine learning-driven service makes
recommendations based on analysis of CloudWatch
metrics of EC2 instances and AWS Auto Scaling groups,
as well as identifying patterns and optimal resources for a
given workload. These recommendations reflect optimal
usage of resources—since over-provisioning leads to
additional costs, and under-provisioning leads to
performance degradation. AWS Compute Optimizer
provides greater functionality than other AWS tools, such
as AWS Trusted Advisor and AWS Cost Explorer.
• The server you need to use for higher compute power.
They support 3.6 GHz to 3.9 GHz compute power.
• The cost of a C5.large is cheaper than then General
Purpose M instance. You need little higher compute power
than use the C5 instance.
• Compute optimized instances are ideal for compute-bound
applications that benefit from high-performance
processors.
• Memory optimized instances are designed to deliver fast
performance for workloads that process large data sets in
memory.
• RAM has a direct impact on any compute operation. If
you need higher RAM, then these are the instance you
should use. They support 4.0 GHz compute frequency.
The baseline instance, has 16 GiB RAM in them. This is
more than the Compute Optimized and General Purpose
Instance.
There are 3 types of sub classification in these memory
optimized instances.
§ Memory Optimized - R instance
§ EBS (Elastic block storage) volumes are flexible, and the § Boot time It takes less than 1 min.
characteristics of these volumes can be changed at any time. You § Size limit 1 TB
can change the volume size, volume type, and provisioned IOPS
of the volume connected to the production instance without § AMI is very easily created by using a single command.
downtime. These volumes can also be used for data that is § It is less expensive.
frequently updated, like database storage or root drive of the
instance. § Can be selected as Root Volume and attached as
additional volumes
§ Multiple EBS volumes can be attached to the same instance, and
for this, the instance and the EBS volumes must be in the same § EBS backed Instances can be of maximum 64TiB volume
availability zone. You can also create an EBS volume without size depending upon the OS,
connecting it to any instance. Similarly, an EBS volume can also
§ EBS volume can be attached as additional volumes when
be connected to multiple instances depending upon the instance
the Instance is launched and even when the Instance is up
and volume type.
and running
§ When an EBS-backed instance is in a stopped state, various
instance– and volume-related tasks can be done for e.g. you can
modify the properties of the instance, you can change the size of
your instance or update the kernel it is using, or you can attach
your root volume to a different running instance for debugging
or any other purpose
§ EBS volumes are AZ scoped and tied to a single AZ where
created.
§ EBS volumes are automatically replicated within that zone to
prevent data loss due to the failure of any single hardware
component
§ AMI creation is easy using a Single command
§ EBS backed Instances can be upgraded for instance type, Kernel,
RAM disk, and user data
§ In Instance-Store, an instance consists of storage approx 1
TB or 2 TB which is temporary storage. As soon as the
instance is terminated, all the data will be lost. For
example, if you launch an instance, and deploy the
database in it. If you delete an instance, then all the data
will be lost and this becomes the challenge. In such a
scenario, you can add an additional EBS Volume that also
stores the data, so even if you delete an instance, your data
would not be lost.
§ An Instance store backed instance is an EC2 instance
using an Instance store as root device volume created
from a template stored in S3.
§ Instance store volumes access storage from disks that are
physically attached to the host computer.
§ When an Instance stored instance is launched, the image
that is used to boot the instance is copied to the root
volume (typically sda1)
§ Instance store provides temporary block-level storage for § AMI creation requires the usage of AMI tools and needs
instances. to be executed from within the running instance.
§ Data on an instance store volume persists only during the life of § Instance store backed Instances cannot be upgraded
the associated instance; if an instance is stopped or terminated,
any data on instance store volumes is lost. § In this case, an instance cannot be stopped. It can be either
in a running or terminated state.
§ Boot time is slower than EBS backed volumes and usually less
than 5 min § Data does not persist so when instance is terminated, data
would be lost.
§ Can be selected as Root Volume and attached as additional
volumes § Boot time It usually takes less than 5 min.