pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabio Ugo Venchiarutti <f.venchiarutti@ocado.com>
To: Avinash Kumar <avinash.vallarapu@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: Daulat Ram <Daulat.Ram@exponential.com>
Cc: David Steele <david@pgmasters.net>
Cc: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Postgres Point in time Recovery (PITR),
Date: Mon, 21 Oct 2019 12:26:53 +0100
Message-ID: <9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com> (raw)
In-Reply-To: <CAN0TujfCCzXw79kwuiZ9T4zLBTDu4x=_x2bnPK1vT0=gkPd9ng@mail.gmail.com>
References: <MN2PR01MB5854BEF9884EA942657A18799B6C0@MN2PR01MB5854.prod.exchangelabs.com>
	<VisenaEmail.8c.74d96bc312aea0bc.16dddf72933@tc7-visena>
	<CAKoxK+7PpV6G16nuXhuUjUN_SNVjUsVM2s5ns_AMUvksgys52A@mail.gmail.com>
	<3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net>
	<CAN0TujfmLyph4qNLBPqpo5iah7yOo6Vk4FxLFVRBO7eA49dFCQ@mail.gmail.com>
	<MN2PR01MB58540CE1040B6FF46B4048109B6F0@MN2PR01MB5854.prod.exchangelabs.com>
	<CAKoxK+5M0ZOS=zaTa60HS94W7qXX14qE+9F+SA2bgX9=7PXaxg@mail.gmail.com>
	<c3cdd571-fe36-fd4b-31a5-3d1cab825164@ocado.com>
	<CAN0TujfCCzXw79kwuiZ9T4zLBTDu4x=_x2bnPK1vT0=gkPd9ng@mail.gmail.com>

On 21/10/2019 12:10, Avinash Kumar wrote:
> 
> 
> On Mon, Oct 21, 2019 at 4:19 PM Fabio Ugo Venchiarutti 
> <f.venchiarutti@ocado.com <mailto:f.venchiarutti@ocado.com>> wrote:
> 
>     On 21/10/2019 09:52, Luca Ferrari wrote:
>      > On Sat, Oct 19, 2019 at 7:46 PM Daulat Ram
>     <Daulat.Ram@exponential.com <mailto:Daulat.Ram@exponential.com>> wrote:
>      >> One more questions is, how backups are useful if we have
>     streaming replication . As I know, we can promote the standby as
>     primary in case of disaster at primary side. Do we need to schedule
>     backups if we have streaming replication?
>      >
>      > Let's speculate a little on that: do you need backups if you have a
>      > RAID-1 configuration?
>      > Replication helps you reduce almost to zero the time to handle a
>      > disaster, backups allow you to recover in a more large time window.
>      >
>      > Luca
>      >
>      >
> 
> 
>     TBH I hear this argument more often than I wish.
> 
> 
>     Offline backups and data replication are nearly entirely orthogonal. 
> 
> 
> 
>     Any form of instantaneous redundancy (RAID, instantaneous replication
>     and so on) primary is a mitigation measure to protect data &
>     availability against loss of infrastructure.
> 
> 
>     Backups (preferably with PITR) also do that, but that's not their
>     primary purpose unless you can't afford live redundancy on top of them.
> 
> 
>     Offline backups address many failure scenarios that any form of live
>     replication is defenseless against (eg: logical damage to the data as a
>     result of human errors/bugs/vandalism would hit all your replicas, but
>     you always can perform DR from a backup).
> 
> I think we are way ahead of the days where we need to live on Offline 
> backups involving downtimes.
> Today, we have several Online Consistent Backup solutions such as 
> pg_basebackup (built-in with PG), pgBackRest, BARMAN, WAL-G etc ....
> Online Consistent BackupsĀ + Archiving of WALs are perfectly reliable.
> We need to ensure that we have safe backup locations, for example, push 
> them to AWS S3 and forget about redundancy.
> Why do you think only Offline Backups are reliable today ?
> 
> 
> 
>     Delayed replicas, or any online rollback capability (such as pg_rewind
>     off the server's own pg_wal or Oracle's flashback), somewhat live in a
>     grey area in between, and their effectiveness varies depending on which
>     level was compromised.
> 
> What if you delay your replica by a day, before you making a change 
> tomorrow (that may need a rollback). Delayed Replica is for emergencies 
> IMO and of course does not satisfy every possible scenario.
> 
> 

Trade-offs come down to individual implementers, so fair enough.


Our biases must come from different use cases/experience: a good 
fraction of recovery/sanitisation operations I had to carry out were 
very selective/application specific and involved buildup of anomalies 
over time, sometimes months.


Wouldn't have been possible without an old frozen reference for users to 
compare with, and that hat to come from very cold storage.




-- 
Regards

Fabio Ugo Venchiarutti
OSPCFC Network Engineering Dpt.
Ocado Technology

-- 


Notice: 
This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group.

If you are not the intended recipient, please notify us 
immediately and delete all copies of this message. Please note that it is 
your responsibility to scan this message for viruses.

References to the 
"Ocado Group" are to Ocado Group plc (registered in England and Wales with 
number 7098618) and its subsidiary undertakings (as that expression is 
defined in the Companies Act 2006) from time to time. The registered office 
of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, 
Hatfield, Hertfordshire, AL10 9UL.





view thread (21+ messages)  latest in thread

Message-ID: <9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com>
Permalink:  ../9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com/
Also on:    postgresql.org/message-id/9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com

 · 

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: f.venchiarutti@ocado.com, avinash.vallarapu@gmail.com, fluca1978@gmail.com, Daulat.Ram@exponential.com, david@pgmasters.net, andreas@visena.com
  Subject: Re: Postgres Point in time Recovery (PITR),
  In-Reply-To: <9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com>
  References: <MN2PR01MB5854BEF9884EA942657A18799B6C0@MN2PR01MB5854.prod.exchangelabs.com> <VisenaEmail.8c.74d96bc312aea0bc.16dddf72933@tc7-visena> <CAKoxK+7PpV6G16nuXhuUjUN_SNVjUsVM2s5ns_AMUvksgys52A@mail.gmail.com> <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net> <CAN0TujfmLyph4qNLBPqpo5iah7yOo6Vk4FxLFVRBO7eA49dFCQ@mail.gmail.com> <MN2PR01MB58540CE1040B6FF46B4048109B6F0@MN2PR01MB5854.prod.exchangelabs.com> <CAKoxK+5M0ZOS=zaTa60HS94W7qXX14qE+9F+SA2bgX9=7PXaxg@mail.gmail.com> <c3cdd571-fe36-fd4b-31a5-3d1cab825164@ocado.com> <CAN0TujfCCzXw79kwuiZ9T4zLBTDu4x=_x2bnPK1vT0=gkPd9ng@mail.gmail.com> <9081a471-6c65-6e89-e43f-a07ec6027cbe@ocado.com>

* 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