Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 781889FB954 for ; Fri, 25 May 2007 21:36:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 80823-05 for ; Fri, 25 May 2007 21:36:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.194]) by postgresql.org (Postfix) with ESMTP id 39F849FB902 for ; Fri, 25 May 2007 21:36:20 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1HrkG0-0006dO-Ai; Sat, 26 May 2007 01:35:44 +0100 From: Gregory Stark To: Cc: Subject: Re: Adding disks/xlog & index In-Reply-To: <1645.69.31.174.216.1180129421.squirrel@webmail.ctgameinfo.com> (lists@on-track.ca's message of "Fri, 25 May 2007 14:43:41 -0700 (PDT)") Organization: EnterpriseDB References: <1645.69.31.174.216.1180129421.squirrel@webmail.ctgameinfo.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 661) Date: Sat, 26 May 2007 01:35:43 +0100 Message-ID: <87ps4ojuao.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/548 X-Sequence-Number: 24938 writes: > Some questions on this: > 1. Can the database survive loss/corruption of the xlog and indexes in a > recoverable way? To save money (and because I won't need the throughput as > much), I am thinking on making this index/wal/xlog drive a single cheap > sata drive (or maybe a non-raided 15k scsi for 60% more money). However > without the redundancy of a mirror I am concerned about drive failure. > Loss of several mins of recent transactions in a serious crash is > acceptable to be, but full/serious database corruption (the likes of fsync > off) is not. Losing any WAL that the database has fsynced is exactly like having fsync off. > 2. Is there any point using a high performance (ie scsi) disk for this, or > would the mirror containing the majority of the data still be the major > bottleneck causing the disk usage to not exceed sata performance anyway? Well that depends on your database traffic. In most databases the volume of WAL traffic is substantially less than the i/o traffic to the data drives. So you usually don't need to be able to sustain high i/o bandwidth to the WAL drive. However in some database loads the latency to the WAL drive does matter. This is especially true if you're executing a lot of short transactions and response time is critical. Especially if you aren't executing many such transactions in parallel. So for example if you're processing a serial batch of short transactions and committing each one as a separate transaction. In that case you would want a drive that can fsync fast which either means a battery backed cache or 15kRPM drive. It doesn't necessarily mean you need a bit raid array though. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com