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 1iT6xU-0006zT-Pv for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2019 16:18:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iT6xS-0000tf-R3 for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2019 16:17:58 +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 1iT6xS-0000tY-Dd for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2019 16:17:58 +0000 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iT6xP-00005w-Ru for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2019 16:17:57 +0000 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA8GC3lL145334 for ; Fri, 8 Nov 2019 11:17:54 -0500 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.81]) by mx0a-001b2d01.pphosted.com with ESMTP id 2w5a9cap0s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 08 Nov 2019 11:17:50 -0500 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 8 Nov 2019 16:17:34 -0000 Received: from us1a3-smtp07.a3.dal06.isc4sb.com (10.146.103.14) by smtp.notes.na.collabserv.com (10.106.227.88) with smtp.notes.na.collabserv.com ESMTP; Fri, 8 Nov 2019 16:17:29 -0000 Received: from us1a3-mail217.a3.dal06.isc4sb.com ([10.146.71.30]) by us1a3-smtp07.a3.dal06.isc4sb.com with ESMTP id 2019110816172781-658326 ; Fri, 8 Nov 2019 16:17:27 +0000 MIME-Version: 1.0 In-Reply-To: <99a30851a68b41c5bcd77653417f21b5@zuerich.ch> To: "Zwettler Markus (OIZ)" Cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" From: "Brad Nicholson" Date: Fri, 8 Nov 2019 11:17:26 -0500 References: <0613f7e85acf4972837408cfc6260387@zuerich.ch> <436fa29a-0803-a511-206c-fd8c0086c50f@aklaver.com> <03dc57f7107f432d872bb00ddaa1a093@zuerich.ch> <26aad343-c08d-d53d-9788-c592450ce438@aklaver.com> <954fe6896a9645d6a597c0c743e28f7f@zuerich.ch> <9984e05af67d48bdaf730a934e63c513@zuerich.ch> <5c019721473149aeabaaf7bd552f7e0d@zuerich.ch> <99a30851a68b41c5bcd77653417f21b5@zuerich.ch> X-KeepSent: 68B9B686:4E1A74AF-852584AC:00596246; type=4; name=$KeepSent X-Mailer: IBM Notes Build V1001FP1_03262019 March 26, 2019 X-LLNOutbound: False X-Disclaimed: 3603 X-TNEFEvaluated: 1 Content-type: multipart/alternative; Boundary="0__=0ABB0E3FDFCAE4D68f9e8a93df938690918c0ABB0E3FDFCAE4D6" Content-Disposition: inline x-cbid: 19110816-3067-0000-0000-00000160E358 X-IBM-SpamModules-Scores: BY=0.240216; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.417846; ST=0; TS=0; UL=0; ISC=; MB=0.111561 X-IBM-SpamModules-Versions: BY=3.00012076; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000292; SDB=6.01287233; UDB=6.00682561; IPR=6.01069405; MB=3.00029437; MTD=3.00000008; XFM=3.00000015; UTC=2019-11-08 16:17:32 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-11-08 10:39:15 - 6.00010623 x-cbparentid: 19110816-3068-0000-0000-00002A900814 Message-Id: Subject: Re: 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__=0ABB0E3FDFCAE4D68f9e8a93df938690918c0ABB0E3FDFCAE4D6 Content-Transfer-Encoding: quoted-printable Content-type: text/plain; charset=US-ASCII "Zwettler Markus (OIZ)" wrote on 2019/11/08 11:02:49 AM: > From: "Zwettler Markus (OIZ)" > To: Brad Nicholson > Cc: Adrian Klaver , "pgsql- > general@lists.postgresql.org" > Date: 2019/11/08 11:02 AM > Subject: [EXTERNAL] AW: AW: AW: AW: AW: broken backup trail in > case of quickly patroni switchback and forth > > Let me clarify: "But, it might start killing processes after a > certain period if a =5Ffast=5F shutdown after SIGTERM didn't happen". > > I am talking about stopping the Patroni master process with a systemd scipt. Use the switchover functionality in Patroni first, and gate youur shutdown via systemd on the success of that operation. Brad. --0__=0ABB0E3FDFCAE4D68f9e8a93df938690918c0ABB0E3FDFCAE4D6 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:02:49 AM:

> = From: "Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch><= /font>

> To: Brad Nicholson <bradn@ca.ib= m.com>
> Cc: Adrian Klaver <ad= rian.klaver@aklaver.com>, "pgsql-
> general@lists.postgresql.= org" <pgsql-general@lists.postgresql.org>

> Date: 2019/11/08 11:02 AM

> Subject: [EXTERNAL] AW:  AW:  AW: AW: AW: broken back= up trail in
> case of quickly patroni switchback and forth

>
> Let me clarify: "But, it migh= t start killing processes after a
> certain period if a =5Ffast=5F s= hutdown after SIGTERM didn't happen".

>  
> I am talking ab= out stopping the Patroni master process with a systemd scipt.

Use the switchover functionality in Patroni = first, and gate youur shutdown via systemd on the success of that operation= .

Brad.
--0__=0ABB0E3FDFCAE4D68f9e8a93df938690918c0ABB0E3FDFCAE4D6--