From: Tom Lane <tgl@sss.pgh.pa.us>
To: MirrorX <mirrorx@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: hot standby lagging vs warm that is up-to-date
Date: Wed, 29 Aug 2012 11:11:52 -0400
Message-ID: <10235.1346253112@sss.pgh.pa.us> (raw)
In-Reply-To: <1346231779970-5721711.post@n5.nabble.com>
References: <1346231779970-5721711.post@n5.nabble.com>
MirrorX <mirrorx@gmail.com> writes:
> i am facing a rather 'weird' issue so please if you have ideas/thoughs share
> them.
> i have a setup of a master server and hot standby one. the database settings
> on both are identical, the specs of the servers are the same except of the
> disks. the disks on the standby are much slower than the master's.
That is not a good situation to be in. Replay of WAL logs is typically
less efficient than original creation of them (there are various reasons
for this, but the big picture is that the replay environment can't use
as much caching as a normal server process). If the master's workload
is mostly-write then you need a slave with at least the same spec I/O
system, or it's very likely to fall behind.
> the problem is that during the apply of the archives, sometimes the process
> is being 'stuck' for too long on some archives (maybe even more than 30
> minutes for a single archive or even 2 hours on some occasions). at that
> point, running an 'iostat' command shows one of the disks(not always the
> same disk) being used 100%.
Hm. Can you get a stack trace of the startup process when it's doing
that?
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mirrorx@gmail.com
Subject: Re: hot standby lagging vs warm that is up-to-date
In-Reply-To: <10235.1346253112@sss.pgh.pa.us>
References: <1346231779970-5721711.post@n5.nabble.com> <10235.1346253112@sss.pgh.pa.us>
* 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