Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 46C1664FD6B for ; Thu, 23 Oct 2008 13:38:43 -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 89692-01 for ; Thu, 23 Oct 2008 13:38:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by postgresql.org (Postfix) with ESMTP id 4AC0664FD12 for ; Thu, 23 Oct 2008 13:38:37 -0300 (ADT) Received: by wf-out-1314.google.com with SMTP id 25so423537wfc.28 for ; Thu, 23 Oct 2008 09:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=8Mge+t9ZedFknH0M7EBadwyOI1F/+ftDEP+RK0HsA3c=; b=uTDdUi2+1MpXGu7s+iQlcsyQGi++Qn4arVBBEBIKKLDy+BGqRvut378OV/JgeN9jht KHsUev0vNwyqECxTnMWgk32tNJZ35GoCapup8mgMC2RWARxz2xVALjuY5VVg2KcmOH0B pHZi7VqAao2TloWhV2VERrH7le7RREdAykqnM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UOY98FGebjhMHvjZyf2r3XL5OI0m3ESOvMS/IwUwDyI3Em5i9Hx3PErRzFbhtrexvY E9ZWc/HqKTxosd7WQuQ1GlnTbVpcohBVVq5awrsMdyK/rhFmBNLFTgu0GtfKVtDv7pb9 QY9ZVrs9Zt0d5bVSu5CCFGEd+qp+D9FBQ05iI= Received: by 10.114.154.1 with SMTP id b1mr883362wae.4.1224779914225; Thu, 23 Oct 2008 09:38:34 -0700 (PDT) Received: by 10.114.39.11 with HTTP; Thu, 23 Oct 2008 09:38:34 -0700 (PDT) Message-ID: Date: Thu, 23 Oct 2008 10:38:34 -0600 From: "Scott Marlowe" To: Lionel Subject: Re: Hardware HD choice... Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.315 tagged_above=0 required=5 tests=SARE_MILLIONSOF=0.315 X-Spam-Level: X-Archive-Number: 200810/105 X-Sequence-Number: 31686 On Thu, Oct 23, 2008 at 9:10 AM, Lionel wrote: > Hello, > > I have to choose a dedicated server to host a big 8.3 database. > The global size of the database (indexes included) will grow by 40 Go every > year (40 millions of lines/year) > Real data (indexes excluded) will be around 5-7 Go/year. > I need to store 4 years of activity. > Very few simultaneous users (~4). > 100000 rows added every day via csv imports. > The application will be a reporting application. > Main statements: aggregation of 10000 to 10millions of line. > Vast majority will hit 300000 lines (90% of the connected users), few will > hit more than 10 millions (10% of the connected users, there may never be 2 > simultaneous users of this category). > 20sec - 30sec for such a statement is acceptable. In that case, throw memory at the problem first, then lots of hard drives on a good RAID controller. > It's quite easy to choose CPU (xeon quad core 2.66, maybe dual xeon), RAM > (8-12Go) but I still hesitate for hard disks. I've had better luck with opterons than Xeons, but they're both pretty good nowadays. I'd look at at least 16 Gigs ram, if you can afford it get 32. > these are options possible with the hosters I usually work with: > > Option 0) > RAID1 750Go SATA2 > > Option 1) > RAID1 750Go SATA2 + 500Go USB disk > > Option 2) > RAID1 SAS 15000rpm 147 Go hard disk + 500Go USB > > Option 2+) > RAID1 SATA2 SSD intel X25-M 80Go + 500Go USB > > Option 3) > RAID5 SATA2 5x750Go > > Option 4) > RAID10 SAS 15000rpm 4x146 Go > > Option 5) > RAID10 SATA2 4x250 Go > > Any other better option that I could ask for ? Yes, more drives. 4 drives in a RAID10 is a good start. If you could get 8 or 12 in one that's even better. > > What would be the best choice in case of an external USB drive : using it > for indexes or x_log ? Not to use one. Generally USB transfer speeds and external USB drives aren't reliable or fast enough for serious server use. I say this with two very nice external USB drives sitting next to me. They store my videos, not customer data. > And what is the best option to backup such a database ? PITR -- When fascism comes to America, it will be draped in a flag and carrying a cross - Sinclair Lewis