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.89) (envelope-from ) id 1gjN6J-0003PU-FG for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 11:41:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjN6I-00034R-4T for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 11:41:46 +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 1gjN6H-0002yO-MJ for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 11:41:45 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjN6E-0001Ju-Fn for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 11:41:44 +0000 Received: by mail-pf1-x434.google.com with SMTP id r136so1201970pfc.6 for ; Tue, 15 Jan 2019 03:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=1WijZo0mFufKWWVpS8dv9gaTB+blYTSDM0SxjxGWLOk=; b=Cmq+cb6sbP6Y5o9WTD2pci7/mKKg/Y3xODZ6D9IdPFn4UIP2gIVbh8gqPKaqRIzXP6 bZfXDNLiG6HnmdJym5dmpKsj0O+GgRRw6SmcFuJ0xsizSzM6g/qYOv2ZWrAH7MqqFwz3 HksACQixJeCKfMwLBY8XFaHk4pmGcyzh7WlOY64N62eVQxWeAzLzwgPsnaqkhI+gbHjt zj55Sfj+m2prorSySiAMiKdbOw3QKp83AHLbstMjP5xszK5Q/PbiqgX2W0KDZkXIMt5v LKzgaHi8ihvds7avQ+WX2bvoW04PxdA5GV/G1dgQleTGp1WOIXC1z4C+lPhQqR5Zt5zT LctQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1WijZo0mFufKWWVpS8dv9gaTB+blYTSDM0SxjxGWLOk=; b=lpDnJ7k3jW3dmX7oCnYxsFVHOU7SkSnUhs2+byC1NyK9+9XMZiSiVRA1p7acUf+cuE z/nAz4L92pPdSod9/KJjzXdDpt3lyI3yLcX2mYOURiEkB2MNni3n/cSRAJzFPQpL8fjd 9WXBWabD/tNIkO+P58/51paZxfHuLDpHgkMQIQiGY41x175ear5s/zMiVQ+36U/xX1Fd bLwHGE7moU83uvUk5d3Mu9pwjLWL1Ln2tW7Cbmfdj4OGdcYP/AbT6GVCUvh0UwWBj8ku IGd43HnX4crxm+ZIyBr6hh1OSZYXf//VWpH3OKtotxCUdosf8P2EQ8Ae3KGfKblWiKCm 38xQ== X-Gm-Message-State: AJcUukeEK5XiYrTbG/sWk7TcdTGEMnwP6r/OGCuYEirMsK7V92ttNOm6 blBkQIc+zc/TVX00esYkBPLiF7vuJUWQNeqsuS42U9/o9gHmefCqKsQoQxvnQKdA46/nw5vQcSf UDjCPN6U/KpPuJzZ8lI+NHKi3GBYYAo23DUvEGBkBMqLlfODyC39cx3bV5QQsNfQY0T4jIWaaZY cp45NZtepiccM79qcDldWq X-Google-Smtp-Source: ALg8bN4ekqe48y81eMKJYKEgNsxXYW+C8WICwLtTOqo4Iqx8OYTLq8U4xq/q4+hVpadjFZ6tHzaosg== X-Received: by 2002:a63:6d48:: with SMTP id i69mr3365407pgc.215.1547552500951; Tue, 15 Jan 2019 03:41:40 -0800 (PST) Received: from osaka.octopusnet (p2935155-ipngn18201marunouchi.tokyo.ocn.ne.jp. [153.226.240.155]) by smtp.gmail.com with ESMTPSA id w10sm3703112pgi.81.2019.01.15.03.41.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 03:41:40 -0800 (PST) Subject: Re: repmgr and STONIT - SPLIT BAIN To: ROS Didier , "pgsql-general@lists.postgresql.org" References: From: Ian Barwick Message-ID: Date: Tue, 15 Jan 2019 20:41:37 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi On 1/15/19 5:54 PM, ROS Didier wrote: > Hi > > We are going to implement repmgr according to the following configuration : > > -Primary node on the site A > > -Standby node on the site B > > -Witness node on the same site A > > Do we need to use LOCATION repmgr parameter in this case to avoid Split Brain and permit STONIT ? In this case, the "location" parameter should be the same for all nodes. FYI the "location" parameter is intended for the use case where you have a large number of nodes in multiple data centres and need to ensure that only a node in the same data centre (location) as the primary can get promoted. STONITH is something you'll need to implement yourself. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services