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 1gGn8X-0001Q5-TG for pgsql-general@arkaria.postgresql.org; Sun, 28 Oct 2018 15:37: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 1gGn6O-0006H5-0Y for pgsql-general@arkaria.postgresql.org; Sun, 28 Oct 2018 15:35:44 +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 1gGn6N-0006Gx-Jm for pgsql-general@lists.postgresql.org; Sun, 28 Oct 2018 15:35:43 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gGn6G-000738-HA for pgsql-general@postgresql.org; Sun, 28 Oct 2018 15:35:41 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4A8BA5F79C; Sun, 28 Oct 2018 11:35:35 -0400 (EDT) Date: Sun, 28 Oct 2018 11:35:35 -0400 From: Stephen Frost To: Ghislain ROUVIGNAC Cc: pgsql-general@postgresql.org Subject: Re: Portworx snapshots Message-ID: <20181028153535.GO4184@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QAQDXueVfMnLQKhs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --QAQDXueVfMnLQKhs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Ghislain ROUVIGNAC (ghr@sylob.com) wrote: > Portworx says that on a running PostgreSQL it can: >=20 > - replicate volumes for failover > - take snapshots of volumes > - backup volumes 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. This is why PostgreSQL has streaming replication, where we are constantly sending WAL to the replica and replaying it immediately, and that also allows us to have synchronous replication that is quorum based and works with PostgreSQL, unlike what a snapshot level system would provide. 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. > Does someone use them in production ? > How reliable are these features ? > Are there performance impacts of snapshots ? I don't know anything about the actual utilization of this in production or if this implementation is reliable, just to be clear. My comments specifically are about the performance of using a snapshot-based approach (which could be this solution or various other ones). Thanks! Stephen --QAQDXueVfMnLQKhs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJb1ddGAAoJEO1sijiDR2RVQfEP/jIVCUPjwPbdxX6pZIuAQm5l ImpjKx5gwsOh0pDZ7EB6zw8+sJ6DsvqCdJ3QGMPQRJa6SGkUsRrYWTDOe7o937La +IP+cCfFMtzazixlZl90d/nP1aOPvSfmpi2qIuxWWvKbesewohARG1G+TpDmx2q0 qprgSX1OkJ7DJ5ZGVMVw4NnQmFhbyd/eEUQex/SukoSO14Fkhdwmrqr/iK/9zopr dG8eVHKf/TFU+0huVXMy1cEXzW+bHrc9zHF/TJl+xAE66gH5xLlTT+gybpF/C3Qa Un8E1NbYalq99Io4ktFAVgeRkidfq10/m6GxgDjVpyUxwO7FrCPLyZo82UN7IU7V hb2i/ZUOPqhnryxRAKjM3R0zHpZd1F8QbcfZvsA/nNqTV1qPqPFGxb3gUEKy+SV6 ckn/M0+WkznnxyvlGVjB2vZgLioRWbkTMUOhmTKYOqRR3T3wbysnkGbLs1l3On4o ULxSF5ajka4qSic0riEikd4nXjV7/JonZ3QJnmdTDKyz0yQBgI6uHUL54ZHNNKPL ufdTtKEuvBgiQeqsLAdaNhV52jN0NtFzadUE6oe/jMWI/kessIkN4+9GD9b+A/32 G71+W9Q+4gWdlmhwR7NyIkd4UljO3uPOo7V3WCLlrg8tUEB7r7Cd4MU1/UUmHXUl fxNtMRnchfhEIqKDC0Nv =7sVd -----END PGP SIGNATURE----- --QAQDXueVfMnLQKhs--