pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
To: Mark Steben <mark.steben@drivedominion.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Monitoring hot standby replication for failure
Date: Mon, 25 Mar 2019 21:24:32 +0100
Message-ID: <20190325212432.0d16bb73@firost> (raw)
In-Reply-To: <CADyzmyxM9_10Wa8gu-HLbJZ9zR-w+1pwZ2yTaVqJH0AdDnD7Jw@mail.gmail.com>
References: <CADyzmyxM9_10Wa8gu-HLbJZ9zR-w+1pwZ2yTaVqJH0AdDnD7Jw@mail.gmail.com>

On Mon, 25 Mar 2019 13:50:42 -0400
Mark Steben <mark.steben@drivedominion.com> wrote:

> Good afternoon,
> 
> We are running postgres 9.4.  We are outsourcing our databases to another
> datacenter owned by a third party company.  The methodology we are using to
> move the database is hot standby log shipping replication.  We will run
> streaming replication for several days then, when the time comes to pull
> the trigger and make the move, I will complete recovery, bring in a
> 'production' version of postgresql.conf, restart the database, and hand it
> over to the apps.
> 
> We want to make sure that during the several days of replication we are
> immediately notified if a problem arises - a missing log, a production
> outage, etc.  Is there a monitor or an 'in-the-box' procedure, or perhaps a
> condition to check during hot standby or streaming replication to ensure
> things are still running as planned, or if there is a problem?

You could simply use check_pgactivity to check the streaming replication delta.

Moreover, you'll be able to monitor the archiving process if you set it up.




view thread (5+ messages)  latest in thread

Message-ID: <20190325212432.0d16bb73@firost>
Permalink:  ../20190325212432.0d16bb73@firost/
Also on:    postgresql.org/message-id/20190325212432.0d16bb73@firost

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ioguix@free.fr, mark.steben@drivedominion.com
  Subject: Re: Monitoring hot standby replication for failure
  In-Reply-To: <20190325212432.0d16bb73@firost>

* 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