概念 · 基于 CLF-C02
Picking compute by workload
Match the workload to EC2, containers, Lambda, Batch or EMR. Limits rule options out.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- EC2 gives the most control. Containers run on ECS or EKS. Lambda and Fargate are serverless.
- The more AWS manages, the less work you do and the less control you keep.
- Batch runs queues of jobs. Outposts brings compute on premises.
Ask the questions in order. The first yes is the answer.
- You manage
- Code only
- Limit
- Time limit, 10 GB memory
- You manage
- Image and task size
- Limit
- No GPUs. Up to 32 vCPU and 244 GB a task
ECS or EKS on EC2
- You manage
- Nodes and containers
- Limit
- You scale the nodes
- You manage
- Everything above the hardware
- Limit
- You scale and patch
| Option | You manage | Limit |
|---|---|---|
| Code only | Time limit, 10 GB memory | |
| Image and task size | No GPUs. Up to 32 vCPU and 244 GB a task | |
| ECS or EKS on EC2 | Nodes and containers | You scale the nodes |
| Everything above the hardware | You scale and patch |
1 / 2
是什么
SAA gives a workload and a constraint. First rule options out by their limits. Lambda has a time limit per run (15 minutes in most exam material, up to 30 in the current documentation) and 10 GB of memory. Fargate has no GPUs. A special operating system or software licence points to EC2.
Then choose by operations effort. Lambda: code only, event-driven. Fargate: containers with no servers. ECS or EKS on EC2: containers with control over nodes, GPUs and Spot. EC2: full control, any software. Batch: queues of jobs that finish. Amazon EMR: Spark, Hadoop and other big data frameworks.
要记住
- Event-driven and shorter than the time limit: Lambda.
- Containers with no servers: Fargate, with ECS or EKS.
- Containers that need GPUs or special instances: ECS or EKS on EC2.
- Many finite jobs in a queue: AWS Batch.
- Spark or Hadoop clusters: Amazon EMR.
要记住
- Full control, licences, lift and shift: EC2.
考试中
- “Least operational overhead for a short event-driven task” points to Lambda.
- “Containers with no servers to manage” points to Fargate.
- “Thousands of nightly jobs, save with Spot” points to AWS Batch.
- “Run Apache Spark on a managed cluster” points to Amazon EMR.