ingest: Public Cloud Learning Sessions - EC2 Cost Optimization AWS (2024-05-29)

Source: Cloud & DevOps/Public-Cloud-Learning-Sessions/05_FinOps/public-cloud-learning-sessions-best-practices-for-ec2-cost-optimization-in-aws-2.md

Entities: Mike-Dukes, Steele-Taylor, Spot-Invaders
Concepts: AWS-Nitro, EC2-Spot-Instances, ECS
Concepts updated: Graviton, SpotInstances (added source reference)
This commit is contained in:
2026-04-29 11:38:37 +08:00
parent 070bd42886
commit c3f9de5f9f
11 changed files with 574 additions and 59 deletions

51
wiki/concepts/ECS.md Normal file
View File

@@ -0,0 +1,51 @@
---
title: "Amazon ECS"
type: concept
tags:
- AWS
- ECS
- Containers
- Orchestration
aliases:
- ECS
- Elastic Container Service
- Amazon ECS
last_updated: 2026-05-12
---
## Overview
Amazon ECSElastic Container Service是 AWS 提供的完全托管式容器编排服务,用于在 AWS 上运行 Docker 容器。支持 Fargate无服务器模式和 EC2自管理虚拟机模式两种启动类型。
## Key Features
- **完全托管**AWS 自动管理容器编排基础设施
- **Fargate 启动类型**:无需管理服务器或集群
- **EC2 启动类型**:对底层计算资源有更多控制
- **与 AWS 服务深度集成**IAM、VPC、CloudWatch、Spot 实例等
## Spot Instance Integration
ECS 与 EC2 Spot 实例深度集成:
- 支持 Spot 实例池多样化
- 支持 Spot 中断处理自动化
- 可配合 Auto Scaling 实现弹性
- Spot + Graviton 可实现双重成本优化
## ECS vs EKS
| 特性 | ECS | EKS |
|------|-----|-----|
| 控制复杂度 | 低AWS 原生) | 高Kubernetes 标准) |
| 迁移性 | AWS 锁定 | 跨云可移植 |
| 功能丰富度 | 基础够用 | 生态丰富 |
| Spot 支持 | ✅ | ✅ |
| 适用场景 | AWS 优先,简单需求 | 多云策略,复杂需求 |
## Related Pages
- [[EC2-Spot-Instances]]Spot 实例集成
- [[EKS]]:另一种容器编排选择
- [[Graviton]]:可与 ECS 配合使用降低成本
- [[FinOps]]:成本优化
- [[public-cloud-learning-sessions-best-practices-for-ec2-cost-optimization-in-aws-2]]