在多个服务器上托管重复的Web产品时规划服务器基础结构 [英] Planning server infrastructure when hosting duplicated web-product over multiple servers

查看:93
本文介绍了在多个服务器上托管重复的Web产品时规划服务器基础结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们有一个Web应用程序产品出售给托管在我们服务器上的公司.该产品包含几个Web应用程序,Windows服务和SQL Server数据库.目前,我们只有一位使用我们产品的客户.我们有两台服务器-一台用于Web应用程序和服务,另一台用于数据库.

为了将产品添加到另一个客户端,我们必须复制"所有应用程序和数据库并分别运行.

随着我们开始扩展,有些公司将需要比其他公司更多的服务器功能,我需要计划服务器基础结构.

每个客户端有两个服务器听起来很荒谬.托管费用将是巨大的.当我有10个客户时会发生什么?可能某些服务器会比其他服务器消耗更多的电量,从而使服务器使用其容量的30%,而其他服务器使用70%.
我真正关心的一件事是将数据库与每种产品分开,因此在服务器受损的情况下,只有一个数据库会受到威胁.

所以...我想到了虚拟机...听起来不错吗?我是否需要两个超级服务器来容纳虚拟机实例? (一个用于Web,另一个用于db?)负载平衡/等等如何?是否仅因为使用虚拟机就需要更多的维护时间?有什么硬件建议吗?

任何帮助将不胜感激

非常感谢

Hi all,

We have a web-application product that we sell to companies that is hosted at our servers. The product contains couple of web applications, windows services and SQL server db. Right now we have only one client that uses our product. We have two servers - one for the web apps and services and other for the db.

In order to add the product to another client, we have to ''duplicate'' all the apps and db and run in separately.

As we started expanding and some companies will require more server power then others, I need to plan the servers infrastructure.

Having two servers for each client sounds ridiculous. Hosting costs will be huge. What will happen when I''ll have 10 clients? And probably some servers will take more power than others, leaving servers using 30% from their capacity while others use 70%.

One thing I really care about is separating the DB from each product so in case of server compromise, only one db will be at risk.

So... I thought about Virtual Machines... Does it sounds right? Do I need two super servers to hold virtual machine instances? (one for web and other for db?) What about Load balancing / etc..? Will it require more maintenance time only because I use virtual machines? Are there any hardware recommendations?

Any help will be appreciated

Many thanks

推荐答案

使用VM.

那里的每个托管公司都使用VM,因为它们是物超所值的最佳选择.在任何半体面的Xenon处理​​器上,单个Web服务器的CPU使用率很少超过30%.

您需要注意的区域是RAM消耗.

因此,我的建议是使用群集服务器设置,您可以选择进行负载平衡,但这会带来复制问题,我认为您还没有准备好.理想情况下,将所有硬盘驱动器都放在一个SAN中,并为数据库提供一个辅助SAN.但是,SAN很昂贵.

所以.您可以菊花链式连接RAID5热插拔HD,以复制WebServer VM集合的数据.为了安全起见,我会使用场外备份对您的数据库进行物理镜像.

如果这没有什么意义,那么说实话,您需要雇用一个知道他们在做什么的人,因为您的代码可能很棒,但是如果您的物理环境很糟糕,则您的应用程序将遭受损失.
Use VMs.

Every hosting company out there uses VMs because they''re the best bang for your buck. A single web-server rarely exceeds 30% CPU usage on any semi-decent Xenon processor.

The area you need to watch for is RAM consumption.

So my suggestion is a clustered server setup that you can choose to load-balance, but that opens replication issues I don''t think you''re ready for. Ideally, you''d have all the hard-drives in a single SAN with a secondary SAN for your DB. However, SANs are expensive.

So. You can daisy chain RAID5 hot-swappable HDs for data replication for your WebServer VM collection. I would do physical mirroring of your Database(s) with an off-site backup for safety.

If this isn''t making much sense, then honestly you need to hire someone who knows what they''re doing because your code can be amazing, but if your physical environment is terrible, your application will suffer.


这篇关于在多个服务器上托管重复的Web产品时规划服务器基础结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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