Uploaded by Syed Mirza

Compute Services

advertisement
Amazon Elastic Compute Cloud
(Amazon EC2)
Amazon EC2
• Use secure, sizable compute capacity
• Boot server instances in minutes
• Pay only for what you use
Amazon EC2
5
How Amazon EC2 works
Launch an
instance
Connect to the
instance
Use the instance
6
Amazon EC2 instance types
Amazon EC2 instance types
General
purpose
• Balances compute,
memory, and
networking
resources
• Suitable for a broad
range of workloads
Compute
optimized
• Offers highperformance
processors
• Ideal for computeintensive applications
and batch processing
workloads
Memory
optimized
• Delivers fast
performance for
memory-intensive
workloads
• Well suited for highperformance
databases
10
Amazon EC2 instance types (cont.)
Accelerated computing
• Uses hardware accelerators to
expedite data processing
• Ideal for application streaming
and graphics workloads
Storage optimized
• Offers low latency and high
input/output operations per
second (IOPS)
• Suitable for workloads such as
distributed file systems and data
warehousing applications
11
Match: Amazon EC2 instance types
1. Ideal for high-performance
databases
A. General purpose
2. Suitable for data
warehousing applications
B. Compute optimized
3. Balances compute, memory,
and networking resources
C. Memory optimized
4. Offers high-performance
processors
D. Storage optimized
12
Match: Amazon EC2 instance types
1. Ideal for high-performance
databases
A. General purpose
2. Suitable for data
warehousing applications
B. Compute optimized
3. Balances compute, memory,
and networking resources
C. Memory optimized
4. Offers high-performance
processors
D. Storage optimized
13
Match: Amazon EC2 instance types
1. Ideal for high-performance
databases
A. General purpose
2. Suitable for data
warehousing applications
B. Compute optimized
3. Balances compute, memory,
and networking resources
C. Memory optimized
4. Offers high-performance
processors
D. Storage optimized
14
Match: Amazon EC2 instance types
1. Ideal for high-performance
databases
A. General purpose
2. Suitable for data
warehousing applications
B. Compute optimized
3. Balances compute, memory,
and networking resources
C. Memory optimized
4. Offers high-performance
processors
D. Storage optimized
15
Match: Amazon EC2 instance types
1. Ideal for high-performance
databases
A. General purpose
2. Suitable for data
warehousing applications
B. Compute optimized
3. Balances compute, memory,
and networking resources
C. Memory optimized
4. Offers high-performance
processors
D. Storage optimized
16
Amazon EC2 pricing
Amazon EC2 instance pricing options
On-Demand
Spot
• No upfront costs or minimum
contracts
• Ideal for workloads with flexible
start and end times
• Ideal for short-term, irregular
workloads
• Offers savings over On-Demand
prices
18
Amazon EC2 instance pricing options
Reserved
• Provides a billing discount over
On-Demand pricing
• Requires a 1-year or 3-year term
commitment
Compute Savings Plans
• Offer up to 66% savings over OnDemand costs for a consistent
amount of compute usage
• Require a 1-year or 3-year term
commitment
19
Amazon EC2 dedicated computing
Dedicated Instance
Dedicated Host
• An EC2 instance that runs in a VPC
on hardware for a single customer
• A physical server with EC2 instance
capacity for a single customer
• Higher cost compared to standard
Amazon EC2 instances
• Most expensive Amazon EC2
option
20
Amazon EC2 Auto Scaling
Amazon EC2 Auto Scaling
• Scale capacity as computing
requirements change
• Use dynamic scaling and predictive
scaling
Su
M
T
W
Th
F
Sa
Demand
Unused capacity
25
Amazon EC2 Auto Scaling (cont.)
High demand
Auto Scaling group
Customers
Minimum
Scale as needed
Desired
Baristas
Maximum Amazon EC2 instances
26
Elastic Load Balancing
Elastic Load Balancing
• Automatically distributes traffic across
multiple resources
• Provides a single point of contact for your
Auto Scaling group
Elastic Load Balancing
29
Scalability and load balancing
Low-demand period
High-demand period
Elastic Load
Balancing
Auto Scaling
group
Amazon EC2 instances
Elastic Load
Balancing
Auto Scaling
group
Amazon EC2 instances
30
Auto Scaling and Elastic Load Balancing
Are these examples of Auto Scaling or Elastic Load Balancing?
Auto Scaling
1.
1. Removing
Removesunneeded
unneeded
Amazon
EC2 EC2
instances
when
Amazon
instances
demand
low
whenisdemand
is low
2.
Adds aasecond
2. Adding
secondAmazon
Amazon
instance
during
EC2 EC2
instance
during
an an
online
store’s
popular
online
store’s
popular
sale
sale
Auto Scaling
Elastic Load
Balancing
3. Distributing
3.
Distributesaa workload
workload
across
several
Amazon
EC2
across
several
Amazon
instances
EC2 instances
4.
Ensuresthat
thatnonosingle
single
4. Ensures
instance
to carry
EC2 EC2
instance
has has
to carry
the workload
full workload
onown
its
the full
on its
own
Elastic Load
Balancing
Auto Scaling
5.
Automaticallyadjusting
adjusts the
5. Automatically
number of
of Amazon
Amazon EC2
EC2
the number
instances
to match
instances
to match
demand
demand
6.
6. Providing
Providesaasingle
singlepoint
point of
of contact
contactfor
fortraffic
trafficinto
intoan
an
AutoAuto
Scaling
group
Scaling
group
Elastic Load
Balancing
31
Serverless compute services
Serverless computing
Computing with
virtual servers
Servers
Code
Serverless computing
Code
41
AWS Lambda
• Run code without provisioning or
managing servers
• Pay only for compute time while code is
running
• Use other AWS services to automatically
trigger code
AWS Lambda
42
How AWS Lambda works
Upload code to
Lambda.
Set code to trigger
from an event
source.
Code runs only
when triggered.
Pay only for the
compute time
you use.
43
AWS container services
Containers
One host with multiple
containers
App 1
App 2
Bins/Libs
Bins/Libs
Tens of hosts with hundreds of
containers
Operating system
Server
45
AWS container orchestration services
Amazon Elastic
Container Service
(Amazon ECS)
Amazon Elastic
Kubernetes Service
(Amazon EKS)
• Run and scale containerized
applications
• Run and scale Kubernetes
applications
• Use simple API calls to control
Docker-enabled applications
• Readily update applications with
new features
46
AWS Fargate
• Run serverless containers with Amazon
ECS or Amazon EKS
• Pay only for the resources you use
AWS Fargate
47
Download