pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Ghislain ROUVIGNAC <ghr@sylob.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Portworx snapshots
Date: Tue, 30 Oct 2018 11:21:36 -0400
Message-ID: <20181030152136.GQ4184@tamriel.snowman.net> (raw)
In-Reply-To: <86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at>
References: <CAH12p1CNxXSt2X0157CqqD20zvv3XEOLdbUvuqNnq0ZvyPY5NA@mail.gmail.com>
	<20181028153535.GO4184@tamriel.snowman.net>
	<86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at>

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.
> > 
> > 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?

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20181030152136.GQ4184@tamriel.snowman.net>
Permalink:  ../20181030152136.GQ4184@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20181030152136.GQ4184@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, laurenz.albe@cybertec.at, ghr@sylob.com
  Subject: Re: Portworx snapshots
  In-Reply-To: <20181030152136.GQ4184@tamriel.snowman.net>
  References: <CAH12p1CNxXSt2X0157CqqD20zvv3XEOLdbUvuqNnq0ZvyPY5NA@mail.gmail.com> <20181028153535.GO4184@tamriel.snowman.net> <86bd6d8e5019bd5f48a44c769f011613a1728f23.camel@cybertec.at> <20181030152136.GQ4184@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox