Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH2JC-0003oV-ID for pgsql-general@arkaria.postgresql.org; Mon, 29 Oct 2018 07:49:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gH2JA-0000iW-Fa for pgsql-general@arkaria.postgresql.org; Mon, 29 Oct 2018 07:49: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH2JA-0000iO-49 for pgsql-general@lists.postgresql.org; Mon, 29 Oct 2018 07:49:56 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gH2J6-0002j5-KV for pgsql-general@postgresql.org; Mon, 29 Oct 2018 07:49:54 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 92A584BB19; Mon, 29 Oct 2018 08:49:48 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id eET6qgN4JWNw; Mon, 29 Oct 2018 08:49:46 +0100 (CET) Message-ID: <86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at> Subject: Re: Portworx snapshots From: Laurenz Albe To: Stephen Frost , Ghislain ROUVIGNAC Cc: pgsql-general@postgresql.org Date: Mon, 29 Oct 2018 08:49:43 +0100 In-Reply-To: <20181028153535.GO4184@tamriel.snowman.net> References: <20181028153535.GO4184@tamriel.snowman.net> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost wrote: > The downside with any snapshot-style approach is that it means that when > you have a failure, you have to go through and replay all the WAL since > the last checkpoint, which is single-threaded and can take a large > amount of time. > > When doing your testing, I'd strongly recommend that you have a large > max_wal_size, run a large pgbench which writes a lot of data, and see > how long a failover takes with this system. Then "checkpoint_timeout" should also be large, right? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com