AWS provides a range of Compute Services – Amazon EC2, Amazon ECS and AWS Lambda. We will provide an intro level overview of these services and highlight suitable use cases. Amazon Elastic Compute Cloud (Amazon EC2) itself provides a broad selection of instance types to accommodate a diverse mix of workloads. Going a bit deeper on EC2 we will provide background on the Amazon EC2 instance platform, key platform features, and the concept of instance generations. We dive into the current-generation design choices of the different instance families, including the General Purpose, Compute Optimized, Storage Optimized, Memory Optimized, and GPU instance families. We also detail best practices and share performance tips for getting the most out of your Amazon EC2 instances, both from a performance and cost perspective.
2. AWS compute offerings
AWS Lambda
Serverless compute
platform for stateless
code execution in
response to triggers
Amazon ECS
Container management
service for running
Docker on a managed
cluster of EC2
Amazon EC2
Virtual servers in
the cloud
4. AWS global infrastructure
Over 1 million active customers
across 190 countries
2000 government agencies
5000 educational institutions
17,500 nonprofits
12 AWS Regions
33 Availability Zones
*11 more Availability Zones
and 5 more regions coming
online throughout the year
5. Amazon Elastic Compute Cloud (EC2)—
Elastic virtual servers in the cloud
Physical servers in
global AWS Regions
Host server
Hypervisor
Guest 1 Guest 2 Guest n
6. Amazon EC2 nine years ago…
First generation, single instance family and size
• m1.small (1 vCPU, 1.7 GiB RAM, 160 GB storage)
Linux only
On-Demand pricing only
13. Fast deployments
Access computing
infrastructure in minutes
Low cost
Pay-as-you-go pricing
Elastic
Easily add or remove capacity
Globally accessible
Easily support customers
around the world
Secure
A collection of tools to
protect data and privacy
Scalable
Access to effectively
limitless capacity
15. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
16. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
17. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
1 server for 8 hours
18. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
1 server for 8 hours 1 server for 8 hours
19. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
1 server for 8 hours 1 server for 8 hours
1 server for 8 hours
20. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
1 server for 8 hours 1 server for 8 hours
1 server for 8 hours
1 server for 8 hours
21. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Serverload
Hour of day
Capacity of 1 server
Traditional capacity required
1/3rd
saving
27. Tooling—scale automatically
Amazon EC2 Auto Scaling Elastic Load Balancing
Actual
EC2
Elastic virtual
servers in the cloud
Dynamic traffic
distribution
Automated scaling of
EC2 capacity
28. 2007 2008 2009 2010 2011 2012 2013 2014 2015
9 24 48 61 82
159
280
514
722
Rapid pace of customer driven improvements
There is no compression algorithm for experience
AWS feature and service launches
(Above & beyond all the regular updates to the infrastructure platform)
29. Rapid pace of customer driven improvements
Security—Our Top priority!
AWS feature and service launches
(Above & beyond all the regular updates to the infrastructure platform)
2007 2008 2009 2010 2011 2012 2013 2014
9 24 48 61 82
159
280
514
Security, compliance, governance,
and/or audit capabilities
33. Use the AWS Marketplace
Browse, search, discover,
and launch thousand of AWS
Marketplace Amazon
Machine Images (AMIs)
directly from within the
Amazon EC2 console
2,500+ products listed in 35
categories
Software listings from more
than 800 ISVs
34. Build reliable architectures
Easily build highly available applications
Elastic Load Balancing distributes load
Auto Scaling helps ensure availability and scale
Use multiple Availability Zones (AZs)
Use multiple global AWS Regions
36. Build secure architectures
Use Amazon VPC—Provision a logically isolated section of the AWS
cloud
Control your virtual networking environment with:
• Subnets
• Route tables
• Security groups
• Network ACLs
• Flow logging (new!)
Control if and how your instances access the Internet
Connect to your on-premises network by using a hardware VPN or
AWS Direct Connect
Monitor all changes via Amazon CloudWatch Logs and
AWS CloudTrail
37. Availability Zone 1a Availability Zone 1b
Internet
10.0.0.5
10.0.0.6
10.0.3.17
10.0.3.5
10.0.1.5
10.0.1.25
10.0.1.8
10.0.1.6
VPC Subnet
VPC Subnet
VPC Subnet
Virtual Private Gateway
Customer Gateway
VPN Connection
Internet Gateway
Customer Data Center
39. On-Demand
Pay for compute
capacity by the
hour with no long-
term commitments
For spiky
workloads, or to
define needs
Reserved
Make a low, one-
time payment and
receive a
significant discount
on the hourly
charge
For committed
utilization
Spot
Bid for unused
capacity, charged at
a Spot Price which
fluctuates based on
supply and demand
For time-insensitive
or transient
workloads
Dedicated
Launch instances
within Amazon VPC
that run on hardware
dedicated to a single
customer
For BYOL and highly
sensitive/regulated
workloads
Use a purchasing option (mix) that best fits your workload
40. RIs for cost savings and reserved capacity
The No Upfront Reserved Instance
option provides a discount compared to
On-Demand (up to 55% off) and does not
require an upfront payment.
The Partial Upfront option balances the
payments of an RI between upfront and
hourly and provides a higher discount (up
to 76%) compared to the No Upfront
option.
With the All Upfront option you benefit
from the highest discount compared to
On-Demand (up to 77% off)
$-
$500
$1,000
$1,500
$2,000
$2,500
$3,000
30% 40% 50% 60% 70% 80% 90% 100%
Utilization
m3.xlarge 1yr OD/RI Break Even Utilization
On Demand
No Upfront
Partial Upfront
All Upfront
41. Spot for interruptible workloads and best pricing
Best Spot use-cases include any batch-oriented, fault-tolerant application
42. What have customers done on EC2?
18 hours
205,000 materials analyzed
156,314 AWS Spot cores at peak
2.3M core hours
Total spending: $33K
(Under 1.5 cents per core-hour)
43. Use Dedicated Hosts to enable BYOL
Host ID = h-123abc
Sockets = 2
Physical Cores = 20
• Granular resource and placement controls
• Dedicated Host allocation
• Granular instance placement
• Instance-host affinity
• Visibility into physical resources
• Physical core and socket counts
• Capacity utilization
• Instance location
46. Amazon EC2 Container Service is a highly scalable, high
performance container management service that supports
Docker containers and allows you to easily run applications
on a managed cluster of Amazon EC2 instances.
47. EC2 Container Service
Docker
Task
Container Instance
Amazon
ECS
Container
ECS Agent
ELB
Internet
ELB
User /
Scheduler
API
Cluster Management Engine
Task
Container
Docker
Task
Container Instance
Container
ECS Agent
Task
Container
Docker
Task
Container Instance
Container
ECS Agent
Task
Container
AZ 1 AZ 2
Key/Value Store
Agent Communication Service
48. It’s easy and FREE!
Please visit:
https://aws.amazon.com/ecs/getting-started/
50. High performance at
any scale; cost-
effective and efficient
No infrastructure to
manage
Pay only for what you use:
Lambda automatically
matches capacity to your
request rate. Purchase
compute in 100 ms
increments.
Bring Your Own
Code
Stateless, trigger-based code execution
Run code in a choice of
standard languages. Use
threads, processes, files,
and shell scripts normally.
Focus on business logic, not
infrastructure. You upload
code; AWS Lambda handles
everything else.
AWS Lambda functions
54. Key Lambda scenarios
Data processing
Stateless processing of
discrete or streaming
updates to your data
store or message bus
Control systems
Customize responses
and response workflows
to state and data
changes within AWS
App back-end
development
Execute server side
backend logic in a cross
platform fashion
56. AWS Lambda use cases
Threat intelligence
and analytics
Ad data analytics
and routing
Mobile app
analytics
Image content
filtering
Real-time video ad
bidding
News content
processing
Game metrics
analytics
Gene sequence
search