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 1jw1fh-0000Zp-VF for pgsql-general@arkaria.postgresql.org; Thu, 16 Jul 2020 11:03:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jw1fg-0001ia-V0 for pgsql-general@arkaria.postgresql.org; Thu, 16 Jul 2020 11:03:24 +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 1jw1fg-0001iT-C8 for pgsql-general@lists.postgresql.org; Thu, 16 Jul 2020 11:03:24 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jw1fe-0000Iu-1o for pgsql-general@lists.postgresql.org; Thu, 16 Jul 2020 11:03:23 +0000 Received: from firost (larco.ioguix.net [82.66.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id F28F621CE2; Thu, 16 Jul 2020 13:03:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1594897399; bh=jAi+EY9CdtkdZNNBwS2OrlLIR9c+7RHm06zua6FHlc8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JPTbLFST6e0v4ZpGdou/9A2YTgueEJ0Jst3H8cjsof2nIGaULcQG1QuL42dwcpjdP Oit/6RvW+OPqNEUvYeust0WovVV4AdGeHhzdLD2vYvnY8UGCmxav1TgQH5y33CxK6I Yd07TUXuoQ9RDdvhlnV/eC7DnP3d3p8CbUb/8ZRs= Date: Thu, 16 Jul 2020 13:03:17 +0200 From: Jehan-Guillaume de Rorthais To: Laurent FAILLIE Cc: pgsql-general@lists.postgresql.org Subject: Re: Clustering solution ? Message-ID: <20200716130317.3a22593d@firost> In-Reply-To: <1612122740.2101175.1594828443021@mail.yahoo.com> References: <586641981.4851022.1594302826116.ref@mail.yahoo.com> <586641981.4851022.1594302826116@mail.yahoo.com> <250696553.4931539.1594309622380@mail.yahoo.com> <1612122740.2101175.1594828443021@mail.yahoo.com> Organization: Dalibo 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, 15 Jul 2020 15:54:03 +0000 (UTC) Laurent FAILLIE wrote: > Hello all, > thanks all for your replies : I started to learn Patroni.Anyway, any > alternative with my customer want's also LoadBalancing ? Thanks > Laurent Same comment than my previous one here. Climb one step at a time. First, create relevant benchmarks as close as possible from the target application. Optimize your queries, setup, and lastly your hardware. If your architecture does not keep up with the load, then you can consider load balancing. And really, load balancing is hard to achieve for SGBD. It often requires some changes on application side...or even dealing with it on application side all together. I've seen too many complex architectures, with too many layers, hard to administer...for nothing. Keep it simple as long as you can. Good luck. Regards, -- Jehan-Guillaume de Rorthais Dalibo