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 1iAlRJ-0004cZ-Qx for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 01:40:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAlRI-0002iI-IT for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 01:40:56 +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 1iAlRI-0002i3-3L for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 01:40:56 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iAlRF-0008Rv-RX for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 01:40:55 +0000 Received: by mail-oi1-x22a.google.com with SMTP id i16so1357655oie.4 for ; Wed, 18 Sep 2019 18:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=aiFfJlvc1KdCJUrd20uIL2cUm6B9qDssQysSY3ZJfEo=; b=Ms/kyRTR/nfQ5g6juDPt8z/Me2zfEbReC8eLDEg8BsrIlX4O6ytf739DIxiwtebhbO J3rkuvJpKVMZOd4QDvjx/sRa4KnHD2LTyFyQXB/IJZclbOpG25XGG91i3GHHx/K5qFpE 97wmWhQbnPn3KGbqi8igP0VsyypJ4AdPfT3nOCN/sfLIa/e5xiY5LZcMTP6y/Yvo1p4y Lbr6La7g49L2OJR3kVh+nAEsgDQrQtGy59YffP9Pr7S/6h6PaDvrbVe3N1SwwyuRHLy4 Dxl4a5b6GAeUVmV4tdteB1BJJsxCCIljUju2riTejErIqS/5eXoiFDD9T7DEGIPime2c 0Nqw== 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-transfer-encoding :content-language; bh=aiFfJlvc1KdCJUrd20uIL2cUm6B9qDssQysSY3ZJfEo=; b=RsGPN3xpvFGOyti5Oi3N5XkY4dilFesoZyH+wwFOEslb+4FAU9wH0/1l91vTDs8qUI MWz8WBcOGeDgM8OSZ+asojmH/lfoZLxANofRXvP0/q3mF/BDB8QB4f0EcTnB79R1K31E Z3Hfs8k2F3iyYS8FAesJGxSwacifeZoDxBl+9mxQLnXnlOu68YBME/OoN+DBpgGyIK0J OYcEuBfhalJUg/2IE050tgfObzPYoIiUpvvM1zf49GB4u53Tp1FAM18Rp4kHJqFd4QUS D7RlPqnQ/gXlzoC65I+a7JqM9BdUWuwytSEH1KpZTF8hNTiJ2WTa2ogWLY/rKbFvWipE RWSw== X-Gm-Message-State: APjAAAX7CT1MGL0VX1ALzopWZNoZHq6Tski1CwWhE5kL/PCpe7xSIS59 F1nrp1nW4vEgL+ClwWyhQUNhDc+NVvjZfw== X-Google-Smtp-Source: APXvYqyRymlTmq/z9tN4os/DdWoUUB+a4D/SenalZJp2NQZUtMSLHLoY5flfVjx6RGb2c0c+B2k1VQ== X-Received: by 2002:aca:5252:: with SMTP id g79mr577143oib.72.1568857253034; Wed, 18 Sep 2019 18:40:53 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id g129sm43881oib.50.2019.09.18.18.40.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 18:40:52 -0700 (PDT) Subject: Re: pgbackrest - question about restoring cluster to a new cluster on same server To: pgsql-general@lists.postgresql.org References: <0c037137-9480-3afa-a4b7-1400a9879cd2@gmail.com> From: Ron Message-ID: Date: Wed, 18 Sep 2019 20:40:51 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/18/19 8:31 PM, David Steele wrote: > On 9/18/19 6:59 PM, Ron wrote: >> Scenario: there's data corruption on production server, so we need to do >> a PITR restore from "a few days ago" of the cluster holding the prod >> databases to a second cluster on that same VM in order to try and find >> the missing data and load it back into the prod cluster. >> >> Other than putting a high I/O load on the LUN where repo-path is located >> (from both writing WALs to it and reading the backed up files), will >> there be any problems when "pg_ctl start" processes recovery.conf and >> applies the WAL files to the new cluster while the prod cluster is >> writing new WAL files. >> >> Does my question make sense? > It does, but the answer lies outside of pgBackRest. "Can the repo > storage handle the load of archive-push and archive-get at the same > time" is really a question of storage and network throughput. That's outside my control and will "just" slow things down. > pgBackRest compresses everything by default which goes a long way > towards increasing throughput, but ultimately we don't control the > bandwidth. > > Having said that, if the storage and network throughput are sufficient, > restoring and recovering a standby using pgBackRest will not impact the > primary as a direct pg_basebackup will. I'm concerned with one pgbackrest process stepping over another one and the restore (or the "pg_ctl start" recovery phase) accidentally corrupting the production database by writing WAL files to the original cluster. -- Angular momentum makes the world go 'round.