我需要更多虚拟机,我应该扩展当前的服务器,还是只是购买另一台服务器来托管它们?
目前,我的办公室里有几台物理服务器,在 VMWare 服务器上托管着许多 VMware 来宾操作系统。
我们需要扩大用于进行内部测试和开发的虚拟机数量。
其中一小部分对我们的客户来说是可以访问的,但是它们并没有做任何特别负载密集的事情(CPU、带宽或内存),
其中一台服务器有第二个 CPU 插槽和一些额外的内存空间。 我们目前正在做出以下决定:
- 升级服务器。 目前它是一个 1xQuad 核心 Xeon,具有 4 GB 内存。
- 简单的升级就是添加第二个相同的 CPU,使其成为 2xQuad 核心 Xeon
- 以及升级到 8 GB 内存
- 获取另一台相同规格的服务器(1x 四核 4gig),并将新的虚拟机放在那里。
每个虚拟机实例不会使用超过 1 个虚拟 CPU 或超过 1 GB 内存。 它们中的大多数都是用于特定任务的轻量级 Linux 机器。
我们想知道的问题是,如果我们用 CPU 和 RAM 完全改造我们的服务器并堆积尽可能多的虚拟机,那么 VMWare 及其客户操作系统会受到多大的影响?
这似乎是 VMware 规定的节省电力和机架空间的路线,特别是对于我们的低利用率......但有没有任何经验表明更多的物理机仍然更好?
机器的升级路线对我们来说仍然是一个有吸引力的选择,因为它的价格约为购买同等价格新机器的 1/3 至 1/4。
I've currently got in my office a few physical servers hosting a number of VMware guest OSs off VMWare server.
We need to expand the number of VMs we need to use to do some testing and development in house.
A smattering of them are world accessible for our clients, however they are not doing anything particularly load intensive (CPU, bandwidth or memory)
One of the servers has a second CPU socket and some extra space for memory. We are currently struggling between the decision to:
- Upgrade the server. Currently it's a 1xQuad core Xeon with 4 gigs of ram.
- Simple upgrade would be to add a 2nd identical CPU to make it a 2xQuad core Xeon
- as well as upgrade to 8 gigs of ram
- Get another server of identical specs (1x quadcore 4gig) and put the new VMs on there.
Each VM instance doesn't utilize more than 1 virtual CPU or more than a gig of ram tops. Most of them are rather lightweight linux machines for specific tasks.
The issue we're wondering about is how much of a hit is there to VMWare and its guest OS's, if we completly trick out our server with the CPUs and RAM and pile on as many VMs as possible?
This seems like the VMware prescribed route for saving power and shelf space, especially for our low utilization...but is there any experience that suggests that more physical machines are still better?
The upgrade route for the machine is still an attractive option for us because it is about 1/3 to 1/4 the price of getting a comparably priced new machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我们有与您想要升级到的类似配置。
我们目前运行大约 25 个虚拟机,随着需求的增加,最终将获得完整的 32Gb RAM。 大多数只是供我们的支持团队复制客户环境的测试机器,因此只是 24/7 闲置,我们有 8Gb 物理内存,其中 16Gb 分配给虚拟机 - 通常不是问题,除非我们主动使用多个 Vista 或 Server 2008 虚拟机。
我们经历的第一个升级是获得一个硬件 RAID 卡(以支持 ESXi),它可以提高您难以置信的性能(软件 raid + vista = 呃!),下一步是将 RAM 升级到 12Gb,然后是 16Gb,因为我们添加越来越多的虚拟机。 一旦内存价格下降得足够多,我们将开始用 4Gb 内存条替换成对 2Gb 内存条。
即使在重负载下,我们机器的瓶颈也是内存。 因此,我建议升级您当前的机器,它还有足够的使用寿命。
We have a similar configuration as to what you'd be looking to upgrade to.
We're running about 25 VMs at the moment and will eventually end up with the full 32Gb of RAM as our demands increase. Most are just testing machines for our support team to replicate customer environments so are just idling 24/7, we've got 8Gb physical ram with 16Gb allocated to VMs - usually not a problem unless we're actively using multiple Vista or Server 2008 VMs.
The first upgrade we went thru was to get a hardware RAID card (to support ESXi) which boosted performance like you wouldn't believe (software raid + vista = ugh!), next steps will be upgrading ram to 12Gb, then 16Gb as we add more and more VMs. Once memory price falls enough we'll start replacing pairs of 2Gb sticks with pairs of 4Gb ones.
Even under heavy load, the bottleneck on our machine is memory. So I'd suggest upgrading your current machine, there's plenty of life left in it yet.
我想说升级可能就足够了。 但哎呀,我不知道你的最终要求是什么。
如果您正在做任何需要故障转移的事情,那么您将需要第二台机器来实现冗余。
也就是说,您可能值得花时间从 VMWare 服务器升级到 VMWare esx 或价格更具竞争力的 VMWare esxi(免费)。 esx(i) 在您的硬盘驱动器 (32MB) 或内存中几乎没有占用空间。 假设您的主机位于 Windows 上,这将是一笔巨大的节省。 如果您已经有了一个精简的 Linux 操作系统,那么这种改变可能不值得。
I'd say that upgrading would probably be sufficient. But heck, I don't know what your ultimate requirements are.
If you're doing anything where you're going to need fail over, then you'll want the second machine for redundancy.
That said, it may be worth your time to upgrade from VMWare server to VMWare esx or the more competitively priced VMWare esxi (free). esx(i) have almost no footprint on your hard drive (32MB) or in memory. Assuming your hosting on Windows, that's a big savings. If you've already got a stripped down linux os, the change may not be worth it.
构建当前的机器可以节省购买价格、机架空间、功耗和冷却。 再过 18 个月,当您想要再次扩展时,一台新计算机将完成当前计算机可以执行的所有操作 + 您想要添加的所有新负载,并且比您预期的便宜。
现在购买第二台主机是在出现硬件问题时提供冗余的好方法。 假设您的虚拟机有良好的备份,您可以很快从硬件故障中恢复。
这取决于您真正需要什么。
Building up the current machine is a savings in purchase price, rack space, power draw, and cooling. In another 18 months when you want to expand again, a new computer will do all the current one can do + all the new load you want to put on it, and be cheaper than you expected.
Buying a second host now is a good way to provide redundancy, in case of a hardware issue. Assuming you have good backups of your VMs, you can recover from a hardware failure pretty quickly.
It depends on what you really need.
不要忘记考虑磁盘空间。 除非您有 SAN,否则很难满足少数虚拟机的直连存储要求(空间和速度)。 当您有 6-8 台机器都使用相同的磁盘控制器时,可能会有点争议。
话虽如此,我几乎总是希望在购买新的物理服务器之前扩展虚拟服务器。 不过,ascalonx 和 Jay Bazuzi 提出了很好的观点,如果第一台服务器出现故障,拥有一定程度的冗余虚拟主机对于保持短暂的停机时间至关重要。 我总是想知道我有另一个虚拟服务器可以承担任何可能出现故障的虚拟机主机的负载。 如果您没有,您可能需要考虑购买更多的硬件。
Don't forget to consider disk space. Unless you have a SAN, it can be tough to keep up with direct attached storage requirements (space and speed) of a handful of VMs. When you've got 6-8 machines all using the same disk controller, it can get a bit contentious.
With that said, I almost always look to expand a virtual server before going out to purchase a new physical server. ascalonx and Jay Bazuzi make good points though, having somewhat redundant virtual host can be essential to keeping downtime brief if the first server ever goes down. I always like to know that I have another virtual server that can take the load of any failed VM host that might go down. If you don't have that, you may want to consider getting a bit more hardware.
如果唯一的选择是“升级”或“购买新的”,我会选择升级。 如果引入一台新服务器,而服务器之间没有主动负载平衡,则最终可能会导致一台主机在其容量极限下工作,而另一台主机则闲置并只产生热量。
如果您经常使用虚拟机,您应该考虑一下 VMware 的 ESX 服务器。 借助此功能和 Virtual Center,您可以设置“动态资源调度”,这是一种当达到特定阈值(例如 CPU 或内存负载)时自动在服务器之间移动正在运行的虚拟机的机制。 这样做的缺点是许可成本,并且您的服务器需要访问 SAN。
If the only options are "upgrade" or "buy new" I would go with the upgrade. Bringing in a new server without active load balancing between the servers you could end up with one host working on the limits of its capacity while the other just idles along and only generates heat.
If you are doing really much with VMs you should look into VMwares ESX server. With this and Virtual Center you can set up "dynamic resource scheduling", a mechanism that automatically moves running VMs between servers when certain tresholds (e.g. CPU or memory load) are reached. Downside of this are the licensing costs, and your servers need access to a SAN.
另一个选项是 Amazon EC2。 这可以为您提供很大的可扩展性,即一次可以运行多少台机器。 而且相对于你得到的东西来说,成本相当低。
Another option is Amazon EC2. This can allow you a lot of scalability in terms of how many machines you can have running at one time. And the cost is pretty low for what you get.