pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karl Denninger <karl@denninger.net>
To: pgsql-admin@lists.postgresql.org
Subject: Re: backup postgresql with snapshot AWS
Date: Fri, 19 Jan 2018 12:48:39 -0600
Message-ID: <863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.net> (raw)
In-Reply-To: <ae8b9394-aabe-2dfa-70e1-b349100f90ee@matrix.gatewaynet.com>
References: <166191299.1443519.1516368751643@mail.virgilio.it>
	<58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net>
	<2ce36d42-c90a-ed10-173d-7b8445c1cec9@denninger.net>
	<A6F69AB0-A8A3-4102-B11A-24868D7FD031@icloud.com>
	<ae8b9394-aabe-2dfa-70e1-b349100f90ee@matrix.gatewaynet.com>

On 1/19/2018 10:23, Achilleas Mantzios wrote:
> On 19/01/2018 17:40, Rui DeSousa wrote:
>
>> If the snapshot is not atomic and/or using multiple filesystems; that
>> is fine as long as it’s issued and completed within the
>> pg_start_backup() and pg_stop_backup() calls.
> And as long as the needed wals belonging to that interval between
> start and stop are to be found in the archive when the problem arises.
> So the whole system must be well documented and periodically tested.
>>
The latter is the problem (e.g. when it says "complete" it really is
done and it really is safe to issue the pg_stop_backup() and grab the
WAL) and further you are relying on an assumption of atomicity within
the I/O subsystem when it is requested by the application within your VM
(in which it's reasonable to believe that when fsync() returns it really
HAS committed the data from the perspective of said VM) yet you're doing
some other operation *behind* the VM on which your application is running.

IMHO the more you intertwine things you cannot be certain of because
they operate outside of your particular VM's space with a process that
relies on them the more you are risking finding out that your
assumptions are wrong the hard way.  You *shouldn't* get bit by this in
a well-designed cloud or cluster system but that's not an acceptable
word to describe the expected results when it's important.

-- 
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

Attachments:

  smime.p7s (application/pkcs7-signature, 4.8K) download

view thread (13+ messages)  latest in thread

Message-ID: <863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.net>
Permalink:  ../863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.net/
Also on:    postgresql.org/message-id/863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.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-admin@postgresql.org
  Cc: karl@denninger.net
  Subject: Re: backup postgresql with snapshot AWS
  In-Reply-To: <863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.net>
  References: <166191299.1443519.1516368751643@mail.virgilio.it> <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net> <2ce36d42-c90a-ed10-173d-7b8445c1cec9@denninger.net> <A6F69AB0-A8A3-4102-B11A-24868D7FD031@icloud.com> <ae8b9394-aabe-2dfa-70e1-b349100f90ee@matrix.gatewaynet.com> <863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.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