Greetings!
I'd like to build an apache web server, running on debian lenny.
我想在debian lenny上运行一个apache web服务器。
It will primarily be used for hosting a web-shop, so it should have some light db i/o and lots of image serving (item previews/thumbs/etc...).
它主要用于托管网店,所以它应该有一些轻量级的数据库i / o和大量的图像服务(项目预览/拇指/等...)。
It's tough to put a finger on the exact number of concurrent requests that I'll get hit with, but I'd say that a non-professional setup should be enough to handle them.
很难指出我会遇到的并发请求的确切数量,但我会说非专业设置应该足以处理它们。
By non-professional I mean that I don't need to invest into purchasing blades, a rack or something of the like. Just regular desktop PC tweaked for web server performance.
非专业人士,我的意思是我不需要投资购买刀片,机架或类似的东西。只是常规台式PC调整为Web服务器性能。
Which exposes my current problem: I have no idea whatsoever what kind of a machine I should be looking for.
这暴露了我当前的问题:我不知道我应该寻找什么样的机器。
If I'd like to build a gaming rig, no problem - there are at least a million sites out there with performance benches, from bleeding edge graphic card reviews to flat panel LCD contrast/response time charts. But when it comes to trying to find reccomendations for a web server based build, I'm having a hard time finding a good RECENT review.
如果我想建立一个游戏装备,没问题 - 至少有一百万个站点有性能台,从最前沿的图形卡评论到平板LCD对比/响应时间表。但是,当尝试找到基于Web服务器的构建的推荐时,我很难找到一个好的最新审查。
So, at least I've managed to gather this so far - these are the priorities I should be attending to:
所以,至少到目前为止我已经设法收集了这些 - 这些是我应该参加的优先事项:
1) Lots of memory (preferably fast) 2) A pair of fast HDDs 3) As many cores as I can get 4) As fast processor as I can get 5) A MB with good I/O
So, memory and HDDs aren't that big of a deal, you can't go wrong here (I guess). With the RAM prices these days, it's pretty affordable to pump 8+ Gb into a machine.
因此,内存和硬盘驱动器不是那么大的交易,你不能在这里出错(我猜)。有了这些天的RAM价格,将8+ Gb泵入机器是非常实惠的。
The only question here is, would it be worth it to buy a tiny (<=32 Gb) SSD and place all my web stuff and OS onto it. My entire web server is just a couple of megs in size + the database will fit really neatly onto it with space to boot.
这里唯一的问题是,购买一个小型(<= 32 Gb)SSD并将我所有的网络内容和操作系统放在上面是否值得。我的整个Web服务器只有两个大小的数量+数据库将非常巧妙地适合它,并具有引导空间。
As for the graphics card, I'll just plug in any old PCI Ex card I can whip up, and the same goes for any peripherals. I don't need a display of any kind - I'll be logging in remotely for most of the time.
至于显卡,我只需插入任何可以掀起的旧PCI PCI卡,对于任何外设都是如此。我不需要任何类型的显示 - 我将在大多数时间远程登录。
OK - and now for the most important question: Which Proc and MB to buy. As far as I've gathered - it would be better to have 10 cores running at 100 Mhz each than only one running at 2 Ghz, taking the nature of the machine into consideration.
好的 - 现在是最重要的问题:要购买哪种Proc和MB。据我所知 - 最好让10个内核以100 Mhz运行,而不是只运行2 Ghz,考虑到机器的性质。
So I'll most likely have to get a quad core, right? The question is which... :/
所以我很可能必须得到一个四核,对吧?问题是哪个......:/
For there are several affordable... My budget is around US $800. This is, again, for just the proc, the MB, and the memory. I have the HDDs. If I take a small SSD, add $100 to that budget.
因为有几个实惠...我的预算是800美元左右。这也是proc,MB和内存的唯一原因。我有硬盘驱动器。如果我拿一个小型SSD,就可以为该预算增加100美元。
AMD Phenom or Intel Core 2? Which MB to go with it? I'm totally lost here.
AMD Phenom还是Intel Core 2?哪个MB跟它一起去?我完全迷失在这里。
If this will start an AMD vs. Intel flame war, I'm truly sorry, for this is not my intention - but if you could at least point me to a good recent review for a web server build I would ge grateful.
如果这将启动AMD与英特尔的火焰战争,我真的很抱歉,因为这不是我的意图 - 但如果你至少可以指出我最近对网络服务器构建的评论,我将非常感激。
5 个解决方案
#1
On the one hand you say you don't need that much performance but on the another you are talking about adding as many cores as you can. A quad core CPU of either AMD or Intel will be more than sufficient. It gets into the category of "religious war" but i prefer the Intel chips; I usually buy Xeon processors. As far as SSD, I wouldn't bother. Look into a good RAID setup with a 3Ware controller; either RAID 1+0 or RAID 5 (obviously, there will be a religious anti-RAID5 crowd, though I prefer it .. at least until RAID 6 is more widespread). As much memory as you can afford is ideal, although anything more than 8 is probably overkill from what you have said. Probably the main departure from what you have already listed is that I wouldn't even bother with the SSD. Depending on your usage patterns, you may actually hurt performance with it and any benefits for your use cases would not be worth the costs. Wait for the research to catch up for SSD to really be beneficial in terms of performance. :)
一方面,你说你不需要那么多的性能,但另一方面,你在谈论尽可能多地添加核心。 AMD或英特尔的四核CPU将绰绰有余。它进入了“宗教战争”的范畴,但我更喜欢英特尔芯片;我通常买Xeon处理器。至于SSD,我不会打扰。使用3Ware控制器查看良好的RAID设置;无论是RAID 1 + 0还是RAID 5(显然,会有一个宗教的反RAID5人群,但我更喜欢它......至少在RAID 6更广泛之前)。尽可能多的内存是理想的,尽管超过8的内存可能与你所说的相差无几。可能与你已经列出的内容的主要不同之处在于我甚至不愿意使用SSD。根据您的使用模式,您实际上可能会损害它的性能,并且您的用例的任何好处都不值得花费。等待研究赶上SSD在性能方面真正有益。 :)
If this is a business server, I recommend buying one pre-configured from IBM, Dell, or whatever major manufactuer is your preference (I prefer IBM).
如果这是一个商业服务器,我建议购买一个从IBM,戴尔或任何主要制造商预先配置的服务器(我更喜欢IBM)。
#2
This is really a stretch for the "right" kind of question for SO. Only in degrees though "implementation."
这对SO的“正确”问题来说真是一个延伸。只有在“实施”的程度上。
Pre-configured "Server" machines can often be more cost-beneficial. But, if you'd still prefer to build your own...
预先配置的“服务器”机器通常可以更具成本效益。但是,如果你还是喜欢建立自己的......
Considering just your budget ($800) for MB, Proc, and Memory...
仅考虑MB,Proc和Memory的预算(800美元)......
RAM - DDR2 800 ($200/4GB, and cheaper)
内存 - DDR2 800(200美元/ 4GB,更便宜)
MB - 1333/1066MHz FSB ($250)
MB - 1333 / 1066MHz FSB(250美元)
CPU - Dual Core ($150)
CPU - 双核(150美元)
Quad Core can still be too expensive for the benefit -- but, that's up to you to judge.
四核仍然可能过于昂贵 - 但是,这取决于你判断。
But, follow the links, and use the Advanced Search to cross out unnecessary features, and you should be able to reduce the list of items fairly easily.
但是,请按照链接,使用高级搜索来删除不必要的功能,您应该能够相当容易地减少项目列表。
#3
Have you considered shared, dedicated, or virtual hosting? If I were you, I'd go with SliceHost for the virtual server, then use Amazon S3 for serving up images and other large static files. The combination has worked well for me in the past. I've found that, especially when it comes to hosting, don't take on more responsibility than you absolutely have to.
您是否考虑过共享,专用或虚拟主机?如果我是你,我会选择SliceHost作为虚拟服务器,然后使用Amazon S3提供图像和其他大型静态文件。这种组合在过去对我有用。我发现,特别是在托管时,不要承担比你绝对必须承担的更多责任。
#4
I use MediaTemple for my websites. They have a lot of professional organizations hosted on there servers. I'd probably go with them if I were you.
我在我的网站上使用MediaTemple。他们在服务器上托管了很多专业组织。如果我是你,我可能会和他们一起去。
My dad thought the server route would be easy and we found out differently the hard way. If you don't have a friend or an employee that really knows what he's doing, I'd be careful. Anyways, good luck.
我父亲认为服务器路线很简单,我们发现不同的方法。如果你没有真正知道自己在做什么的朋友或员工,我会小心的。无论如何,祝你好运。
#5
If you're not planning on running the next Amazon, I'd say that your choice of CPU/chipset is irrelevant. Find a motherboard with the features you need (4+ RAM slots, plenty of SATA headers, etc) that suits your budget and then buy a upper midrange multicore CPU to suit. Get a PCI express RAID card and a meaty UPS too.
如果您不打算运行下一个亚马逊,我会说您选择的CPU /芯片组是无关紧要的。找到一个具有您需要的功能的主板(4个以上的RAM插槽,大量的SATA接头等),以满足您的预算,然后购买适合您的中高端多核CPU。获得PCI Express RAID卡和多功能UPS。
Get a vanilla hard drive for the OS, and a pair of fast drives (WD Velociraptors, etc) and put them in RAID 1 for the webserver for redundancy.
获取操作系统的香草硬盘驱动器,以及一对快速驱动器(WD Velociraptors等),并将它们放入RAID 1中,以便为网络服务器提供冗余。
Then, after a year or so or restarting the server every other day, migrate everything to a hosting company.
然后,在一年左右或每隔一天重新启动服务器后,将所有内容迁移到托管公司。
#1
On the one hand you say you don't need that much performance but on the another you are talking about adding as many cores as you can. A quad core CPU of either AMD or Intel will be more than sufficient. It gets into the category of "religious war" but i prefer the Intel chips; I usually buy Xeon processors. As far as SSD, I wouldn't bother. Look into a good RAID setup with a 3Ware controller; either RAID 1+0 or RAID 5 (obviously, there will be a religious anti-RAID5 crowd, though I prefer it .. at least until RAID 6 is more widespread). As much memory as you can afford is ideal, although anything more than 8 is probably overkill from what you have said. Probably the main departure from what you have already listed is that I wouldn't even bother with the SSD. Depending on your usage patterns, you may actually hurt performance with it and any benefits for your use cases would not be worth the costs. Wait for the research to catch up for SSD to really be beneficial in terms of performance. :)
一方面,你说你不需要那么多的性能,但另一方面,你在谈论尽可能多地添加核心。 AMD或英特尔的四核CPU将绰绰有余。它进入了“宗教战争”的范畴,但我更喜欢英特尔芯片;我通常买Xeon处理器。至于SSD,我不会打扰。使用3Ware控制器查看良好的RAID设置;无论是RAID 1 + 0还是RAID 5(显然,会有一个宗教的反RAID5人群,但我更喜欢它......至少在RAID 6更广泛之前)。尽可能多的内存是理想的,尽管超过8的内存可能与你所说的相差无几。可能与你已经列出的内容的主要不同之处在于我甚至不愿意使用SSD。根据您的使用模式,您实际上可能会损害它的性能,并且您的用例的任何好处都不值得花费。等待研究赶上SSD在性能方面真正有益。 :)
If this is a business server, I recommend buying one pre-configured from IBM, Dell, or whatever major manufactuer is your preference (I prefer IBM).
如果这是一个商业服务器,我建议购买一个从IBM,戴尔或任何主要制造商预先配置的服务器(我更喜欢IBM)。
#2
This is really a stretch for the "right" kind of question for SO. Only in degrees though "implementation."
这对SO的“正确”问题来说真是一个延伸。只有在“实施”的程度上。
Pre-configured "Server" machines can often be more cost-beneficial. But, if you'd still prefer to build your own...
预先配置的“服务器”机器通常可以更具成本效益。但是,如果你还是喜欢建立自己的......
Considering just your budget ($800) for MB, Proc, and Memory...
仅考虑MB,Proc和Memory的预算(800美元)......
RAM - DDR2 800 ($200/4GB, and cheaper)
内存 - DDR2 800(200美元/ 4GB,更便宜)
MB - 1333/1066MHz FSB ($250)
MB - 1333 / 1066MHz FSB(250美元)
CPU - Dual Core ($150)
CPU - 双核(150美元)
Quad Core can still be too expensive for the benefit -- but, that's up to you to judge.
四核仍然可能过于昂贵 - 但是,这取决于你判断。
But, follow the links, and use the Advanced Search to cross out unnecessary features, and you should be able to reduce the list of items fairly easily.
但是,请按照链接,使用高级搜索来删除不必要的功能,您应该能够相当容易地减少项目列表。
#3
Have you considered shared, dedicated, or virtual hosting? If I were you, I'd go with SliceHost for the virtual server, then use Amazon S3 for serving up images and other large static files. The combination has worked well for me in the past. I've found that, especially when it comes to hosting, don't take on more responsibility than you absolutely have to.
您是否考虑过共享,专用或虚拟主机?如果我是你,我会选择SliceHost作为虚拟服务器,然后使用Amazon S3提供图像和其他大型静态文件。这种组合在过去对我有用。我发现,特别是在托管时,不要承担比你绝对必须承担的更多责任。
#4
I use MediaTemple for my websites. They have a lot of professional organizations hosted on there servers. I'd probably go with them if I were you.
我在我的网站上使用MediaTemple。他们在服务器上托管了很多专业组织。如果我是你,我可能会和他们一起去。
My dad thought the server route would be easy and we found out differently the hard way. If you don't have a friend or an employee that really knows what he's doing, I'd be careful. Anyways, good luck.
我父亲认为服务器路线很简单,我们发现不同的方法。如果你没有真正知道自己在做什么的朋友或员工,我会小心的。无论如何,祝你好运。
#5
If you're not planning on running the next Amazon, I'd say that your choice of CPU/chipset is irrelevant. Find a motherboard with the features you need (4+ RAM slots, plenty of SATA headers, etc) that suits your budget and then buy a upper midrange multicore CPU to suit. Get a PCI express RAID card and a meaty UPS too.
如果您不打算运行下一个亚马逊,我会说您选择的CPU /芯片组是无关紧要的。找到一个具有您需要的功能的主板(4个以上的RAM插槽,大量的SATA接头等),以满足您的预算,然后购买适合您的中高端多核CPU。获得PCI Express RAID卡和多功能UPS。
Get a vanilla hard drive for the OS, and a pair of fast drives (WD Velociraptors, etc) and put them in RAID 1 for the webserver for redundancy.
获取操作系统的香草硬盘驱动器,以及一对快速驱动器(WD Velociraptors等),并将它们放入RAID 1中,以便为网络服务器提供冗余。
Then, after a year or so or restarting the server every other day, migrate everything to a hosting company.
然后,在一年左右或每隔一天重新启动服务器后,将所有内容迁移到托管公司。