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 1iSjLP-0003kY-Vq for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:05:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSjLO-0007uP-86 for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 15:05:06 +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 1iSjLN-0007tf-Tc for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:05:05 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSjLK-000128-GP for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 15:05:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7E20121B42; Thu, 7 Nov 2019 10:05:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 07 Nov 2019 10:05:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=r b+daVS6bdRXvKzojx3v51Xt84CkkabvjPQwMeW6LWY=; b=qBuDTTVWwnyfcdEhK /2JFmHJq7YT6zBaXQLMKxWt14guAP8ZIEWWaO8jo1Rv9b3jSKMMb5L1hhgglK2qA n/CGDQ2oF8hPBya/WRpIQpCrpw3nnRs5nDpvH6bbQafq1pxl4s/H/RtTFy0/Wuvq zpJtaW9kRTxlCyg9ueq8GWZRFBgpiv/cHUUXhJBzAaycq+GPJ4MHOtWNPZ5EUMLq OFHYHBdYORW674VPBJpRESQhhw98i00Iqz9ZomHfA5VsdAZNhdetDzAJlfKzyEFI rkpvx6oEs1uaLgK8Rg+YZPJR9XCMzY7M7K8ThmtAn+J6TdgWZraltNlRX4nObwxK JBgLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=rb+daVS6bdRXvKzojx3v51Xt84CkkabvjPQwMeW6L WY=; b=plWYLkSwrQ02dinrkqMNU27xW0a9i3PA5QJgtr0Rq/ijne6Ap/c/z4Ffg 960PPtv6aU203j4rBv8tRfQstcKofx/DwUA71X/ARV34OqSCj4r7oCV39JBk5u6l i+b+VgtBq0p039liYaJEA7bDOYyIdu+gergWLeethz7yhnxJrhlw5d87J/gT1WYM si6cSSuqpYLGPDbafSiG/8bvh5hqqSa2d82ZThWQvngSsDcuZbJHyDEJf80pHMs9 6BuptvuLUnbLhX97itwZYpVu34IDAGK5CEaFWQsj+ZvQvqV4Pu5q8DG424HcZJwM 0vrANrYZe1S/Boxn2QPraJVZ82tOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudduledgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeejuddrvdduvddrudef fedrudekleenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.133.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 518BB306005C; Thu, 7 Nov 2019 10:04:59 -0500 (EST) Subject: Re: broken backup trail in case of quickly patroni switchback and forth To: "Zwettler Markus (OIZ)" , "pgsql-general@lists.postgresql.org" References: <0613f7e85acf4972837408cfc6260387@zuerich.ch> From: Adrian Klaver Message-ID: <436fa29a-0803-a511-206c-fd8c0086c50f@aklaver.com> Date: Thu, 7 Nov 2019 07:04:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <0613f7e85acf4972837408cfc6260387@zuerich.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/7/19 5:52 AM, Zwettler Markus (OIZ) wrote: > we are using Patroni for management of our Postgres standby databases. > > we take our (wal) backups on the primary side based on intervals and thresholds. > our archived wal's are written to a local wal directory first and moved to tape afterwards. > > we got a case where Patroni switched back and forth sides quickly, e.g.: > 12:00h: primary - standby > 12:05h: standby - primary > 12:10h: primary - standby > > we realised that we will not have a wal backup of those wal's generated between 12:05h and 12:10h in this scenario. > > how can we make sure that the whole wal sequence trail will be backuped? any idea? Probably best to ask the Patroni folks: https://github.com/zalando/patroni#community > > - Markus > > -- Adrian Klaver adrian.klaver@aklaver.com