Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 24E152E008A for ; Tue, 6 May 2008 15:59:49 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 52855-07 for ; Tue, 6 May 2008 15:59:42 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by developer.postgresql.org (Postfix) with ESMTP id EB2122E004E for ; Tue, 6 May 2008 15:59:45 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m46IxgSh033954 for ; Tue, 6 May 2008 15:59:42 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m46IV0Pd025007 for pgsql-performance@postgresql.org; Tue, 6 May 2008 15:31:00 -0300 (ADT) (envelope-from news) From: Dennis Muhlestein X-Newsgroups: pgsql.performance Subject: Re: Possible Redundancy/Performance Solution Date: Tue, 06 May 2008 12:31:01 -0600 Organization: Hub.Org Networking Services Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/105 X-Sequence-Number: 30073 Greg Smith wrote: > On Tue, 6 May 2008, Dennis Muhlestein wrote: > > > RAID0 on two disks makes a disk failure that will wipe out the database > twice as likely. If you goal is better reliability, you want some sort > of RAID1, which you can do with two disks. That should increase read > throughput a bit (not quite double though) while keeping write > throughput about the same. I was planning on pgpool being the cushion between the raid0 failure probability and my need for redundancy. This way, I get protection against not only disks, but cpu, memory, network cards,motherboards etc. Is this not a reasonable approach? > > If you added four disks, then you could do a RAID1+0 combination which > should substantially outperform your existing setup in every respect > while also being more resiliant to drive failure. > >> Our applications are mostly read intensive. I don't think that having >> two databases on one machine, where previously we had just one, would >> add too much of an impact, especially if we use the load balance >> feature of pgpool as well as the redundancy feature. > > A lot depends on how much RAM you've got and whether it's enough to keep > the cache hit rate fairly high here. A reasonable thing to consider > here is doing a round of standard performance tuning on the servers to > make sure they're operating efficient before increasing their load. > >> Can anyone comment on any gotchas or issues we might encounter? > > Getting writes to replicate to multiple instances of the database > usefully is where all the really nasty gotchas are in this area. > Starting with that part and working your way back toward the front-end > pooling from there should crash you into the hard parts early in the > process. Thanks for the tips! Dennis