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 1gHVpv-0007aO-Ai for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 15:21:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHVpt-00047s-9n for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 15:21:41 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVpt-00045w-1b for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 15:21:41 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHVpq-0001oZ-3M for pgsql-general@postgresql.org; Tue, 30 Oct 2018 15:21:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D54545F79C; Tue, 30 Oct 2018 11:21:36 -0400 (EDT) Date: Tue, 30 Oct 2018 11:21:36 -0400 From: Stephen Frost To: Laurenz Albe Cc: Ghislain ROUVIGNAC , pgsql-general@postgresql.org Subject: Re: Portworx snapshots Message-ID: <20181030152136.GQ4184@tamriel.snowman.net> References: <20181028153535.GO4184@tamriel.snowman.net> <86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j0sFc7dcOWOMOcqv" Content-Disposition: inline In-Reply-To: <86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --j0sFc7dcOWOMOcqv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Laurenz Albe (laurenz.albe@cybertec.at) wrote: > 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. > >=20 > > 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. >=20 > Then "checkpoint_timeout" should also be large, right? Having a larger checkpoint timeout would also show that this method of failover runs the risk of there being a very long time required between when the failure is detected and when the new primary is online. Thanks! Stephen --j0sFc7dcOWOMOcqv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJb2HcAAAoJEO1sijiDR2RVVXgP/0grNUQXLYtiGdYn++GiNI2i RQeHTfEnaDd4cwgGqAMJXqv54iXlLTsGSwN79QZrpc1Ud4cdgd8RT2eP7BqArzsv lH2kX6UXcVWwFk8hi8vGWW1eSWkdF00M7/U3dSkk02vY6wuznf5TIN3N8Tan63kN 6rxqB/c/HxM70s3VrAtIbOFHLFJrKPCUUtcOdonWcjW0ZZtzxMK/F23MMAXCeEZ0 UbwG5lrTBXQD1TVwxKMgV6TSN8thBMKofy3B4pa3sMjGBvLdfReB5a9GqkF9g8hA p6AfuWHA/LQWQ4+P/BntbcMSwoGO0xx7Tobf9tjgQGRYyb7guG+kJj0STpztTUgR COYwNLA53nke2rc+sPCSP4/9AiED/qFeHypWTobMKoZpHRUmykR6Rmhps7XOvoi0 OCpSAuvTxVCuAvPj865F6xKkDMW8XgWf9FMaTIVOM6eACU6LIWQjwN2cwy2m7J9x O9rK7rr1NThs2AhLAeZlPevfcMv8tfV2wrHGJygMY/BSWMsTYnPXEa89LpwOmf6+ 1K9OwhLTmUT0x1/sNCd9mxEK2B3qMeSJ7g6UKlS6LqE07AD8z/MqDb/evv9P2E1J JMS9idYXHBdS158R7gje68RVKtBzwqp/qbK5J/BBEQKmPJe/RgqAirYAg1nMXXHq mMLw6z+sWUPa3cx6eArj =ewQJ -----END PGP SIGNATURE----- --j0sFc7dcOWOMOcqv--