Amazon Compute Flashcards
AWS EC2 (Elastic Compute Cloud)
- EC2 = virtual machines in the cloud
- Rent virtual computers/servers for your
applications (eg. more speed, memory) - Reduces the time required to obtain and
boot new server instances in minutes,
allow you to quickly scale capacity - EC2 Valid Instances Type:
• FIGHT-DR-MC-PXZ-AU
EC2 Pricing Models
- On-Demand
- Reserved
- Spot
- Dedicated Host
On Demand
Allows you to pay fixed rate pay by hour/second with no commitment
o Useful for users for that want low cost
and flexibility of EC2 without any upfront
payment or long term contract
o Useful for applications with short term,
spikes, or unpredictable workloads
(dynamic scale?)
o Useful for applications being developed
or tested for the first time
Reserved
pay up front/ provides you with capacity reservation and offers a significant discount on the hourly charge. Contract terms are usually 1 or 3 year (most cost effective way is to pay cost upfront)
Reserved EC2 Use Cases
o Useful for applications with steady state
or predictable usage
o Useful for applications that require
reserved capacity
o Useful for users able to make upfront payments to reduce their total computing costs even further • Reserved Pricing Types • Standard Reserved Instances • Convertible Reserved Instances • Scheduled Reserved Instances
Spot Pricing
Moves around all the time like stock market, enables you to bid whatever price you want for instance capacity, providing for even greater savings if your applications have flexible start and end times (eg. Ebay for servers?).
Spot Use Cases
o Useful for application that have flexible
start and end times
o Useful for applications that are only
feasible at very low compute prices
o Useful for users with urgent computing
needs for large amounts of additional
capacity
o If spot instance is terminated by EC2 you
will not be charged for partial hour of
usage. However if you terminate
instance yourself, you will be charged
or any hour in which the instance ran
Dedicated Host
Physical EC2 servers dedicated for your host, helps reduce cost by allowing you to use your existing server-bound software licenses (only used for regulatory or legal requirements)
Dedicated Host use cases
o Useful for regulatory requirements that
may not support multi-tenant
virtualization (govt)
o Useful for licensing which does not
support multi-tenancy or cloud
deployments
o Can be purchased on-demand or as a
reservation of up t70% off on-demand
price
AWS EC2 Auto Scaling
Amazon EC2 Auto Scaling helps you maintain application availability and allows you to automatically add or remove EC2 instances according to conditions you define.
- Dynamic scaling responds to changing demand and predictive scaling automatically schedules the right number of EC2 instances based on predicted demand. Dynamic scaling and predictive scaling can be used together to scale faster.
AWS Lightsail
o Out of the box cloud service. If you
want wordpress for example, LightSail
will deploy automatically and then you
can go out and customize it
o Meant for people whom aren’t as
familiar with AWS
AWS Elastic Beanstalk
o You can upload code to elastic beanstalk
and it will look at your code and go out
and provision all the underlying
infrastructure you need
o You can quickly and deploy manage
applications in the cloud
o No need to worry about the
infrastructure that runs those application
AWS Elastic Beanstalk (continued)
o You simply upload the application and
Elastic Beanstalk automatically
handles the details of capacity
provisioning, load balancing, scaling,
and application health monitoring
o Elastic Beanstalk will grow out your
infrastructure for you – all you need to
do is just provide it some code (eg.
Water/sun)
o Free service, limited in what it can
provision
AWS Lambda
o Fully managed compute service and
server-less
o Let’s you run code without provisioning
or managing servers (server-less)
o Stateless applications
- (LAMBDA eg. Think of using alexa
completely server less)
What is server-less computing?
o Build & run applications and services
without managing servers