 {"id":35,"date":"2007-03-29T09:54:32","date_gmt":"2007-03-29T14:54:32","guid":{"rendered":"http:\/\/www.networkjack.info\/blog\/archives\/35"},"modified":"2009-08-07T17:23:57","modified_gmt":"2009-08-07T22:23:57","slug":"intel-macminis-the-os-x-blade-server","status":"publish","type":"post","link":"http:\/\/www.networkjack.info\/blog\/2007\/03\/29\/intel-macminis-the-os-x-blade-server\/","title":{"rendered":"Intel MacMinis &#8211; The OS X Blade Server"},"content":{"rendered":"<p>A really good client of ours has been colocating with us since late 2003. They&#8217;ve grown their web application from running on a Xserve 1.0Ghz DP G4 to an Xserve 2.0Ghz DP G5, then moving their database off to a separate big hardware RAIDed Dell server.<\/p>\n<p>They came to us about a year ago (May 2006) and said they were getting a big new client who wanted to run their entire site on their system and they were going to need a load balanced system with plenty of power and scalability. Earlier in the year (Feb 2006), Apple had introduced their second generation MacMini that now sported the new Intel Core Duo chips along with Gigabit Ethernet. At that time, we were also <a title=\"Anecdotal Power Consumption\" href=\"\/blog\/2007\/02\/13\/power-consumption-actual-amp-readings\/\">concerned<\/a> about increased power usage in our cage, so we picked up an Intel Mac Mini 1.66Ghz Core Duo, had it upgraded to 2GB of RAM (the G4&#8217;s could only handle 1GB) and started to really put it through it&#8217;s paces.<\/p>\n<p>It turned out to be a real winner.<\/p>\n<ul>\n<li>In terms of power consumption, no matter how hard I tried I could not make that Mini use more than 0.37A of power. I blasted that thing with multiple concurrent CPU and disk bound processes, getting really heavy loads and disk read\/writes.<\/li>\n<li>In terms of CPU, when we ran a battery of tests to really try and emulate this customers environment which is a very complex PHP web application. It really shone and had tremendous performance, even under load.<\/li>\n<\/ul>\n<p>The final configuration we ended up with was:<\/p>\n<p>MacMini Intel 1.66Ghz Core Duo, 2GB RAM and we replaced the stock Seagate 80GB 5400rpm SATA 2.5&#8243; notebook drives with the Hitachi E7K100 60GB 7200rpm SATA drive. These are the drives that IBM puts on it&#8217;s blade servers as they are rated for 24\/7 usage.<\/p>\n<p>Total Cost: ~$1,000 each. (we bought the Apple ram)<\/p>\n<p>We worked with the client to help factor their web application so that it could be properly load balanced. Changes were necessary in the following areas:<\/p>\n<ul>\n<li>session storage<\/li>\n<li>code updates (simultaneous CVS updates)<\/li>\n<li>media upload handling (you can no longer assume you have the resources you did when you only had a single server)<\/li>\n<li>host name abstraction to keep the Apache conf files nice and clean.<\/li>\n<li>centralized logging of web hits\/visits.<\/li>\n<\/ul>\n<p>After all the hardware and software was ready, we setup the content rules for the load balancer and turned it on. It was very gratifying to see the Minis perform very well even under adverse load conditions. (The big client sends out large email newsletter runs that bring flash crowds to the site.)<\/p>\n<p>One of the more interesting experiences we&#8217;ve had with this system was when we migrated their Xserve G5 in as web server #4 in the load balanced group. Mind you this is not a puny box. We even upgraded the drive system in it to a hardware RAID 5 based set. Since that time we have had to periodically adjust the weighting rules on the load balancer to give more and more priority to sending hits to the Intel Minis instead of the Xserve G5. We are now at a 3:3:3:1 ratio and the Xserve is finally at a lower overall load average than the minis.<\/p>\n<p>Yes, you read that right: <strong>the Intel MacMini is somewhere between 2 and 3 times faster than a Xserve G5 in raw cpu performance.<\/strong><\/p>\n<p>And it uses one fifth the power. With a nice <a href=\"http:\/\/www.racksolutions.com\/computer-shelves.shtml\">sliding rack tray<\/a>, you can easily get 6 of them into a 2U space. (excuse the cabling mess)<\/p>\n<p align=\"center\"><img decoding=\"async\" id=\"image37\" src=\"http:\/\/www.networkjack.info\/blog\/wp-content\/uploads\/2007\/03\/macminiwebfarm.jpg\" alt=\"MacMini 1 - 3\" \/><\/p>\n<hr \/>\n<p class=\"none\">We&#8217;ve also considered a different configuration whereby we set the Minis on their side and &#8220;stack&#8221; them horizontally. The Mini is right at 2 inches tall and a 6.5 inch square, so accounting for some space for air flow and cabling you could get 7, maybe 8 of them in a row, resulting in a 4U tall set. With the right mounting, you could get easily 2, maybe 3 of these rows on a sliding tray. You do have to account for the external power supply, but that separation actually works out as a major benefit as the cables could be run so that you have a single U of dedicated space for the power supplies and put some directional cooling air flow over them.<\/p>\n<p class=\"none\">Result: With only 2 rows of Minis, you get:<\/p>\n<ul>\n<li>roughly the same CPU power as 28 Xserve G5s<\/li>\n<li>about the same power consumption as 5 Xserve G5s (8.4A vs 9A)<\/li>\n<li>6-7 times less space (4-5U of Minis vs 28U)<\/li>\n<li>easily less than half the per unit cost ($1,000 vs ~$2-$3K)<\/li>\n<\/ul>\n<hr \/>\n<p>The Intel Dual Xeon Xserve looks promising as well in terms of raw cpu performance, but I&#8217;ve seen reports that it suffers from the same high power consumption as any other Dual Xeon system does: ~ 3A. However, this is TEN TIMES the power consumption of a MacMini, so for a high density web farm, this is not a better solution. Better to utilize that Intel Xserve as a database server to take advantage of it&#8217;s greater RAM capacity (32GB), increased threading (dual dual-core) and 64-bit capability.<\/p>\n<blockquote><p>Related CPU performance anecdote: We have another client with a Compressor video encoding grid made up of Intel MacMinis and he found out (Apple also confirmed it) that he needed to remove the PowerMac G5 DP from that grid as it was the weakest link!<\/p><\/blockquote>\n<p>In summary, a MacMini based farm is a powerful solution for almost any web application. You get low cost, low power, the ease of use and security of a OS X based system. A very compelling formula. Our client is very happy and is looking to add 2 more MacMinis in the near future. We&#8217;ve built this type of system for another client and they are extremely happy with the performance of their web application, too. If your organization is interested in a MacMini web farm, please contact <a title=\"MacServe.net\" href=\"http:\/\/www.macserve.net\/info\/contact.php\">us<\/a> for a quote.<\/p>\n<p>Some additional links regarding MacMinis<\/p>\n<ul>\n<li>Installing Debian GNU\/Linux on the Mac Mini <a href=\"http:\/\/sowerbutts.com\/linux-mac-mini\/\">go<\/a><\/li>\n<li>123Macmini.com &#8211; A Mac Mini User Community <a href=\"http:\/\/www.123macmini.com\/\">go<\/a><\/li>\n<li>Mac Mini hacks Forum for the Apple Mac Mini <a href=\"http:\/\/www.macminihacks.org\/\">go<\/a><\/li>\n<li>Squeezing 2 MacMinis into a 1U custom case <a title=\"This guy is a crazy as me!\" href=\"http:\/\/www.markandjo.com\/markblog\/?p=3\">go<\/a><\/li>\n<\/ul>\n<p>I&#8217;ve posted a <a href=\"\/blog\/2007\/04\/04\/intel-macmini-blade-server-followup\/\">followup<\/a> to this article.<\/p>\n<p>We did add 3 more to this setup a couple months later. Here is the gaggle:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-178\" title=\"six-minis\" src=\"http:\/\/www.networkjack.info\/blog\/wp-content\/uploads\/2007\/03\/six-minis.jpg\" alt=\"six-minis\" width=\"640\" height=\"480\" srcset=\"http:\/\/www.networkjack.info\/blog\/wp-content\/uploads\/2007\/03\/six-minis.jpg 640w, http:\/\/www.networkjack.info\/blog\/wp-content\/uploads\/2007\/03\/six-minis-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A really good client of ours has been colocating with us since late 2003. They&#8217;ve grown their web application from running on a Xserve 1.0Ghz&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.networkjack.info\/blog\/2007\/03\/29\/intel-macminis-the-os-x-blade-server\/\">Continue reading<span class=\"screen-reader-text\">Intel MacMinis &#8211; The OS X Blade Server<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,8,13],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-content-networking","category-servers","category-web-app-development","entry"],"_links":{"self":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts\/35"}],"collection":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":2,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":177,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts\/35\/revisions\/177"}],"wp:attachment":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}