Re: Warm-standby in 8.2

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Bhella Paramjeet-PFCW67" <PBhella(at)Motorola(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Warm-standby in 8.2
Date: 2008-06-20 14:06:19
Message-ID: 485B72D5.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> On Thu, Jun 19, 2008 at 6:31 PM, in message
<C84662912D280D4AB5C50100A100F0C503715DDA(at)ct11exm61(dot)ds(dot)mot(dot)com>,
"Bhella
Paramjeet-PFCW67" <PBhella(at)Motorola(dot)com> wrote:

> we need to monitor the standby database to
> check that it is up, it is getting synced every 10 minutes, and that
it
> is not out of sync with primary database. What would be the best way
to
> make these checks or what processes to check to make sure that the
> archived logs from primary database are continuously getting applied
on
> the standby database.

We run pg_controldata for the warm standby to make sure that "Database
cluster state" is 'in archive recovery' and "Time of latest
checkpoint" doesn't get too stale. We also run pg_ctl status and make
sure that it reports 'server is running'. This can all be scripted.

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-06-20 14:24:09 Re: Major upgrade advice
Previous Message Roberto Garcia 2008-06-20 14:06:01 Re: Major upgrade advice