# 亚马逊弹性计算云

**亚马逊弹性计算云**（Amazon Elastic Compute Cloud，简称Amazon EC2）是[亚马逊云科技](https://www.edgepedia.org/zh/amazon-web-services)（AWS）推出的一项Web服务，以虚拟服务器的形式在云端提供可调整的计算容量，这些虚拟服务器被称为实例，由客户自行启动、配置并按使用量付费。它于2006年在[Amazon S3](https://www.edgepedia.org/zh/amazon-s3)推出几个月后上线，让客户能够即时获得计算机处理能力，与S3的存储服务形成互补。<sup>[1](https://aws.amazon.com/about-aws/our-origins/)</sup>一份关于云计算的国会报告将同在2006年上线的S3和EC2描述为两项基础性的基础设施即服务（IaaS）产品，AWS正是凭借它们开创了这一领域。<sup>[2](https://www.govinfo.gov/content/pkg/CPRT-117HPRT47832/pdf/CPRT-117HPRT47832.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | AWS云中的一台虚拟服务器（实例），通过AWS控制台、API或其他AWS计算服务启动和管理<sup>[3](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html)</sup> |
| 上线时间 | 2006年，在Amazon S3（2006年3月14日上线）之后几个月<sup>[1](https://aws.amazon.com/about-aws/our-origins/)</sup><sup> • </sup><sup>[4](https://aws.amazon.com/blogs/aws/eight-years-and-counting-of-cloud-computing/)</sup> |
| 定价模式 | 按需、竞价（较按需价格最高可省90%）、预留实例（最高可省75%）和节省计划<sup>[5](https://d1.awsstatic.com/whitepapers/aws_pricing_overview.pdf?did=wp_card&trk=w+p_card)</sup> |
| 虚拟化平台 | AWS Nitro系统，提供裸金属能力，为需要完全访问宿主机硬件的负载消除虚拟化开销<sup>[6](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html)</sup> |
| 自研处理器 | AWS Graviton Arm处理器；基于Graviton5的M9g和M9gd通用型实例已正式可用<sup>[7](https://aws.amazon.com/blogs/aws/amazon-ec2-r9g-and-r9gd-instances-powered-by-aws-graviton5-processors-are-now-generally-available/)</sup> |
| 加速选项 | G5实例，最多搭载8块NVIDIA A10G Tensor Core GPU；Inf2实例基于AWS Inferentia2构建，面向深度学习和生成式AI推理<sup>[8](https://docs.aws.amazon.com/pdfs/decision-guides/latest/machine-learning-on-aws-how-to-choose/machine-learning-on-aws-how-to-choose.pdf)</sup> |
| 客户责任 | 在共享责任模型下，EC2客户负责全部韧性配置和管理工作，包括多可用区部署和自动扩缩容<sup>[9](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/shared-responsibility-model-for-resiliency.html)</sup> |

## 实例与Nitro系统

EC2实例是AWS云中的一台虚拟服务器。客户选择一种实例类型——即处理器、内存、存储和网络容量的具名组合——然后从机器镜像启动它；成功启动后会返回一个实例ID，可在EC2控制台的“实例”页面进行监控。<sup>[3](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html)</sup><sup> • </sup><sup>[10](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html)</sup>

大多数现代实例运行在AWS Nitro系统上，这是AWS构建的一套硬件和软件组件集合，旨在实现高性能、高可用和高安全性。Nitro系统将网络、存储和虚拟化功能卸载到专用硬件，并提供裸金属能力以消除虚拟化开销，支持那些需要完全访问宿主机硬件的负载。<sup>[6](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html)</sup><sup> • </sup><sup>[11](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-types.pdf)</sup>Nitro虚拟机监控程序对服务器的物理资源进行分区，并且与其他虚拟化技术不同，它不实现AWS云基础设施所不需要的通用管理功能。<sup>[12](https://aws.amazon.com.cdn.amazon.com/ec2/nitro/nitro-enclaves/faqs/)</sup>

在Nitro系统之上，AWS还提供Nitro Enclaves——附加到EC2实例上的虚拟机，不带持久存储、不提供交互式访问、也没有外部网络，从而将敏感代码与父实例隔离。大多数基于Nitro系统构建的Graviton、Intel和AMD实例类型均支持Enclaves。<sup>[12](https://aws.amazon.com.cdn.amazon.com/ec2/nitro/nitro-enclaves/faqs/)</sup>

## 实例族与处理器

实例类型按面向不同负载划分为多个族：通用型、内存优化型、计算优化型、存储优化型和加速计算型等。新类型持续发布；近期新增的包括由AWS Graviton5处理器驱动的R9g和R9gd内存优化型实例，以及搭载定制第六代Intel Xeon可扩展处理器（Granite Rapids）和AWS Nitro v6网卡的M8idn、M8idb、R8idn和R8idb实例。<sup>[13](https://docs.aws.amazon.com/ec2/latest/instancetypes/doc-history.html)</sup><sup> • </sup><sup>[7](https://aws.amazon.com/blogs/aws/amazon-ec2-r9g-and-r9gd-instances-powered-by-aws-graviton5-processors-are-now-generally-available/)</sup>

**Graviton。** AWS通过[Annapurna Labs](https://www.edgepedia.org/zh/annapurna-labs)设计自有的Arm架构Graviton处理器。Graviton5 CPU采用基于台积电3nm工艺的芯粒设计，将四颗各含48个Arm核心的计算裸片组合为总共192个核心，每核心配备1 MB专用缓存，并有12条DDR5内存通道，运行速度最高可达DDR5-8800。它通过M9g和M9gd通用型实例正式可用，这使其成为首款商用可用的、支持PCIe 6.0的云处理器，领先于AMD和Intel的同类产品。<sup>[14](https://www.techradar.com/pro/aws-pipped-amd-and-intel-to-the-first-cpu-supporting-pcie-6-0-and-you-can-now-finally-rent-it-by-the-hour-but-dont-expect-any-miracles)</sup>Graviton实例用于大规模的成本敏感型负载：一级方程式集团依靠由Graviton2驱动的EC2实例，将其计算流体力学负载的运行成本降低了30%。<sup>[15](https://aws.amazon.com/hpc/customers/)</sup>

**加速实例。** 面向机器学习和图形处理，G5实例最多搭载8块NVIDIA A10G Tensor Core GPU和第二代AMD EPYC处理器；而基于AWS Inferentia2芯片构建的Inf2实例则专为高性能、低成本的深度学习和生成式AI推理而设计。<sup>[8](https://docs.aws.amazon.com/pdfs/decision-guides/latest/machine-learning-on-aws-how-to-choose/machine-learning-on-aws-how-to-choose.pdf)</sup>

## 定价模式

EC2按使用量计费，AWS提供多种购买选项，以承诺换取折扣：<sup>[5](https://d1.awsstatic.com/whitepapers/aws_pricing_overview.pdf?did=wp_card&trk=w+p_card)</sup>

- **竞价实例**让客户对闲置的EC2容量出价，价格较按需价格最高可省90%；它们适合可中断、容错型负载，与EC2自动扩缩容结合使用时，当闲置容量使竞价实例比常规容量更便宜时，作业便可扩容。<sup>[5](https://d1.awsstatic.com/whitepapers/aws_pricing_overview.pdf?did=wp_card&trk=w+p_card)</sup><sup> • </sup><sup>[16](https://d0.awsstatic.com/whitepapers/Intro_to_HPC_on_AWS.pdf)</sup>
- **预留实例**在做出承诺的前提下提供大幅折扣，较按需定价最高可省75%。<sup>[5](https://d1.awsstatic.com/whitepapers/aws_pricing_overview.pdf?did=wp_card&trk=w+p_card)</sup>亚马逊还运营着一个预留实例市场，用户可以在其中公开挂牌出售其预留的剩余时长，价格由用户自定。<sup>[17](https://arxiv.org/abs/2005.12249)</sup>
- **节省计划**承诺每小时固定的计算使用金额，从而在EC2及其他计算服务上享受折扣费率。<sup>[18](https://www.youtube.com/watch?v=-t148tYgnJU)</sup>

在机器学习训练方面，AWS销售EC2容量块，即对GPU容量的预留。2026年初，AWS将容量块价格上调约15%：在大多数区域，p5e.48xlarge实例从每小时34.61美元涨至39.80美元，p5en.48xlarge从36.18美元涨至41.61美元。<sup>[19](https://www.itpro.com/cloud/cloud-computing/aws-amazon-ec2-capacity-blocks-price-increase)</sup>

## 共享责任与运营

EC2是一项基础设施服务，因此与客户之间的分工范围很广。根据AWS良好架构框架的可靠性指导，像EC2这样的服务要求客户执行所有必要的韧性配置和管理任务：部署EC2实例的客户负责将其部署在多个位置（如AWS可用区），利用自动扩缩容等服务实现自愈，并对实例上安装的应用程序采用韧性负载架构实践。<sup>[9](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/shared-responsibility-model-for-resiliency.html)</sup>

互联网的许多部分对EC2及邻近服务的依赖，在2025年10月的一次AWS故障中显露无遗：期间一个又一个可用区出现EC2实例启动失败和网络连接问题，这些故障被逐一缓解，同时积压的失败操作也被逐步清理。<sup>[20](https://www.tomsguide.com/news/live/amazon-outage-october-2025)</sup>

## 工作负载

EC2服务于广泛的计算模式。在高性能计算方面，AWS将EC2与S3、亚马逊弹性块存储（EBS）以及配置固态硬盘的高I/O实例类型一并定位，竞价实例和AWS Batch适合基因组学、金融风险分析、地震成像和机器学习等领域中面向批处理的科学作业。<sup>[16](https://d0.awsstatic.com/whitepapers/Intro_to_HPC_on_AWS.pdf)</sup><sup> • </sup><sup>[15](https://aws.amazon.com/hpc/customers/)</sup>自其诞生早期起，学术界便研究将EC2用于科学工作流，将商业云的性能与成本同典型的HPC系统进行比较。<sup>[21](https://arxiv.org/abs/1005.2718)</sup>在业界应用中，EC2的GPU容量与Amazon ECS等容器服务结合，用于持续的机器学习训练流水线。<sup>[22](https://arxiv.org/abs/2610.06890)</sup>

## 市场地位

AWS是全球最大的云计算提供商，在全球运营着超过125个数据中心；在TechRadar 2025年的一项对比中，Amazon EC2被评为冗余性和可靠性最佳的IaaS提供商。<sup>[23](https://www.techradar.com/news/best-iaas-provider)</sup>在欧洲，AWS、微软Azure和谷歌云合计控制着该地区超过三分之二的云计算市场，这种集中度正是当前关于主权云产品讨论的根源。<sup>[24](https://www.techradar.com/pro/who-really-controls-your-data-the-test-of-sovereign-cloud)</sup>

## References

1. [Our Origins, Amazon Web Services](https://aws.amazon.com/about-aws/our-origins/)
2. [AWS pioneered cloud computing, congressional hearing record, govinfo.gov](https://www.govinfo.gov/content/pkg/CPRT-117HPRT47832/pdf/CPRT-117HPRT47832.pdf)
3. [What is Amazon EC2? Amazon EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html)
4. [Eight Years (And Counting) of Cloud Computing, AWS News Blog](https://aws.amazon.com/blogs/aws/eight-years-and-counting-of-cloud-computing/)
5. [How AWS Pricing Works: AWS Pricing Overview (archived white paper)](https://d1.awsstatic.com/whitepapers/aws_pricing_overview.pdf?did=wp_card&trk=w+p_card)
6. [Instances built on the AWS Nitro System, Amazon EC2 documentation](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html)
7. [Amazon EC2 R9g and R9gd instances powered by AWS Graviton5 processors are now generally available, AWS News Blog](https://aws.amazon.com/blogs/aws/amazon-ec2-r9g-and-r9gd-instances-powered-by-aws-graviton5-processors-are-now-generally-available/)
8. [Choosing an AWS machine learning service, AWS Decision Guide](https://docs.aws.amazon.com/pdfs/decision-guides/latest/machine-learning-on-aws-how-to-choose/machine-learning-on-aws-how-to-choose.pdf)
9. [Shared Responsibility Model for Resiliency, AWS Well-Architected Reliability Pillar](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/shared-responsibility-model-for-resiliency.html)
10. [Get started with Amazon EC2, Amazon EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html)
11. [Amazon EC2 Instance Types guide (PDF)](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-types.pdf)
12. [AWS Nitro Enclaves FAQs](https://aws.amazon.com.cdn.amazon.com/ec2/nitro/nitro-enclaves/faqs/)
13. [Document history for the Amazon EC2 Instance Types Guide](https://docs.aws.amazon.com/ec2/latest/instancetypes/doc-history.html)
14. [AWS pipped AMD and Intel to the first CPU supporting PCIe 6.0, TechRadar Pro](https://www.techradar.com/pro/aws-pipped-amd-and-intel-to-the-first-cpu-supporting-pcie-6-0-and-you-can-now-finally-rent-it-by-the-hour-but-dont-expect-any-miracles)
15. [Customer Stories for HPC on AWS](https://aws.amazon.com/hpc/customers/)
16. [Introduction to HPC on AWS, white paper](https://d0.awsstatic.com/whitepapers/Intro_to_HPC_on_AWS.pdf)
17. [No Reservations: A First Look at Amazon's Reserved Instance Marketplace, arXiv](https://arxiv.org/abs/2005.12249)
18. [Amazon/AWS EC2 Pricing Simply Explained, Tiny Technical Tutorials](https://www.youtube.com/watch?v=-t148tYgnJU)
19. [AWS just quietly increased EC2 Capacity Block prices, ITPro](https://www.itpro.com/cloud/cloud-computing/aws-amazon-ec2-capacity-blocks-price-increase)
20. [AWS was down, live updates, Tom's Guide](https://www.tomsguide.com/news/live/amazon-outage-october-2025)
21. [Scientific Workflow Applications on Amazon EC2, arXiv](https://arxiv.org/abs/1005.2718)
22. [Event-Driven ML Pipeline Orchestration for Manufacturing, arXiv](https://arxiv.org/abs/2610.06890)
23. [Best IaaS provider of 2025, TechRadar](https://www.techradar.com/news/best-iaas-provider)
24. [Who really controls your data? The test of sovereign cloud, TechRadar Pro](https://www.techradar.com/pro/who-really-controls-your-data-the-test-of-sovereign-cloud)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Cloud, virtualization, and containers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/amazon-elastic-compute-cloud

English original: https://www.edgepedia.org/amazon-elastic-compute-cloud
