EC2 Advanced Flashcards
Cluster placement Group
Place your EC2 instances next to each other which gives you high-performance computing and networking.
Elastic IP
Elastic IP is a public IPV4 that you own as long as you want and you can attach it to one EC2 instance at a time.
Used if you need to have a fixed public IP for your instance.
Placement Groups
- Sometimes you want control over the EC2 Instance placement strategy
- That strategy can be defined using placement groups
- When you create a placement group, you specify one of the following strategies for the group:
- Cluster—clusters instances into a low-latency group in a single Availability Zone
- Spread—spreads instances across underlying hardware (max 7 instances per
group per AZ) - Partition—spreads instances across many different partitions (which rely on different sets of racks) within an AZ. Scales to 100s of EC2 instances per group (Hadoop, Cassandra, Kafka)
Spread Placement Group
Places EC2 instances on different physical hardware across different AZs
ENI
Elastic Network Interface.
Logical component in a VPC that represents a
virtual network card
* The ENI can have the following attributes:
* Primary private IPv4, one or more secondary IPv4 * One Elastic IP (IPv4) per private IPv4
* One Public IPv4
* One or more security groups
* A MAC address
* You can create ENI independently and attach them on the fly (move them) on EC2 instances for failover
* Bound to a specific availability zone (AZ)
EC2 Hibernate
Amazon EC2 signals the operating system to perform hibernation (suspend-to-disk). The hibernation freezes all of the processes, saves the contents of the RAM to the EBS root volume, and then performs a regular shutdown. After the shutdown is complete, the instance moves to the stopped state.
Private IP
machine can only be identified on a private network
IP must be unique across the private network
two different private networks (two companies) can have the same IPs.
Machines connect to WWW using NAT device + internet gateway
Public IP
machine can be identified on the internet
must be unique across the whole web (no two machines can share the same public IP)
can be geo-located easily
Cluster Placement Groups
Pros: Great Network
Cons: if AZ fails, all instances fail at the same time
Use Case: Big data job that needs to complete fast. applications that need extremely low latency and high network throughput
Spread Cluster Groups
all EC2 instances are located on different hardware.
pros: can span across AZs. reduced risk is simultaneous.
cons: limited to 7 instances per AZ per placement group.
Use Case: application that needs to maximize high availability. Critical Applications where each instance must be isolated from failure from each other.
Partition
Instances spread across partitions in multiple AZs. each partition is in its own rack.
pros: can span across multiple AZs in same region. up to 100s of EC2 instances. the instances do not share the hardware physical rack with instances in the other partitions so each partition is isolated from failure.
use case: big data applications HDFS, HBase, Cassandra, Apache Kafka.
Elastic Network Interfaces
Logical component in a VPC that represent a virtual network card. provides instance network connectivity. It enables data to be sent and received between the computer and other network-connected devices, such as routers or switches.
EC2 Hibernate
When EC2 Instance stops running, In-memory (RAM) state is preserved.
the RAM state is written to a file in the root EBS volume.