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 1iT7bS-00005j-A6 for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2019 16:59:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iT7bR-0003tc-2H for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2019 16:59:17 +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 1iT7bQ-0003tV-Oo for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2019 16:59:16 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iT7bK-0002Sb-51 for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2019 16:59:16 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA8GoSAM080299 for ; Fri, 8 Nov 2019 11:59:07 -0500 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.93]) by mx0a-001b2d01.pphosted.com with ESMTP id 2w59n5qcun-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 08 Nov 2019 11:59:07 -0500 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 8 Nov 2019 16:59:06 -0000 Received: from us1a3-smtp08.a3.dal06.isc4sb.com (10.146.103.57) by smtp.notes.na.collabserv.com (10.106.227.39) with smtp.notes.na.collabserv.com ESMTP; Fri, 8 Nov 2019 16:59:01 -0000 Received: from us1a3-mail217.a3.dal06.isc4sb.com ([10.146.71.30]) by us1a3-smtp08.a3.dal06.isc4sb.com with ESMTP id 2019110816590096-676488 ; Fri, 8 Nov 2019 16:59:00 +0000 MIME-Version: 1.0 In-Reply-To: To: "Zwettler Markus (OIZ)" Cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" From: "Brad Nicholson" Date: Fri, 8 Nov 2019 11:59:00 -0500 References: <0613f7e85acf4972837408cfc6260387@zuerich.ch> <03dc57f7107f432d872bb00ddaa1a093@zuerich.ch> <26aad343-c08d-d53d-9788-c592450ce438@aklaver.com> <954fe6896a9645d6a597c0c743e28f7f@zuerich.ch> <9984e05af67d48bdaf730a934e63c513@zuerich.ch> <5c019721473149aeabaaf7bd552f7e0d@zuerich.ch> <99a30851a68b41c5bcd77653417f21b5@zuerich.ch> X-KeepSent: 2F4E930B:DBD7392F-852584AC:005D30D2; type=4; name=$KeepSent X-Mailer: IBM Notes Build V1001FP1_03262019 March 26, 2019 X-LLNOutbound: False X-Disclaimed: 2643 X-TNEFEvaluated: 1 Content-type: multipart/alternative; Boundary="0__=0ABB0E3FDFCEB6428f9e8a93df938690918c0ABB0E3FDFCEB642" Content-Disposition: inline x-cbid: 19110816-8889-0000-0000-000001074125 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.417846; ST=0; TS=0; UL=0; ISC=; MB=0.000668 X-IBM-SpamModules-Versions: BY=3.00012076; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000292; SDB=6.01287247; UDB=6.00682569; IPR=6.01069418; MB=3.00029438; MTD=3.00000008; XFM=3.00000015; UTC=2019-11-08 16:59:04 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-11-08 10:11:23 - 6.00010623 x-cbparentid: 19110816-8890-0000-0000-0000017B7175 Message-Id: Subject: Re: AW: AW: AW: AW: AW: AW: AW: broken backup trail in case of quickly patroni switchback and forth X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-08_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0__=0ABB0E3FDFCEB6428f9e8a93df938690918c0ABB0E3FDFCEB642 Content-Transfer-Encoding: quoted-printable Content-type: text/plain; charset=US-ASCII "Zwettler Markus (OIZ)" wrote on 2019/11/08 11:54:14 AM: > > (please don't top post, makes the replies hard to follow) > > > patronictl switchover > > > follow the prompts > > > there is also a /switchover API endpoint you can use. > > > Brad > > I wondered about your "patronictl switchover + systemd" hint. How > would you do ("gate") this combination? Change whatever process you are using today to shut things down to call the patroni switchover first, check error codes, etc. --0__=0ABB0E3FDFCEB6428f9e8a93df938690918c0ABB0E3FDFCEB642 Content-Transfer-Encoding: quoted-printable Content-type: text/html; charset=US-ASCII Content-Disposition: inline

"Zwettler Markus (OIZ)" <M= arkus.Zwettler@zuerich.ch> wrote on 2019/11/08 11:54:14 AM:

> = > (please don't top post, makes the replies hard to follow)
>
= > > patronictl switchover <clustername>
>
> > f= ollow the prompts
>
> > there is also a /switchover API end= point you can use.
>
> > Brad

>  
> I wondered abou= t your "patronictl switchover + systemd" hint. How
> would= you do ("gate") this combination?



Change whatever process you are using today to shut things do= wn to call the patroni switchover first, check error codes, etc.
--0__=0ABB0E3FDFCEB6428f9e8a93df938690918c0ABB0E3FDFCEB642--