Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F068A64FCFE for ; Fri, 22 Aug 2008 03:27:14 -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 53725-05 for ; Fri, 22 Aug 2008 03:27:08 -0300 (ADT) X-Greylist: delayed 00:08:41.524825 by SQLgrey-1.7.6 Received: from www.tauceti.net (tauceti.net [213.9.110.45]) by postgresql.org (Postfix) with ESMTP id BB48864FCF8 for ; Fri, 22 Aug 2008 03:27:09 -0300 (ADT) Received: from [10.0.0.8] (unknown [10.0.0.8]) by www.tauceti.net (Postfix) with ESMTP id 67811C2D840 for ; Fri, 22 Aug 2008 08:18:25 +0200 (CEST) Message-ID: <48AE5A31.8090003@tauceti.net> Date: Fri, 22 Aug 2008 08:18:25 +0200 From: RW User-Agent: Thunderbird 2.0.0.16 (X11/20080812) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: The state of PG replication in 2008/Q2? References: <48ADABAF.8030602@drivefaster.net> In-Reply-To: <48ADABAF.8030602@drivefaster.net> 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=1.899 tagged_above=0 required=5 tests=FS_REPLICA=1.179, SARE_SPEC_REPLICA=0.72 X-Spam-Level: * X-Archive-Number: 200808/273 X-Sequence-Number: 31154 > My company finally has the means to install a new database server for > replication. I have Googled and found a lot of sparse information out > there regarding replication systems for PostgreSQL and a lot of it > looks very out-of-date. Can I please get some ideas from those of you > that are currently using fail-over replication systems? What > advantage does your solution have? What are the "gotchas" I need to > worry about? > > My desire would be to have a parallel server that could act as a hot > standby system with automatic fail over in a multi-master role. If > our primary server goes down for whatever reason, the secondary would > take over and handle the load seamlessly. I think this is really the > "holy grail" scenario and I understand how difficult it is to > achieve. Especially since we make frequent use of sequences in our > databases. If MM is too difficult, I'm willing to accept a > hot-standby read-only system that will handle queries until we can fix > whatever ails the master. > We are primary an OLAP environment but there is a constant stream of > inserts into the databases. There are 47 different databases hosted > on the primary server and this number will continue to scale up to > whatever the server seems to support. The reason I mention this > number is that it seems that those systems that make heavy use of > schema changes require a lot of "fiddling". For a single database, > this doesn't seem too problematic, but any manual work involved and > administrative overhead will scale at the same rate as the database > count grows and I certainly want to minimize as much fiddling as > possible. > > If you really need "only" need automatic failover than use DRBD + Heartbeat somebody already mentioned. We are using this solution since 3 years now. With DRBD replication is done at filesystem block level. So you don't have to bother about changes done with a DDL statement and Heartbeat will automatically failover if one server goes down. It's really stable. If you want MM you should give Cybercluster a try. (http://www.postgresql.at/english/pr_cybercluster_e.html) They offer good support and is Open Source since a few month now. Robert