Re: Standby server lagging behind - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Standby server lagging behind
Date
Msg-id 4B5963D8020000250002EA26@gw.wicourts.gov
Whole thread Raw
In response to Standby server lagging behind  ("Huda Booley (huda@careerjunction.co.za)" <Huda@careerjunction.co.za>)
Responses Re: Standby server lagging behind  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
"Huda Booley (huda@careerjunction.co.za)"
<Huda@careerjunction.co.za> wrote:
> These get copied to the standby so its all there, just not being
> applied fast enough.
If the files are there and are not applying fast enough, it's
probably because on the source machine you can have multiple
connections submitting data modifications, keeping multiple CPUs and
spindles busy all at the same time.  When playing back the WAL files
on the warm standby, you have one connection which has a harder time
keeping a lot of resources busy.
I think I have some recall of improvements to that in the 8.4
release, so an upgrade might help.  Other than that, I think it's
mostly a matter of your hardware and OS.  Make sure you have a RAID
controller with battery backed cache configured for write-back,
spread the database across as many spindles as you can, don't worry
so much about how *many* CPUs you have as how *fast* they are.
I've never actually had this problem, so take my advice on it with
a grain of salt.
-Kevin


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: primary key error message
Next
From: Robert Haas
Date:
Subject: Re: warn in plperl logs as... NOTICE??