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 1jBEEQ-0007Vh-Te for pgsql-general@arkaria.postgresql.org; Mon, 09 Mar 2020 08:57:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBEEP-0004BO-5E for pgsql-general@arkaria.postgresql.org; Mon, 09 Mar 2020 08:57:49 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBEEO-0004BG-Rl for pgsql-general@lists.postgresql.org; Mon, 09 Mar 2020 08:57:48 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jBEEF-0001GS-VV for pgsql-general@lists.postgresql.org; Mon, 09 Mar 2020 08:57:45 +0000 Received: by mail-wr1-x42c.google.com with SMTP id n7so9911595wrt.11 for ; Mon, 09 Mar 2020 01:57:39 -0700 (PDT) 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=a5D6f5kFAks6MS3ba574yJXg2mDiwh4SJark1ZQ2Ifs=; b=d5mbZuI0KwPCD6eAQ7FWjCY71fopn4d2acmwwgqSdxFPboquziTXBFdgC2H4kkUpjB 3Ckb85TXnP6kWAgS2VIskkXv9vKbZ84+lnyZBvKenjhzIn8qpSYW3/KkPl30v3ALt8BV ZeUW8CbUvZsDoFSEnNjBTD+39PPUl0eXKHwxrss4F2EPdI6/hGadFZCFOeOueCI1KcXm X7DFcB4lDEsCurUPeRsKnV2hFsZabn0bS1lVKlTLeH1uYsxM/Vpk4j3vuz/hsTxInRBz HL5ZWdUmA8bLpDP4mwTf+Ik0HYksfssh43Z8znBmbO2vewqCg6ICQmRfzKUPeaPqYHS1 SzMg== 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=a5D6f5kFAks6MS3ba574yJXg2mDiwh4SJark1ZQ2Ifs=; b=pL/kI9WswOf64eeYV5Ra1tTYq888k/xMQ8M8eviMp9di0MWx+xkdqiTSTWcf+dgeve hQZXZ3ojdd76nWmWKmPeWAX+HXwmil4QM50opc2aRfTTunLguw8++aKFWn42NEpc/2uT jZ0h/ouo+FMKgdav9kWMH7Hdhywo7l0O+dW30JYCVYdWHsBjlNZL03mDmeR6wfJ33w/8 n4r9fX25ED8a2ZsQFamVQbsxDp1TY9NeOIMM7Fugut4DzQfbmBkJgsCcjN8OmrKGCGg4 vjRF4HJ+EvhFOfKz/6NBqOrT2xihCr2HFBC0wBMcZIOmqUZdUi6aKWBdBJ9Cy80e2Vw1 m6ew== X-Gm-Message-State: ANhLgQ22MBaSc6iPmqAu28JjL/ooy7qNVjM1gb3AkqpYVtEKQM4PC71d eEXEC5+Bh7tgYZhh2VNjyEJVuQ11mtY= X-Google-Smtp-Source: ADFU+vtf4S2mky/1AQQPb84XRe/fR+3/I1YgrnVq6+hlAZNem61vbTthxCxWExdLuJTB0CuUEiR/Rw== X-Received: by 2002:adf:e408:: with SMTP id g8mr20906607wrm.198.1583744258609; Mon, 09 Mar 2020 01:57:38 -0700 (PDT) Received: from localhost.localdomain ([212.186.219.234]) by smtp.gmail.com with ESMTPSA id c5sm9251928wma.3.2020.03.09.01.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 01:57:38 -0700 (PDT) Message-ID: <2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at> Subject: Re: Real application clustering in postgres. From: Laurenz Albe To: "Peter J. Holzer" , pgsql-general@lists.postgresql.org Date: Mon, 09 Mar 2020 09:57:37 +0100 In-Reply-To: <20200308201316.GD22585@hjp.at> References: <1aa5a345543ea85b3e0e7d3021ed6b1cdc04e66c.camel@cybertec.at> <29d192b7b0b198b5e1253fac35e7654331614053.camel@cybertec.at> <20200308201316.GD22585@hjp.at> 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 Sun, 2020-03-08 at 21:13 +0100, Peter J. Holzer wrote: > But to be fair, a master/slave setup a la patroni isn't immune against > "writing junk" either: Not on the hardware level (either of the nodes > may have faulty hardware, and you may not notice it until too late), and > more importantly, not on the software level. An erroneus DML statement > (because of a bug in the application, or because the user/admin made a > mistake) will cause the same wrong data to be distributed to all nodes > (of course this also applies to RAC). Of course, nobody debates that. A high-availability solution only protects you from certain, well-defined kinds of problems, usually related to hardware. There is no way to protect yourself from software bugs or user errors. If there is a hardware problem that causes one of the databases in the Patroni cluster to become corrupted, the others are not immediately affected. That's the point of a shared-nothing architecture. Of course, if the corrupted database is the primary, corruption can eventually spread to the others. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com