From: Federico Campoli <federico@brandwatch.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8192: On very large tables the concurrent update with vacuum lag the hot_standby replica
Date: Fri, 07 Jun 2013 14:08:33 +0100
Message-ID: <51B1DB51.9070903@brandwatch.com> (raw)
In-Reply-To: <CAMkU=1xxuQM2D18AKhGyfFWP4s2B9cdjbNORzA-3pqTtYpu7mA@mail.gmail.com>
References: <E1Ui5wj-0007tI-Cl@wrigleys.postgresql.org>
<CAMkU=1x2zB2c8w=+nwQqXUBE0KvpYdJJ1iPYtD5ko12aP029Yw@mail.gmail.com>
<51ADE456.90400@brandwatch.com>
<20130604131407.GB2854@alap2.anarazel.de>
<51AE05AC.8020907@brandwatch.com>
<20130604152919.GB12172@alap2.anarazel.de>
<51AE0995.6010306@brandwatch.com>
<CAMkU=1xxuQM2D18AKhGyfFWP4s2B9cdjbNORzA-3pqTtYpu7mA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 06/06/13 21:22, Jeff Janes wrote:
> On Tue, Jun 4, 2013 at 8:36 AM, Federico Campoli
> <federico@brandwatch.com <mailto:federico@brandwatch.com>> wrote:
>
>
> This is the gprof output for the profile.
>
>
> This looks to me like the gprof of a process that is either idle, or
> completely IO bound.
>
> I'd probably approach this with a combination of "strace -T -ttt -p
> <PID>" and "lsof -p <PID>" on the PID of the start-up process, to see
> which file descriptors it is waiting for read or writes on, and what the
> underlying names of the files for those file descriptors are.
>
> Cheers,
>
> Jeff
I've generated a strace from the startup process a new profile report
and a new log file.
It's quite big so you can download here
http://d01.megashares.com/dl/BqZLh5H/HS_data_lag.tar
I've monitored the startup process lsof and the only files accessed are
the recovering wal and the relation affected by the master's activity.
Regarding the warm standby, I've repeated the test on my sandbox with
the slave in warm standby and I've noticed a replication lag spike.
This does not affect the production,same database version and
architecture from debian package.
If I turn on the hot standby on the failover in 30 minutes accumulates a
several Gigabytes lag. When I switch off the lag disappear.
I can just guess in WS the lag have less impact as the random read
resumes quicker than the HS.
Many thanks
Federico
--
Federico Campoli
Database Administrator brandwatch.com
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: federico@brandwatch.com, jeff.janes@gmail.com, andres@2ndquadrant.com
Subject: Re: BUG #8192: On very large tables the concurrent update with vacuum lag the hot_standby replica
In-Reply-To: <51B1DB51.9070903@brandwatch.com>
References: <E1Ui5wj-0007tI-Cl@wrigleys.postgresql.org> <CAMkU=1x2zB2c8w=+nwQqXUBE0KvpYdJJ1iPYtD5ko12aP029Yw@mail.gmail.com> <51ADE456.90400@brandwatch.com> <20130604131407.GB2854@alap2.anarazel.de> <51AE05AC.8020907@brandwatch.com> <20130604152919.GB12172@alap2.anarazel.de> <51AE0995.6010306@brandwatch.com> <CAMkU=1xxuQM2D18AKhGyfFWP4s2B9cdjbNORzA-3pqTtYpu7mA@mail.gmail.com> <51B1DB51.9070903@brandwatch.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