Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haRd5-0003Is-2G for pgsql-admin@arkaria.postgresql.org; Mon, 10 Jun 2019 21:14:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haRd3-0004Yg-PG for pgsql-admin@arkaria.postgresql.org; Mon, 10 Jun 2019 21:14:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haRd3-0004YZ-D7 for pgsql-admin@lists.postgresql.org; Mon, 10 Jun 2019 21:14:57 +0000 Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haRd0-0001wv-NL for pgsql-admin@lists.postgresql.org; Mon, 10 Jun 2019 21:14:56 +0000 Received: from firost (unknown [109.9.166.247]) (Authenticated sender: ioguix) by smtp2-g21.free.fr (Postfix) with ESMTPSA id A43282003BE; Mon, 10 Jun 2019 23:14:47 +0200 (CEST) Date: Mon, 10 Jun 2019 23:14:46 +0200 From: "Jehan-Guillaume (ioguix) de Rorthais" To: "=?UTF-8?B?55un6Ie05Z2H?=(Harry)" Cc: pgsql-admin@lists.postgresql.org Subject: Re: Customize Postgresql HA structure Message-ID: <20190610231446.1ac1e8d5@firost> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 10 Jun 2019 16:37:55 +0800 =E7=9B=A7=E8=87=B4=E5=9D=87(Harry) wrote: > Hi Team, >=20 > Can we build a HA structure with 2 standalone Postgresql-server? >=20 > In the theory,we should can build Postgresql-server in shared storage, >=20 > then we will prepare another cold standby Postgresql-server listening to > the active server. >=20 > When the active crash or shutdown,the cold standby server will auto repla= ce > original server. >=20 > Is this feasible?Or where can we find related article? Yes. Under Linux, you would have to use Pacemaker with: * a decent SAN * IO fencing and/or node feneing * resource agent "Filesystem" If I remember correctly, there was a HA cookbook describing this architectu= re. Good luck.