Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEW8r-0004qY-4L for pgsql-general@arkaria.postgresql.org; Fri, 13 Aug 2021 12:18:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mEW8q-0008IV-43 for pgsql-general@arkaria.postgresql.org; Fri, 13 Aug 2021 12:18:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEW8p-0008FR-Re for pgsql-general@lists.postgresql.org; Fri, 13 Aug 2021 12:18:27 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEW8n-0007tY-5d for pgsql-general@lists.postgresql.org; Fri, 13 Aug 2021 12:18:27 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mEW8i-0000jO-Fp; Fri, 13 Aug 2021 08:18:20 -0400 Date: Fri, 13 Aug 2021 08:18:20 -0400 From: Bruce Momjian To: Zahir Lalani Cc: Laura Smith , "pgsql-general@lists.postgresql.org" Subject: Re: Multi-master replication Message-ID: <20210813121820.GD4822@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Aug 13, 2021 at 11:35:29AM +0000, Zahir Lalani wrote: > Confidential > > Thx Laura > > So here is the dilemma - everything in the cloud world tends toward horizontal scaling. We do that with PG using single master and multiple slaves. But we are write heavy and of course the load on the master is quite high. It does seem that multi-master has risks (everyone seems to talk about conflict resolution!) so I wonder whether the sensible route is simply to scale vertically on the master? > > We are looking at pg_pool II to manage the current config - which I suppose will help with the connection pooling etc. But even it lends caution to the multi-master route for write heavy applications. You might want to read this: https://momjian.us/main/blogs/pgblog/2018.html#December_24_2018 -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.