Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TG5rA-0003uv-RQ for pgsql-admin@postgresql.org; Mon, 24 Sep 2012 10:25:41 +0000 Received: from mo17.mail-out.ovh.net ([178.32.228.17]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TG5r7-0000Fz-51 for pgsql-admin@postgresql.org; Mon, 24 Sep 2012 10:25:38 +0000 Received: from 20.mail-out.ovh.net (20.mail-out.ovh.net [91.121.29.228]) by mo17.mail-out.ovh.net (Postfix) with SMTP id BDD0EFF8A04 for ; Mon, 24 Sep 2012 12:31:28 +0200 (CEST) Received: (qmail 1474 invoked by uid 503); 24 Sep 2012 10:49:45 -0000 Received: from 32-6-190-109.dsl.ovh.fr (HELO smtp.tatm.com) (109.190.6.32) by 20.mail-out.ovh.net with SMTP; 24 Sep 2012 10:49:45 -0000 Received: from [192.168.0.10] (vig38-6-88-178-170-165.fbx.proxad.net [88.178.170.165]) by smtp.tatm.com (Postfix) with ESMTPSA id 0B5391DF25 for ; Mon, 24 Sep 2012 12:25:29 +0200 (CEST) Message-ID: <50603518.2080702@tatm.com> Date: Mon, 24 Sep 2012 12:25:28 +0200 From: Pascal Heraud User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org X-Ovh-Mailout: 178.32.228.17 (mo17.mail-out.ovh.net) Subject: Re: Multiple servers with Postgresql References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 4235916924614491144 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehtddrkeeiucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecunecuhfhrohhmpefrrghstggrlhcujfgvrhgruhguuceohhgvrhgruhgusehtrghtmhdrtghomheqnecujfgurhepkfffhfgfggfvufhfjggtgfesthejrgdttdefud X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201209/127 X-Sequence-Number: 40068 Hello, In this case, the use of slony1 is the recommended one. Pascal. On 09/24/12 02:45, Cliff Pratt wrote: > Oops, my apologies. I replied to you and not the list. I'm copying the > list on this one, John. > > I don't think that you will be able to mix systems like you want to. > Replication between systems is only natively supported in 9.x of > PostgreSQL, though replication could be done in earlier versions with > an add-on. In addition, I don't know if 32 and 64 bit systems can > replicate. You may be able to create a backup of a 9.1 system on 8.4 > by dump and restore, provided you don't implement any facilities that > are in 9.1 and not in 8.4, but you would have to write scripts to do > it. > > The issue with replication that exists in 9.x is that if you switch to > the backup system and make updates to it, then you are faced with a > dump and restore to switch back again (in the majority of cases, as I > understand it). > > Sorry, tuning is a black art to me, but I'm sure that you could find a > suitable PostgreSQL person in your location! I'm not a PostgreSQL > expert, though I've used PostgreSQL for years. > > Cheers, > > Cliff > > On Sun, Sep 23, 2012 at 11:54 PM, John Coryat wrote: >> Cliff, >> >> Thanks for the clarification. >> >> I'm looking to implement hot spare on 9.1 (64 bit) and warm spare on 8.4 (32 >> bit). >> >> What I would like to know is the recommended procedure in bringing up warm >> spare for 8.4. I have two new servers with 9.1 that I'd like to implement >> hot spare and master (?) so once they are running well, I'll move to 9.1 >> from 8.4 and deactivate the older 32 bit machines. >> >> Is that better? >> >> I am willing to hire an expert who can advise us on performance and other >> postgres fine tuning as we use this for mission critical operations. >> >> Thanks in advance. >> >> -John Coryat >> >> >> On Sat, Sep 22, 2012 at 7:02 PM, Cliff Pratt >> wrote: >>> On Sat, Sep 22, 2012 at 7:50 AM, John Coryat wrote: >>>> I have a number of web servers that access a server largely dedicated to >>>> just >>>> Postgres. There are over a million queries a day to this server. It's >>>> working well >>>> and doesn't seem to be bogged down. >>>> >>>> I would like to improve my server system by using a mirror or alternate >>>> machine >>>> for both backup and serving queries. The problem is the data has to be >>>> up to date >>>> on both machines. I've been using Postgres for many years but I've never >>>> had to >>>> do anything like this before. >>>> >>>> What are the best practices for doing this type of data and query >>>> sharing among >>>> separate servers? >>>> >>>> Thanks in advance for any assistance. >>>> >>> Without being condescending, you need to determine what you really >>> want to do. That may be what you are really asking. Do you want >>> reliability or performance or maximum up time. These things are not >>> mutually incompatible, but if you have a specific goal in mind you are >>> likely to succeed whereas if you don't you may end up just messing >>> around. >>> >>> That said, I would suggest that you don't load balance on the DB >>> server but on the front ends web servers. >>> >>> You could set up replication between two servers so that you have a >>> solution to which you can switch if the primary server goes down. But >>> if the database is any size you may have issues switching back. >>> >>> You could automate a switchover so that you have maximum uptime, but >>> again there may be issues switching back. >>> >>> Really, as I said at the start, you need to decide what your >>> requirements are so that people can advise the best solution. >>> >>> Cheers, >>> >>> Cliff >> >