X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EF0D0D7673 for ; Thu, 25 Aug 2005 16:02:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66545-09 for ; Thu, 25 Aug 2005 19:02:14 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 37539D7309 for ; Thu, 25 Aug 2005 16:02:13 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 2657631F51; Thu, 25 Aug 2005 21:14:46 +0200 (MET DST) From: William Yu X-Newsgroups: pgsql.general Subject: Re: Postgresql replication Date: Thu, 25 Aug 2005 12:02:05 -0700 Organization: Hub.Org Networking Services Lines: 23 Message-ID: References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050824173106.76233.qmail@web53210.mail.yahoo.com> <430D14EA.50502@telus.net> <20050825114411.GA30455@bafster.chello.upc.cz> <430DB098.9070905@wildenhain.de> <430DC557.7090905@wildenhain.de> 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: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en In-Reply-To: <430DC557.7090905@wildenhain.de> To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.03 required=5 tests=[AWL=0.030] X-Spam-Level: X-Archive-Number: 200508/1291 X-Sequence-Number: 82699 Tino Wildenhain wrote: >> If your app is used by external customers who are all across the >> country, they want to continue to still use your software even though >> you and data center #1 are 6 feet under due to an 8.0 earthquake. They >> want auto-failover to data center #2 which is in close proximity to >> CIA headquarters and other juicy terrorist targets. > > > Sure, but in this case a "simple" async master-slave (slony-1) > and the usual failover (also DNS-failover) should be sufficient. Workable if you're willing to keep multiple sets of servers idling on stand-by only for catastrophic failure. For temporary failure, I believe at this time Slony requires manual admin work to resync a promoted master and demote it back to slave. Not a big deal if the downtime doesn't happen often but when you're depending a cross-country internet connection, it happens far more often than you like to deal with. Of course, we're also using multi-master replication to load balance traffic across multiple servers because the price jump from going 2xDC to 4xDC is major. So we have a bunch of 2x1 and 2xDC servers across the country serving our customers versus 1 big server for primary access and 1 big server as a standby.