Artem Zhurbila - 2 aws - EC2
-
Upload
artem-zhurbila -
Category
Software
-
view
154 -
download
0
Transcript of Artem Zhurbila - 2 aws - EC2
Agenda1. EC2 instances types2. Price options3. EC2 panel4. EBS5. Elastic Load Balancing6. Auto Scaling
2
Types of instances● General Purpose: T2 - don’t have instance ephemeral
storage, M3 - balanced choice;● Compute Optimized: C3● Memory Optimized: R3● Storage Optimized: I2, HS1● GPU Instances: G2 - provide access to NVIDIA GPUs
each with up to 1,536 CUDA cores.
3
EC2 Compute unitCompute unit - standardized measurement of CPU capacity (normalized across hardware differences) 1.0 - 1.2 GHz Opteron or Xeon processor.
EC2 use Intel Xeon E5-2670 v2 and Intel Xeon E5-2680.- Intel Turbo Boost: enables the processor to run above
its base operating frequency via dynamic control of the CPU's clock rate.
4
EC2 Instance Purchasing Options1. On-Demand Instances2. Reserved Instances - Light, Medium, Heavy plans (on
February 2nd, 2015 Light and Medium Utilization Reservation will no longer be available for purchase); You cannot cancel your RI and the one-time payment is not refundable
3. Spot Instances - allow customers to bid on unused Amazon EC2 capacity
5
Supported Platforms● New account before 2013-
03-18 supports both EC2-Classic and EC2-VPC
● after 2013-12-04, it supports only EC2-VPC (default-VPC like EC2-Classic)
6
EBS - Elastic Block Store- EBS offers persistent, network-attached storage for EC2
instances (99.999% availability).Types:● General Purpose (SSD) - ability to burst to 3,000 IOPS● Provisioned IOPS (SSD)● Magnetic disks - provide approximately 100 IOPS on
average, with an ability to burst to hundreds of IOPS
11
EBS- EBS volumes are created in a particular AZ and can be
from 1 GB to 1 TB in size. Volume can be attached to any EC2 instance in the same AZ.
- Each Amazon EBS volume is automatically replicated within its AZ
- Can be attached to one instance at a time- Attach multiple EBS for increased I/O and throughput
performance with RAID massive
13
EBS SnapshotsEBS provides the ability to save point-in-time snapshots of your volumes to Amazon S3.- Snapshots are stored incrementally: only the blocks
that have changed after your last snapshot are saved, and you are billed only for the changed blocks
- you can specify a new size for the new volume based on a snapshot.
14
Elastic IPElastic IP address is a static IP address.- An Elastic IP address is associated with your account
not a particular instance.- Pay charge when your Elastic IP address is not
associated with a running instance.
15
Elastic Load BalancingELB distributes incoming traffic across EC2 instances and multiple AZ.- detects unhealthy instances within a pool and
automatically reroutes traffic to healthy instances until the unhealthy instances have been restored.
- use HTTP, HTTPS (Secure HTTP), SSL (Secure TCP) and TCP (25, 80, 443, 1024-65535 ports) protocols.
16
Auto ScalingAS allows you to automatically scale your EC2 capacity up or down according to conditions you define.- Steps:
1. Create ELB;2. Prepare Amazon Machine Image;3. Create Auto Scaling Launch Config with previous AMI;4. Create Auto Scaling Group with previous Launch Config and ELB. Choose
Min, Max instances;5. Create and register Scale Up and Down policy to previous AS Group;6. Create Alarms to trigger Scale Up and Down policies.
19