You are on page 1of 18

Understanding and Using Elastic

Cloud Compute (EC2)


EC2 Instance Types

On-
Reserved Spot D edic ated
d emand

Stand ard Sched uled Host Instance


On-demand:
- Low cost and flexibility with no up front
cost
- Ideal for auto scaling groups and
unpredictable workloads
- Dev/test
R e s e r v e d Instances:
- Steady state and predictable usage
- Applications that need reserved
capacity
- Upfront payments reduce hourly rate
- Scheduled Ris match your capacity
reservation to a predictable recurring
schedule
Spot:
- Flexible start and end times
- Grid computing and HPC
- Very low hourly compute cost
D e d i cate d :
- Predictable performance
- Complete isolation
- Most expensive
EC2 Instance Family
Family Generation Smallest Largest
t2 t2.micro t2.2xlarge
General Purpose (GP) m4 m4.large m4.16xlarge
m3 m3.medium m3.2xlarge
c4 c4.large c4.8xlarge
Compute Optimized
c3 c3.large c3.8xlarge
r3 r3.large r3.8xlarge
Memory Optimized r4 r4.large r4.16xlarge
x1 x1.16xlarge x1.32xlarge
i2 i2.xlarge i2.8xlarge
Storage Optimized
d2 d2.2xlarge d2.8xlarge
g2 g2.2xlarge g2.8xlarge
Accelerated Computing
p2 p2.xlarge P2.16xlarge
D emo

C re ate E C 2 instanc e s
Standard Reserved Instances Attributes

Partial Upfront
A l l Upfront ( u p to 6 0 % over a 3 year
( u p to 6 8 % over a 3 year te rm) te rm)

N o Upfront Re quire s a c o m m i t m e nt
( u p to 3 0 % over a 1 year te rm) (1 or 3 ye ars)
Scheduled Reserved Instances Attributes

A c c r u e c h a r g e s hourly, billed
H ave a 1 year term
in m o nt h l y inc re me nts over
c o m m i t m e nt
the term
S w i t c h Availability Z o n e s within the s a m e
region
C h a n g e the instance s i z e within the s a m e
instance t y p e

Modifying Instance t y p e modific ations are s u p p o r t e d


o n l y for Linux. D u e to lice nsing differences,
Your RIs L i n u x R I s c a n n o t b e m o d i f i e d to R e d H a t or
SUSE
Y o u c a n n o t c h a n g e the instance s i z e of
W i n d o w s R e s e r v e d Instances
Instance size Normalization factor Example 1
Qu antity of 2 x l a rg e in stan ce s = 2x8=16
mic ro 0.5
C a n b e c h a n g e d to:
small 1 • 4 large instances: 16/4=4

medium 2 • 8 m e d i u m instances: 16/2=8

la rg e 4 • 16 small instances: 16/1=16

xlarge 8
Example 2
2xlarge 16 Qu antity of 8 small instances = 8x1=8

4xlarge 32 C a n b e c h a n g e d to:
• 2 large instances: 8 / 4 = 2
8xlarge 64
• 1 x l a rg e instance: 8/1=8
10xlarge 80
Modification Requests

A W S M a n a ge m e nt C o m m a n d line Amazon E C 2 API


Console interface
High Performance Computing (HPC)
H P C u s e d b y oil & ga s , pharmac e uticals,
research, automotive, a n d other industries
B a t c h p ro c e s s i n g of c o m p u t e intensive
wo r k l o a d s
Re q u i re s h i g h p e r fo r m a n c e C P U , network,
a n d sto ra ge
J u m b o F ra m e s are ty pically required
- HPC workloads typically need access to
a shared filesystem, and will use a lot of
disk I/O
Jumbo Frames

H e l p significantly b e c a u s e they c a n c a r r y u p to
9 0 0 0 bytes of data

Supported on A W S through enhanced


networking
- Enhanced networking is enabled through single
rout I/O virtualization (SR-IOV) on supported
instances
- Enhanced networking is only supported on
Hardware Virtualization (HVM) instances. Not
supported on Paravirtulized (PV) instanced
Jumbo Frames

Enabling Enhanced Networking on Linux Instances in a VPC:


http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced
-networking.html
Enabling Enhanced Networking on Windows Instances in a VPC:
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/enhan
ced-networking.html
Placement Groups
A l o g i ca l g r o u p i n g of instanc e s in a single
availability zo n e ( A Z )
C an’t s p a n multiple availability zo n e s
N a m e m u st b e unique a c ro s s A W S a c c o u n t

R e c o m m e n d e d for application that benefit


from low latency, h i g h b a n d w i d t h or b o t h
O n l y s u p p o r t e d instanc e s that s u p p o r t
e n h a n c e d n e t wo r k i n g c a n b e l a u n c h e d into
a p l a c e m e nt g r o u p ( C 3 , C 4 , D2, I2, M4, E 3 )
Placement Groups

E x i s t i n g instanc e s c a n n o t b e m o v e d into a
p l a c e m e nt g r o u p
P l a c e m e nt g r o u p s c a n n o t b e m e r g e d
C a n s p a n p e e re d V P C s b u t y o u will not g e t
full-bisection b a n d w i d t h b et we e n instances
R e s e r v e d instanc e s are s u p p o r t e d o n an
instance level b u t y o u ca n n o t explicitly
re se r ve d c a p a c i t y for a p l a c e m e nt g r o u p
Placement Groups

Placement Groups and supported instances:


http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placemen
t-groups.html
Summary E C 2 instance t y p e s
E C 2 re se r ve d instances
H i g h p e r fo r m a n c e c o m p u t i n g
P l a c e m e nt g r o u p s

You might also like