Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0A0136502AA for ; Thu, 28 Aug 2008 17:05:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27330-03 for ; Thu, 28 Aug 2008 17:05:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from pyxis.powervt.com.ar (host3.powervt.com.ar [200.43.63.66]) by postgresql.org (Postfix) with ESMTP id 45D3F650225 for ; Thu, 28 Aug 2008 17:05:10 -0300 (ADT) Received: from pcfhevia ([201.216.249.98]) by pyxis.powervt.com.ar (IPGroup Mail Server) with ESMTP id 1OT48953; Thu, 28 Aug 2008 17:05:03 -0300 From: "Fernando Hevia" To: "'cluster'" , References: Subject: Re: Best hardware/cost tradoff? Date: Thu, 28 Aug 2008 17:04:46 -0300 Organization: IP-TEL Message-ID: <064701c90949$51d117d0$8f01010a@iptel.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AckJRH03HJ/EMcnQSjGgziEnAYE95gAAHYsQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/387 X-Sequence-Number: 31268 > -----Mensaje original----- > De: pgsql-performance-owner@postgresql.org > [mailto:pgsql-performance-owner@postgresql.org] En nombre de cluster > > I'm about to buy a combined web- and database server. When > (if) the site gets sufficiently popular, we will split the > database out to a separate server. > > Our budget is limited, so how should we prioritize? > > * We think about buying some HP Proliant server with at least > 4GB ram and at least a duo core processor. Possibly quad > core. The OS will be debian/Linux. > > * Much of the database will fit in RAM so it is not *that* > necessary to prefer the more expensive SAS 10000 RPM drives > to the cheaper 7500 RPM SATA drives, is it? There will both > be many read- and write queries and a *lot* (!) of random reads. > > * I think we will go for hardware-based RAID 1 with a good > battery-backed-up controller. I have read that software RAID > perform surprisingly good, but for a production site where > hotplug replacement of dead disks is required, is software > RAID still worth it? > > Anything else we should be aware of? > I havent had any issues with software raid (mdadm) and hot-swaps. It keeps working in degraded mode and as soon as you replace the defective disk it can reconstruct the array on the fly. Performance will suffer while at it but the service keeps up. The battery backup makes a very strong point for a hw controller. Still, I have heard good things on combining a HW controller with JBODS leaving the RAID affair to mdadm. In your scenario though with "*lots* of random reads", if I had to choose between a HW controller & 2 disks or software RAID with 4 or 6 disks, I would go for the disks. There are motherboards with 6 SATA ports. For the money you will save on the controller you can afford 6 disks in a RAID 10 setup. Cheers, Fernando.