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.92) (envelope-from ) id 1j9pHd-0000ve-R3 for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 12:07:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9pHc-0001Q8-Mk for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 12:07:20 +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 1j9pHc-0001Mt-6a for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 12:07:20 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j9pHY-0006pn-Ct for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 12:07:19 +0000 Received: by mail-wr1-x444.google.com with SMTP id n7so6674286wrt.11 for ; Thu, 05 Mar 2020 04:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=XJ0cZc8tjL6w6cdPSqKxDyKC/Xb2TI5/fg5CIB6qefw=; b=NQ38Z+fk3bDIsdwRbdpIGG15qoE56CmtW3PGRI/2zhYG6VqlR08R4SzpzRnDTG+zn0 WU9hylsOD6Q1h+4KmXcCGpj3zVC+4qlCZwkFF/6587Xx5azpgmULDNOUWU8JFCLkN3Kq /uIpF5pW3Du10ZRKvFZgnI3WIlil/GafiL03e+ZIuz5E5D7/tuRAt0n2M5NuBLm/eqoq fYxBWHAoKDtlxzDaJf6R7Ys/+Bx+oVdCTeksxJhGIPxe+lee5vsDGsEMc8Mu1gEE2Bmv h/v58LP/RR8dmqDsXMHkj2RN5dnisBiVioOCLpv0FpgI26iukj7SQCxSGCtp65B2/SLM AHrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=XJ0cZc8tjL6w6cdPSqKxDyKC/Xb2TI5/fg5CIB6qefw=; b=tk7JZ2i4DIslz8K5G9wu6Pnor17yUxBEDg6Xt6hw4tK4fZieNKyxe/sK+vwIhUnrvQ 81yUPL+eafedto9kEwb3FgoAAgUSojn+vpZUqZNY8QgsseKZUpmPDYJNWWxdD7qqZvJ4 AQsMJcuU/rKhSOclBwQ3TvVVqYAD1nw075VAepPUbhCTEbTNqTX6+RWqQ865uWJmCt0J 5m0CKsoWg8bGrYqdpyst2jm96vuOY1LQmUG0N4hRWbSVaKDlYOlJIDSvKRHCjy871OyD f6CsHCgqTpwDQPpfvRmXojuazNsEWCmLGqOJAfMDZXk+Gz+81pS37m8fjIODqLS0N2mI 24Uw== X-Gm-Message-State: ANhLgQ1idlhZRt3zXqBX9fNq1HGxfLlq/DBtgDquWye+2idiuFjUgak6 pxShP/TKXURfGy94HkkGq2KNlQYcA9c= X-Google-Smtp-Source: ADFU+vtXMj1DzlQCrHIr5atBMFZXHppggCBvP4GbpZVFgV3QFzEUkdzp1KgnKxJLbnKZZ8LbTYXhgg== X-Received: by 2002:adf:c44a:: with SMTP id a10mr9438969wrg.279.1583410034707; Thu, 05 Mar 2020 04:07:14 -0800 (PST) Received: from localhost.localdomain (217-149-170-102.nat.highway.telekom.at. [217.149.170.102]) by smtp.gmail.com with ESMTPSA id w16sm10425269wrp.8.2020.03.05.04.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 04:07:14 -0800 (PST) Message-ID: <1aa5a345543ea85b3e0e7d3021ed6b1cdc04e66c.camel@cybertec.at> Subject: Re: Real application clustering in postgres. From: Laurenz Albe To: Daulat Ram , "pgsql-general@lists.postgresql.org" Date: Thu, 05 Mar 2020 13:07:13 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2020-03-05 at 07:45 +0000, Daulat Ram wrote: > Is there any possibility/options to setup a real application clustering in Postgres as in Oracle we have a RAC feature. No, and as far as I know nobody feels interested in providing it. RAC is a complicated architecture that doesn't do much good, so most people feel that it would be a waste of time and effort. RAC ist not really a scaling solution: because of the shared storage, you can only scale for more CPUs; I/O remains the bottleneck. RAC is not really a high availability solution: because of the shared storage, it has a sibgle point of failure. Today, people use shared-nothing architectures for high avaliability, like Patroni. > What about multi-master replication in Postgres. would you please suggest how it is useful and how can setup it. There is no support for that in core PostgreSQL. There is a closed-source implementation that you can buy: https://www.2ndquadrant.com/en/resources/postgres-bdr-2ndquadrant/ But multi-master replication is complicated to get right, and an applicatoin that uses it has to be specifically designed for that. Very often a single-master failover solution is a better solution. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com