Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgonn-0006PE-R4 for pgsql-general@arkaria.postgresql.org; Thu, 23 Feb 2017 08:31:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cgonn-00072d-8F for pgsql-general@arkaria.postgresql.org; Thu, 23 Feb 2017 08:31:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cgolU-0004Pk-KY for pgsql-general@postgresql.org; Thu, 23 Feb 2017 08:28:40 +0000 Received: from smtp5-g21.free.fr ([212.27.42.5]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cgolR-0003Jb-3G for pgsql-general@postgresql.org; Thu, 23 Feb 2017 08:28:39 +0000 Received: from firost (unknown [82.67.129.175]) by smtp5-g21.free.fr (Postfix) with ESMTPS id 20D585FFA6; Thu, 23 Feb 2017 09:28:30 +0100 (CET) Date: Thu, 23 Feb 2017 09:28:29 +0100 From: Jehan-Guillaume de Rorthais To: Dylan Luong Cc: "pgsql-general@postgresql.org" Subject: Re: Postgres HA Message-ID: <20170223092829.649fe7bd@firost> In-Reply-To: <8ad065760a2f4a5499f73552107ddf22@ITUPW-EXMBOX2B.UniNet.unisa.edu.au> References: <8ad065760a2f4a5499f73552107ddf22@ITUPW-EXMBOX2B.UniNet.unisa.edu.au> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Wed, 22 Feb 2017 22:58:10 +0000 Dylan Luong wrote: > Hi >=20 > I am a DBA at the University of South Australia. For PostgreSQL High > Availability, we currently have setup a Master/Slave across two datacente= rs > using PostgreSQL (WAL) streaming replication. We use an LTM (load balance= r) > server that sits between the application servers and the PostgreSQL server > that directs connections to the Master (and the Slave if failover occurs)= . We > also have watchdog processes on the PostgreSQL servers that polls the LTM= to > determine who is Master and perform automatic failover if required. And how do you deal with split brain ? Fencing? Network partition? What if = the network fail on the master side for 5 minutes? Will the LTM go back to the = old master as soon as the watchdog pool it again? > I am looking at options to improve our high availability. I would like to > know how other organizations in different industries (other than educatio= n) > setup High Availability on their PostgreSQL environments. What tools do = you > use. Are they commercial licensed products? How is the architecture setup= and > how do you do recovery of new slave. Your information is greatly apprecia= ted. We use Pacemaker with the PAF[1] resource agent. Pacemaker takes great care= to avoid split brain using fencing. It mostly supports local cluster, but it supports multi-site clusters as well thanks to a layer called "Cluster Tick= et Registry"[2]. HA is a complex subject, it requires some time to get familiar with it. Good luck :) [1] http://dalibo.github.io/PAF/ [2]=C2=A0http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Expl= ained/ch15.html --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general