有关 Amazon EC2 计算单元的问题
我在 Amazon 上有一个大型 EC2 服务器实例。维基百科上的阅读显示了大型实例的以下详细信息。
7.5 GB memory
4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each)
850 GB instance storage (2×420 GB plus 10 GB root partition)
64-bit platform
I/O Performance: High
API name: m1.large
问:计算单元到底是什么?我知道我不应该将 2 个核心乘以 2 个计算单元来获得 4 个核心,因为在计算机上运行 htop
仅显示 2 个核心。与cat /proc/cpuinfo
相同。
问:我在实例上的任何位置都没有看到 850 G 的存储空间。我该如何利用它?
谢谢
I have a large EC2 server instance on Amazon. Reading on wikipedia shows the following details of a Large Instance.
7.5 GB memory
4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each)
850 GB instance storage (2×420 GB plus 10 GB root partition)
64-bit platform
I/O Performance: High
API name: m1.large
Q: What exactly is a compute unit? I know I shouldn't be multiplying 2 cores with 2 compute units to get 4 cores because running htop
on the machine only shows 2 cores. Same with cat /proc/cpuinfo
.
Q:I do not see 850 G of storage anywhere on the instance. How do I utilize that?
THanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Amazon EC2 使用各种措施为每个实例提供一致且可预测的 CPU 容量。为了方便开发人员比较不同实例类型之间的 CPU 容量,我们定义了 Amazon EC2 计算单元。分配给特定实例的 CPU 量以这些 EC2 计算单元表示。我们使用多个基准测试和测试来管理 EC2 计算单元性能的一致性和可预测性。一个 EC2 计算单元提供与 1.0-1.2 GHz 2007 Opteron 或 2007 Xeon 处理器等效的 CPU 容量。这也相当于我们原始文档中引用的 2006 年初 1.7 GHz Xeon 处理器。随着时间的推移,如果我们找到能让您更清楚地了解计算能力的指标,我们可能会添加或替换 EC2 计算单元定义中的衡量标准。
我会使用 AWS 文档而不是维基百科作为每种实例类型为您提供的确切内容的事实来源。
Amazon EC2 uses a variety of measures to provide each instance with a consistent and predictable amount of CPU capacity. In order to make it easy for developers to compare CPU capacity between different instance types, we have defined an Amazon EC2 Compute Unit. The amount of CPU that is allocated to a particular instance is expressed in terms of these EC2 Compute Units. We use several benchmarks and tests to manage the consistency and predictability of the performance of an EC2 Compute Unit. One EC2 Compute Unit provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor. This is also the equivalent to an early-2006 1.7 GHz Xeon processor referenced in our original documentation. Over time, we may add or substitute measures that go into the definition of an EC2 Compute Unit, if we find metrics that will give you a clearer picture of compute capacity.
I would use the AWS docs rather than Wikipedia as the source of truth for exactly what each instance type gives you.
默认情况下,实例存储未格式化,因此要使用它,您首先需要在其上创建文件系统、格式化并挂载它。
The instance storage is not formatted by default, so to utilize it you first need to create a file system on it, format it, and mount it.
这是 850G 临时存储或实例存储。查看实例存储文档。新 AMI 没有附加该存储,但您可以创建自定义 AMI(请参阅示例)或以编程方式创建实例。
上次使用存储时已对其进行了格式化,但您可以轻松执行此操作,然后将其安装/连接到任何您想要的位置。
This is 850G ephemeral or instance storage. Take look at the Instance Storage docs. The new AMIs do not have that storage attached, but you can create custom AMI (see the example) or create the instance programmatically.
The storage was formatted last time I used it, but you can easily do that and then mount/attach it wherever you want.