Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWtIv-0007U0-Vr for pgsql-admin@arkaria.postgresql.org; Thu, 17 Oct 2013 19:32:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VWtIu-0004M5-Mk for pgsql-admin@arkaria.postgresql.org; Thu, 17 Oct 2013 19:32:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWtIt-0004Lz-PE for pgsql-admin@postgresql.org; Thu, 17 Oct 2013 19:32:15 +0000 Received: from filter2.win.net ([216.24.27.102]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWtIr-0007Kw-0N for pgsql-admin@postgresql.org; Thu, 17 Oct 2013 19:32:15 +0000 Received: from nb-201.win.net (nb-201.win.net [216.24.27.201]) by filter2.win.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id r9HJWCwr030161 for ; Thu, 17 Oct 2013 15:32:12 -0400 Received: from Gantry (pool245.office.win.net [216.24.33.245]) by nb-201.win.net (Postfix) with SMTP id D8CDF61C0A for ; Thu, 17 Oct 2013 15:32:11 -0400 (EDT) Message-ID: From: "Joseph Mays" To: Subject: PG server clustering Date: Thu, 17 Oct 2013 15:32:10 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0046_01CECB4E.0BFC1300" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 X-Bayes-Prob: 0.0001 (Score 0, tokens from: Outbound:default, base:default, @@RPTN) X-Spam-Score: -2.00 () [Hold at 4.50] HTML_MESSAGE:0.001, T_RP_MATCHES_RCVD:-0.01, 22(-2) X-CanIt-Geo: ip=216.24.27.201; country=US; region=KY; city=Louisville; postalcode=40204; latitude=38.2390; longitude=-85.7174; metrocode=529; areacode=502; http://maps.google.com/maps?q=38.2390,-85.7174&z=6 X-CanItPRO-Stream: Outbound:default (inherits from base:default) X-Canit-Stats-ID: 01KCjwczT - a4a98365512b - 20131017 X-Antispam-Training-Forget: http://filter.win.net/canit/b.php?i=01KCjwczT&m=a4a98365512b&t=20131017&c=f X-Antispam-Training-Nonspam: http://filter.win.net/canit/b.php?i=01KCjwczT&m=a4a98365512b&t=20131017&c=n X-Antispam-Training-Spam: http://filter.win.net/canit/b.php?i=01KCjwczT&m=a4a98365512b&t=20131017&c=s X-Scanned-By: CanIt (www . roaringpenguin . com) on 216.24.27.102 X-Pg-Spam-Score: 0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is a multi-part message in MIME format. ------=_NextPart_000_0046_01CECB4E.0BFC1300 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We are assisting in the system administration of a partner that uses = PostGres in a mission critical position in their system. They have mail = servers and other things that rely on 24/7 availability for the postgres = server. They are running postgres 9.04 on redhat linux = (2.6.32-131.0.15.el6.x86_64). This is running on one old machine, and = thus does not really provide the liability they looking for. I had the thought that I could set up another server as a slave, then = promote the slave in the event it=E2=80=99s necessary. I was trying I = made a system that watches for a change in the IP number number of the = server in dns, then downs the primary, swaps primary-secondary configs = in the primary, restarts the primary, then does the same in the = secondary. This actually worked on the first test from failing the = primary to the secondary. The problem came when I stried to switch it = back. When I tried to restart the original primary as secondary, it = failed saying the database was corrupted. There are a couple of possible solutions to this, but I=E2=80=99m = starting to think that what they probably really want anyway is a = Postgres server cluster of two servers that stay in synch with each = other, and can simultaneously accept read and write requests. Are there = any opinions here about the best way to set this up? ------=_NextPart_000_0046_01CECB4E.0BFC1300 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
We are assisting in the system administration of a partner that = uses=20 PostGres in a mission critical position in their system. They have mail = servers=20 and other things that rely on 24/7 availability for the postgres server. = They=20 are running postgres 9.04 on redhat linux (2.6.32-131.0.15.el6.x86_64). = This is=20 running on one old machine, and thus does not really provide the = liability they=20 looking for.
 
I had the thought that I could set up another server as a slave, = then=20 promote the slave in the event it=E2=80=99s necessary. I was trying I = made a system that=20 watches for a change in the IP number number of the server in dns, then = downs=20 the primary, swaps primary-secondary configs in the primary, restarts = the=20 primary, then does the same in the secondary. This actually worked on = the first=20 test from failing the primary to the secondary. The problem came when I = stried=20 to switch it back. When I tried to restart the original primary as = secondary, it=20 failed saying the database was corrupted.
 
There are a couple of possible solutions to this, but I=E2=80=99m = starting to think=20 that what they probably really want anyway is a Postgres server cluster = of two=20 servers that stay in synch with each other, and can simultaneously = accept read=20 and write requests. Are there any opinions here about the best way to = set this=20 up?
 
------=_NextPart_000_0046_01CECB4E.0BFC1300--