EC2 Flashcards
How to run systems in EC2?
RunInstances API call – start instance (up to 20 on-demand instances).
DescribeInstances – check status;
TerminateInstance – terminate;
StopInstance – release the compute resources but preserve the data on the boot partition.
StartInstances – restart instance with EBS boot partition.
use Spot instances to reduce your computing costs.
local instance store vs. EBS for root device
the local instance store only persists during the life of the instance. This is an inexpensive way to launch instances where data is not stored to the root device.
By using Amazon EBS, data on the root device will persist independently from the lifetime of the instance.
This enables you to stop and restart the instance at a subsequent time, which is similar to shutting down your laptop and restarting it when you need it again.
Does Amazon EC2 use ECC memory?
Yes
Instance Types
General Purpose, Compute Optimized, Memory Optimized, Storage Optimized and Accelerated Computing instances. GPU
General Purpose
have memory to CPU ratios suitable for most general purpose applications and come with fixed performance (M5, M4) or burstable performance (T2);
Compute Optimized Instances
Compute Optimized instances (C5, C4) have proportionally more CPU resources than memory (RAM) and are well suited for scale out compute-intensive applications and High Performance Computing (HPC) workloads;
Memory Optimized Instances
(X1e, X1, R4) offer larger memory sizes for memory-intensive applications, including database and memory caching applications;
Accelerating Computing instances
P3, P2, G3, F1) take advantage of the parallel processing capabilities of NVIDIA Tesla GPUs for high performance computing and machine/deep learning; GPU Graphics instances (G3) offer high-performance 3D graphics capabilities for applications using OpenGL and DirectX; F1 instances deliver Xilinx FPGA-based reconfigurable computing;
Storage Optimized Instances
H1, I3, D2) that provide very high, low latency, I/O capacity using SSD-based local instance storage for I/O-intensive applications, with D2 or H1, the dense-storage and HDD-storage instances, provide local high storage density and sequential I/O performance for data warehousing, Hadoop and other data-intensive applications
EC2 Compute Unit
The amount of CPU that is allocated to a particular instance is expressed in terms of these EC2 Compute Units. The EC2 Compute Unit (ECU) provides the relative measure of the integer processing power of an Amazon EC2 instance.
Elastic IP
By default, all accounts are limited to 5 Elastic IP addresses per region. charged even not associated to a running instance.
Nitro Hypervisor
provides CPU and memory isolation for EC2 instances.
VPC networking and EBS storage resources are implemented by dedicated hardware components, Nitro Cards that are part of all current generation EC2 instance families. The Nitro Hypervisor is built on core Linux Kernel-based Virtual Machine (KVM) technology, but does not include general-purpose operating system components.
How does the Nitro Hypervisor benefit customers?
The Nitro Hypervisor provides consistent performance and increased compute and memory resources for EC2 virtualized instances by removing host system software components. It allows AWS to offer larger instance sizes (like c5.18xlarge) that provide practically all of the resources from the server to customers. Previously, C3 and C4 instances each eliminated software components by moving VPC and EBS functionality to hardware designed and built by AWS. This hardware enables the Nitro Hypervisor to be very small and uninvolved in data processing tasks for networking and storage.
How many EBS volumes and Elastic Network Interfaces (ENIs) can be attached to instances running on the Nitro Hypervisor?
Instances running on the Nitro Hypervisor support a maximum of 27 additional PCI devices for EBS volumes and VPC ENIs. Each EBS volume or VPC ENI uses a PCI device. For example, if you attach 3 additional network interfaces to an instance that uses the Nitro Hypervisor, you can attach up to 24 EBS volumes to that instance.
Instance purchase options
On-Demand instances; maximum 20 per region
reserved instances – cheaper than on-demand, guaranteed access for the availability zone in which you purchased it.
Spot instances – allow you to bid a maximum price; not as reliable, but usually helps save costs; maximum 20 per region and not available in all region.
Free tier;
dedicated host
Different instances sizes
Micro;
Small;
Medium;
Large
Pricing
Compute time; Data transfer; Storage; ElasticIP address Monitoring Elastic load balancer free tier
IP Addresses
each instance is assigned a public IP address
each instance is assigned a public cname
each instance is assigned a private IP address
Elastic IP address: can create 5 per aws account by default; static IP address Useful for failovers.
Storage basics
S3;
EBS volume – Permanent sorage; replicated within te availability Zone; provides the ability to take snapshots; automatically mounted to the file system(/dev/sda1);
Instance store volumes – Ephemeral storage; physically attached to the host computer for the instance;