夫妇约亚马逊EC2问题 [英] Couple of questions about Amazon EC2

查看:116
本文介绍了夫妇约亚马逊EC2问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亚马逊衡量虚拟内核和EC2计算单元方面它们的CPU分配。 EC2计算单元被定义为:

Amazon measures their CPU allotment in terms of virtual cores and EC2 Compute Units. EC2 Compute Units are defined as:

的CPU分配给一个特定的实例中的量是pssed在这些EC2计算单元计前$ P $。我们使用多种基准和测试来管理从一个EC2计算单元性能的一致性和predictability。一个EC2计算单元提供了一个1.0-1.2 GHz的皓龙2007或2007至强处理器相当于CPU的能力。这也相当于我们的原始文件中引用的早2006年1.7 GHz的至强处理器。

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 from 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.

我的问题是,说我有一个大实例,它配备了4个EC2计算单位(2个虚拟内核,每个2个EC2计算单元)。这是否意味着我基本上有4个核心在逻辑意义?我想产卵4 CPU绑定的主题?或者是计算单元只是力量的措施,我有2个内核?

My question is, say I have a "Large Instance" which comes with "4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each)". Does this mean I essentially have 4 cores in a logical sense? Would I want to spawn 4 CPU-bound threads? Or are the compute units simply a measure of power, and I have 2 cores?

此外,考虑到服务器的可扩展性,将是更好的两倍单箱的计算能力和承载在同一机器中的数据库和服务器?或者我应该有2个独立的,弱的盒子?

Also, given the scalability of the servers, would it be better to double the computing power of a single box and host the database and server on the same box? Or should I have 2 seperate, weaker boxes?

推荐答案

nicholaides是正确的,则小实例是一个芯的等效,大两个核心。在测量的剩余部分pssed为计算单位,其定义EX $ P $如下:

nicholaides is correct, the small instances are the equivalent of one core, the large two cores. The remainder of the measurement is expressed as Compute Units, which are defined as follows:

一个EC2计算单元(ECU)提供   的一个的等效CPU容量   1.0-1.2 GHz的皓龙2007或2007至强处理器。

One EC2 Compute Unit (ECU) provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor.

我跑href="http://www.sunsetlakesoftware.com/">我的小网站在一个小实例,既Web服务器和数据库托管一个虚拟机上

I run my small website on a single small instance, with both web server and database hosted on the one virtual machine. I've been impressed with the performance, but again don't have a tremendous amount of load on it.

如果你正在关心的爆炸为您的降压,我想尝试你的设置与一个小实例上运行(1核心,以$ 0.10 1 EC2单位/小时)的服务器和看到如何堆叠起来。下一步行动将是一个高CPU中等实例(2芯,共5个EC2单位为$ 0.20 /小时)。除非你真的骂你的服务器,我不得不相信,你就可以在该单一介质实例上运行它们。为小实例仅价格的两倍,将得到5倍的性能,这是比运行两个小实例好得多。

If all you're caring for is bang for your buck, I'd try your setup with both servers running on a single small instance (1 core, 1 EC2 unit at $0.10 / hour) and see how that stacks up. The next step up would be a high-CPU medium instance (2 cores, 5 total EC2 units at $0.20 / hour). Unless you're really hammering your servers, I have to believe you'll be able to run them on that single medium instance. For only twice the price of the small instance, you get five times the performance, which is much better than running two small instances.

有一点要注意的是,小高的CPU中的实例是32位的,所有其他(大型,特大型,高CPU特大)都是64位。你不能在64位实例上运行32位的亚马逊机器映像,反之亦然。如果你使用的是AMI的股票,这不是一个问题,因为你通常可以找到它的两个版本,但对于一个自定义图像它可能会让你做一些额外的工作。

One thing to be careful of is that the small and high-CPU medium instances are 32-bit, where all others (large, extra large, and high-CPU extra large) are 64-bit. You cannot run a 32-bit Amazon Machine Image on a 64-bit instance, and vice versa. If you're working with a stock AMI, this isn't a problem because you'll usually be able to find both versions of it, but for a custom image it might make you do a little extra work.

这篇关于夫妇约亚马逊EC2问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆