EC2 - EC2 101 Part 1 Flashcards
Amazon EC2 is…
…a web service that provides resizable compute capacity in the cloud
EC2 reduces the time required to obtain and boot new server instances to…
…minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change
EC2 changes the economies of computing by…
…allowing you to pay only for the capacity that you actually use
EC2 provides developers the tools to…
…build failure resilient apps and isolate themselves from common failure scenarios
EC2 pricing options
On Demand, Reserved, Spot, Dedicated Hosts
On Demand
allow you to pay a fixed rate by the hour with no commitment.
On Demand use case example
If you’re a startup, you can pay for instances by the hour with no long term commitment for experimentation, terminate instances when you are complete.
Reserved
provide you with a capacity reservation, and offer a significant discount on the hourly charge for an instance. 1-year or 3-year terms
Reserved use case example
If you need a minimum of 2 webservers to serve your customers
Spot
enable you to bid whatever price you want for instance capacity, providing for even greater savings if your apps have flexible start and end times. engineering, pharma companies use these
If bid price > spot price…
…instances can be provisioned
If spot price > bid price…
…instances will be terminated
Dedicated Hosts
physical EC2 server dedicated for your use (hourly rate). Dedicated hosts can help you reduce costs by allowing you to use your existing server-bound software licenses
On Demand Use Cases
Users that want the low cost and flexibility of EC2 without any up-front payment or long-term commitment
Apps with short term, spiky, or unpredictable workloads that cannot be interrupted
Apps being developed or tested on EC2 for the first time
Reserved Use Cases
Apps with steady state or predictable usage
Apps that require reserved capacity
users able to make upfront payments to reduce their total computing costs even further
Example of combining reserved + on demand instances
2 webservers = reserved. Need more for Black Friday = on demand
Spot Use Cases
Apps that have flexible start and end times
Apps that are only feasible at very low compute prices
Users with urgent computing needs for large amounts of additional capacity
Spot Use Case Examples
Large pharma company saves money by using compute capacity during very low demand times
Large world events, e.g. Brexit, analysts need to find solutions really quickly
Dedicated Hosts Use Cases
Useful for regulatory requirements that may not support multi-tenant virtualization
Great for licensing which does not support multi-tenancy or cloud deployments (e.g. Microsoft, SQL, Oracle)
Can be purchased on demand (hourly)
can be purchased as a reservation for up to 70% off the on-demand price
Termination of Spot Instances - EXAM TIP
If the spot instance is terminated by Amazon EC2, you will not be charged for a partial hour of usage. However, if you terminate the instance yourself, you will be charged for any hour in which the instance ran
Instance Types
D = Dense R = Memory-optimized (RAM) M = General Purpose (main choice) C = Compute-optimized G = Graphics-Intensive I = High Speed Storage (I/O) F = Field Programmable Gate Array T = Lowest Cost, General Purpose (t2 micro) P = Graphics/General Purpose CPU (pics) X = Memory-optimized (extreme RAM)
Dense Storage use case
Fileservers/Data Warehousing/Hadoop
Memory Optimized use case
Memory Intensive apps/DBs
General Purpose use case
Application Servers
Compute Optimized use case
CPU Intensive apps/DBs
Graphics Intensive use case
Video Encoding/3D application streaming
Field Programmable Gate Array use case
Hardware acceleration for your code
Lowest Cost, General Purpose use case
Web Servers/small DBs
Graphics/General Purpose GPU use case
Machine Learning, Bit Coin Mining, etc
Memory Optimized use case
SAP HANA, Apache Spark, etc