Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxWif-0006bg-Rc for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 12:15:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxWid-0006uY-Tr for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 12:15:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxWid-0006uR-Lq for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 12:15:35 +0000 Received: from smtp6-g21.free.fr ([212.27.42.6]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxWia-0002xO-R1 for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 12:15:35 +0000 Received: from firost (unknown [109.9.170.195]) (Authenticated sender: ioguix) by smtp6-g21.free.fr (Postfix) with ESMTPSA id D3B87780383; Wed, 5 Sep 2018 12:15:27 +0000 (UTC) Date: Wed, 5 Sep 2018 14:15:24 +0200 From: "Jehan-Guillaume (ioguix) de Rorthais" To: Thomas Poty Cc: pgsql-general@lists.postgresql.org Subject: Re: increasing HA Message-ID: <20180905141524.6ff9d4d1@firost> In-Reply-To: References: <3f3568458e7a4dcdbee781b272900183@PCYINTPEXMU001.NEOPROD.EDF.FR> <20180905113835.5abbc248@firost> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 5 Sep 2018 13:23:41 +0200 Thomas Poty wrote: > Hi Jehan-Guillaume, Hello, > Thanks for your opinion. > > At first glance, i may use for automatic failover PAF, In fact, PAF does not support slots. So it is not a good candidate if slot are a requirement. > a proxy HAproxy and > for fencincg, i am a bit disappointed, i don't know what to do/use Depend on your hardware or your virtualization technology. > How about you, do you have any preference about tools/solutions to use ? If you want a simple and well community adopted solution, pick Patroni. It deals with slots, rely on etcd or zookeeper, fit nicely with haproxy, deal with watchdog to keep itself under monitor. However, it lacks of fencing and its callback are asynchronous. You would have to take special care of your network and master connectivity upon primary failure. If you want something able to keep multiple services avaliable (PostgreSQL, vIP, storage, pgBouncer, apache, whatever...), deal with dependencies, locations, constraints, rules etc, pick Pacemaker (and a larger coffee machine). I would (obviously) recommend PAF as resource agent for PgSQL, but you would have to design your cluster without slots :/ ++