Building Servers for Fun and Prof... OK, Maybe Just for Fun

In 1998 I briefly worked for FiringSquad, a gaming website founded by Doom and Quake champion Thresh aka Dennis Fong and his brother Kyle. I can trace my long-standing interest in chairs and keyboards to some of the early, groundbreaking articles they wrote. Dennis and Kyle were great guys to work with, and wed occasionally chat on the phone about geeky hardware hotrodding stuff, like the one time they got so embroiled in PC build one-upmanship that they were actually building rack-mount PCs … for their home. So I suppose it is inevitable that Id eventually get around to writing an article about building rack-mount PCs. But not the kind that go in your home. No, thatd be as nuts as the now-discontinued Windows Home Server product. Servers belong in their native habitat, the datacenter. Which can be kind of amazing places in their own right. The above photo is from Facebooks Open Compute Project, which is about building extremely energy efficient datacenters. And that starts with minimalistic, no-frills 1U server designs, where 1U is the smallest amount of space divisible in a server rack. I doubt many companies are big enough to even consider building their own datacenter, but if Facebook is building their own custom servers out of commodity x86 parts, couldnt we do it too? In a world of inexpensive, rentable virtual machines, like Amazon EC2, Google Compute Engine, and Azure Cloud, does it really make sense to build your own server and colocate it in a datacenter? Its kind of tough to tell exactly how much an Amazon EC2 instance will cost you since it varies a lot by usage. But if I use the Amazon Web Services simple monthly calculator and select the Web Application "common customer sample", that provides a figure of $1,414 per month, or $17k/year. If you want to run a typical web app on EC2, thats what you should expect to pay. So lets use that as a baseline. The instance types included in the Web Application customer sample are 2 4 small (for the front end), and 1 2 large (for the database). Here are the current specs on the large instance: 7.5 GB memory 2 virtual cores with 2 EC2 Compute Units each 850 GB instance storage 64-bit platform I/O Performance: High You might be wondering what the heck a EC2 Compute Unit is; its Amazons way of normalizing CPU performance. By their definition, what we get in the large instance is akin to an old 2008 era dual core 2.4 GHz Xeon CPU. Yes, you can pay more and get faster instances, but switching instances from the small to the high-CPU and from the large to the high-MEM more than doubles the bill to $3,302 per month or $40k/year. Assuming you subscribe to the theory of scaling out versus scaling up, building a bunch of decent bang-for-the-buck commodity servers is what youre supposed to be doing. I avoided directly building servers when we were scaling up Stack Overflow, electing to buy pre-assembled hardware from Lenovo instead. But this time, I decided the state of hardware has advanced sufficiently since 2009 that Im comfortable cutting out the middleman in 2012 and building the servers myself, from scratch. Thats why I just built four servers exactly like this: Intel Xeon E3-1280 V2 Ivy Bridge 3.6 Ghz / 4.0 Ghz turbo quad-core ($640) SuperMicro X9SCM-F-O ($190) 32 GB DDR3-1600 ($292) SuperMicro SC111LT-330CB 1U rackmount chassis ($200) Two Samsung 830 512GB hard drives in a RAID-1 mirror ($540 × 2) (If you are using this as a shopping list, you will also need 4-pin power extensions for the case, and the SuperMicro 1u passive heatsink. The killer feature of SuperMicro motherboards that makes them all server-y in the first place is the built in hardware KVM-over-IP. Thats right, unless the server is literally unplugged, you can remote in and install an operating system, tweak the BIOS, power it on and off, and so on. It works. I use it daily.) Based on the above specs, this server has comparable memory to the High-Memory Double Extra Large Instance, comparable CPU power to the High-CPU Extra Large Instance, and comparable disk performance to the High I/O Quadruple Extra Large Instance. This is a very, very high end server by EC2 standards. It would be prohibitively expensive to run this hardware in the Amazon cloud. But how much will it cost us to build? Just $2,452. Adding 10% for taxes, shipping, etc lets call it $2,750 per server. One brand new top-of-the-line server costs about as much as two months of EC2 web application hosting. Of course, that figure doesnt include the cost in time to build and rack the server, the cost of colocating the server, and the ongoing cost of managing and maintaining the server. But I humbly submit that the one-time cost of paying for three of these servers, plus the cost of colocation, plus a bunch of extra money on top to cover provisioning and maintenance and support, will still be significantly less than $17,000 for a single year of EC2 web application hosting. Every year after the first year will be gravy, until the servers are obsolete – which even conservatively has to be at least three years. Perhaps most importantly, these servers will offer vastly better performance than you could get from EC2 to run your web application, at least not without paying astronomical amounts of money for the privilege. (If you are concerned about power consumption, dont be. I just measured the power use of the server using my trusty Kill-a-Watt device: 31 watts (0.28 amps) at idle, 87 watts (0.75 amps) under never-gonna-happen artificial 100% CPU load. The three front fans in the SuperMicro case are plugged into the motherboard and only spin up at boot and under extreme load. Its shockingly quiet in typical use for a 1U server.) I realize that to some extent were comparing apples and oranges. Either you have a perverse desire to mess around with hardware, or youre more than willing to pay exorbitant amounts of money to have someone else worry about all that stuff (and, to be fair, give you levels of flexibility, bandwidth, and availability that would be impossible to achieve even if you colocate servers at multiple facilities). $51,000 over three years is enough to pay for a lot of colocation and very high end hardware. But maybe the truly precious resource at your organization is peoples time, not money, and that $51k is barely a rounding error in your budget. Anyway, I want to make it clear that building and colocating your own servers isnt (always) crazy, it isnt scary, heck, it isnt even particularly hard. In some situations it can make sense to build and rack your own servers, provided … you want absolute top of the line server performance without paying thousands of dollars per month for the privilege you are willing to invest the time in building, racking, and configuring your servers you have the capital to invest up front you desire total control over the hardware you arent worried about the flexibility of quickly provisioning new servers to handle unanticipated load you dont need the redundancy, geographical backup, and flexibility that comes with cloud virtualization Why do I choose to build and colocate servers? Primarily to achieve maximum performance. Thats the one thing you consistently just do not get from cloud hosting solutions unless you are willing to pay a massive premium, per month, forever: raw, unbridled performance. Im happy to spend money on nice dedicated hardware because I know that hardware is cheap, and programmers are expensive. But to be totally honest with you, mostly I build servers because its fun. [advertisement] Stack Overflow Careers matches the best developers (you!) with the best employers. You can search our job listings or create a profile and even let employers find you.
http://www.codinghorror.com/blog/2012/10/building-servers-for-fun-and-prof-ok-maybe-just-for-fun.html



[By Rss to Blog (Computer Tech)
Click Here
http://sbwasim.co.cc
Contact Me :wasimakhtar@sbwasim.co.cc]
[if you want to earn by Home just call Toll free No.02653090621 and give my userid DS630156 just try it its totaly free.]
[Recharge Mobile Online http://paytm.com/refer/sbwasim]
[Recharge Mobile Online http://paytm.com/refer/sbsamiksha]
[Want to earn by sending sms then go to http://ultoo.in/login.php?refererCode=12403E&flag=hide]
[If you want to advertise here contact me at wasim.akh2@gmail.com]

No comments:

Post a Comment

If you have any question please let me know

[Software Update] Vivaldi 6.7 Released, Here is What’s New and Fixed

UPDATE: Release of Vivaldi 6.7 stable version to public. Good news for Vivaldi browser users! Vivaldi team has released Vivaldi 6.7 to stabl...