Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E854F6325E2 for ; Wed, 8 Apr 2009 08:45:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 09465-08 for ; Wed, 8 Apr 2009 08:45:27 -0300 (ADT) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id 8B3DC632545 for ; Wed, 8 Apr 2009 08:45:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from morework.geizhals.at (home.geizhals.at [213.229.14.34]) by mx1.hub.org (Postfix) with ESMTP id 24046125A75F for ; Wed, 8 Apr 2009 08:45:34 -0300 (ADT) Received: from localhost (morework [127.0.0.1]) by morework.geizhals.at (Postfix) with ESMTP id 0B19918C1C3; Wed, 8 Apr 2009 13:45:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at geizhals.at Received: from morework.geizhals.at ([127.0.0.1]) by localhost (morework.geizhals.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MMLtB0QyN2ne; Wed, 8 Apr 2009 13:45:17 +0200 (CEST) Received: from [172.16.43.70] (unknown [172.16.43.70]) by morework.geizhals.at (Postfix) with ESMTP; Wed, 8 Apr 2009 13:45:17 +0200 (CEST) Message-ID: <49DC8E40.2010503@geizhals.at> Date: Wed, 08 Apr 2009 13:45:04 +0200 From: Marinos Yannikos User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Lists CC: pgsql-performance@postgresql.org Subject: Re: Best replication solution? References: <49D8FA31.8010407@on-track.ca> <480ED41A-B4AF-4A14-A10B-9F7181D7949D@rvt.dds.nl> <49D9293D.2020101@on-track.ca> <49D9BCCA.7060609@enterprisedb.com> In-Reply-To: <49D9BCCA.7060609@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.695 tagged_above=0 required=5 tests=AWL=-1.204, FS_REPLICA=1.179, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 200904/153 X-Sequence-Number: 33520 Heikki Linnakangas wrote: > Lists wrote: >> Server is a dual core xeon 3GB ram and 2 mirrors of 15k SAS drives (1 >> for most data, 1 for wal and a few tables and indexes) >> >> In total all databases on the server are about 10G on disk (about 2GB >> in pgdump format). > > I'd suggest buying as much RAM as you can fit into the server. RAM is > cheap, and with a database of that size more cache could have a dramatic > effect. I'll second this. Although it doesn't really answer the original question, you have to keep in mind that for read-intensive workloads, caching will give you the biggest benefit by far, orders of magnitude more than replication solutions unless you want to spend a lot of $ on hardware (which I take it you don't if you are reluctant to add new disks). Keeping the interesting parts of the DB completely in RAM makes a big difference, common older (P4-based) Xeon boards can usually be upgraded to 12-16GB RAM, newer ones to anywhere between 16 and 192GB ... As for replication solutions - Slony I wouldn't recommend (tried it for workloads with large writes - bad idea), but PgQ looks very solid and you could either use Londiste or build your own very fast non-RDBMS slaves using PgQ by keeping the data in an optimized format for your queries (e.g. if you don't need joins - use TokyoCabinet/Berkeley DB). Regards, Marinos