Re: Streaming replication on 9.1-beta2 after pg_restore is very slow

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: David Hartveld <David(dot)Hartveld(at)mendix(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Streaming replication on 9.1-beta2 after pg_restore is very slow
Date: 2011-07-07 14:21:11
Message-ID: CA+U5nMJD4LS2=orsOOgU+sKapTmn3-_fmox_u5fjvnc7JjAUeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 7, 2011 at 2:59 PM, David Hartveld
<David(dot)Hartveld(at)mendix(dot)com> wrote:

> I've been looking at my log files on master and slave a bit better, after having set log_min_messages = debug5. I can see that somehow the master and slave don't properly work together: the slave attempts to send some data ('sending write/flush/apply') (I'm assuming this is the slaves current location in the WAL?) and then 'terminates process due to administrator command', while the master is sending data ('write/flush/apply') (the next part of the WAL?), and then 'could not send data to the client: Connection reset by peer', after which the server process exits. I'm hoping this provides you with more information on what is going on. Do point me in the right direction if you need me to investigate further. I have attached two pieces of the master and slave log files, which should correspond w.r.t. their interaction, where you can see the above behavior.

Ah, so synchronous_standby_names is set on the standby.

Please reset that so we are operating asynchronously, then rerun tests
to see if that avoids the error. You'll probably need to fully
re-generate the standby server before doing this.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message salah jubeh 2011-07-07 14:21:59 Re: Oracle to Postgres migration open source tool
Previous Message Andrew Sullivan 2011-07-07 14:14:07 Re: Oracle to Postgres migration open source tool