服务 · Compute · 基于 CLF-C02
Amazon Elastic Compute Cloud (Amazon EC2)
Placement groups, network adapters, burstable credits, hibernation and tenancy: EC2 choices that change performance.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- An instance starts from an AMI. The type sets CPU and memory.
- Disks are EBS volumes. Security groups act as a firewall.
- You manage the guest operating system.
Cluster
- Layout
- Close together in one AZ
- Use
- Lowest latency, HPC
Spread
- Layout
- Own hardware each, 7 per AZ
- Use
- A few critical instances
Partition
- Layout
- Separate racks per partition
- Use
- Hadoop, Cassandra, Kafka
| Group | Layout | Use |
|---|---|---|
| Cluster | Close together in one AZ | Lowest latency, HPC |
| Spread | Own hardware each, 7 per AZ | A few critical instances |
| Partition | Separate racks per partition | Hadoop, Cassandra, Kafka |
Fast, low-latency network
- ENA
HPC with OS-bypass
- EFA
Keep an IP on failover
- Move a secondary ENI
Per-socket licence
- Dedicated Host
Resume with memory state
- Hibernation
Low average CPU, short spikes
- T instance credits
| Need | Use |
|---|---|
| Fast, low-latency network | ENA |
| HPC with OS-bypass | EFA |
| Keep an IP on failover | Move a secondary ENI |
| Per-socket licence | Dedicated Host |
| Resume with memory state | Hibernation |
| Low average CPU, short spikes | T instance credits |
1 / 2
Fast, low-latency network
- ENA
HPC with OS-bypass
- EFA
Keep an IP on failover
- Move a secondary ENI
Per-socket licence
- Dedicated Host
| Need | Use |
|---|---|
| Fast, low-latency network | ENA |
| HPC with OS-bypass | EFA |
| Keep an IP on failover | Move a secondary ENI |
| Per-socket licence | Dedicated Host |
2 / 2
Resume with memory state
- Hibernation
Low average CPU, short spikes
- T instance credits
| Need | Use |
|---|---|
| Resume with memory state | Hibernation |
| Low average CPU, short spikes | T instance credits |
是什么
Placement groups decide where instances sit on hardware. A cluster group packs instances close together in one AZ for the lowest latency and highest network speed between nodes: HPC and tightly coupled work. A spread group puts each instance on separate hardware, with at most 7 running instances per AZ. A partition group splits instances into partitions on separate racks, for large distributed systems such as Hadoop, Cassandra and Kafka.
是什么
The Elastic Network Adapter (ENA) provides enhanced networking: higher bandwidth, more packets per second and lower latency, up to 100 Gbps. The Elastic Fabric Adapter (EFA) adds OS-bypass for HPC and ML jobs that talk between nodes. An elastic network interface (ENI) is a virtual network card. Move a secondary ENI to a standby instance to keep its IP address on failover.
是什么
T instances earn CPU credits below their baseline and spend them above it. Hibernation saves memory to an encrypted EBS root volume, so a slow-starting app resumes fast. Tenancy is shared by default. A Dedicated Host is a whole server for you, which suits per-socket or per-core licences. The Nitro system gives near bare-metal speed. User data runs at first boot.
要记住
- Cluster: lowest latency, one AZ. Spread: separate hardware, 7 per AZ. Partition: separate racks.
- ENA (enhanced networking): fast networking. EFA: HPC and ML with OS-bypass.
- T instances run on CPU credits. Steady high CPU belongs on M or C.
- Hibernation keeps memory on an encrypted EBS root volume.
要记住
- Dedicated Host: a whole server, for per-socket or per-core licences.
- User data runs once at first boot. Put slow setup in the AMI.
考试中
- “Tightly coupled HPC nodes, lowest network latency” points to a cluster placement group with EFA.
- “A few critical instances, each on different hardware” points to a spread placement group.
- “Hadoop or Kafka nodes must not share racks” points to a partition placement group.
- “Existing per-socket software licences” points to Dedicated Hosts.
- “Resume a slow-starting app with its memory state” points to hibernation.
别和这些弄混
- Instance families and sizingRead the family letter, generation and size, then match CPU, memory, disk and network to the workload.
AWS Auto ScalingPick the scaling policy and metric, set warm-up, and know warm pools, lifecycle hooks and launch templates.
- Instance storeVery fast local disks that are lost when the instance stops. Use them with replication.