pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Zach Walton <zacwalt@gmail.com>
To: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: Warm standby can't start because logs stream too quickly from the master
Date: Sat, 2 Dec 2017 11:55:27 -0800
Message-ID: <777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com> (raw)
In-Reply-To: <CAK-a08qW5B0Pj52y0j4V=wsyKOsQcf9Vas50DkUHQkQEVmP7WA@mail.gmail.com>
References: <CAK-a08qW5B0Pj52y0j4V=wsyKOsQcf9Vas50DkUHQkQEVmP7WA@mail.gmail.com>

On 12/02/2017 11:02 AM, Zach Walton wrote:
>
> Generally this works itself out if I wait (sometimes a really long 
> time). Is there a configuration option that allows a warm standby to 
> start without having fully replayed the logs from the master?
>
> * Note: wal_keep_segments is set to 8192 on these servers, which have 
> large disks, to allow for recovery within a couple of hours of a 
> failover without resorting to restoring from archive
> * This is specifically an issue for pgpool recovery, which fails if a 
> standby can't start within (by default) 300 seconds. Open to toggling 
> that param if there's no way around this.

It needs to only reach a consistent state, it doesn't need restore all 
logs. What does your recovery.conf say and are you *100% sure% you 
issued a pg_stop_backup()?

JD



-- 
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc

PostgreSQL Centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://pgconf.org
*****     Unless otherwise stated, opinions are my own.   *****





view thread (4+ messages)  latest in thread

Message-ID: <777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com>
Permalink:  ../777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com/
Also on:    postgresql.org/message-id/777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com

 · 

reply

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-general@postgresql.org
  Cc: jd@commandprompt.com, zacwalt@gmail.com
  Subject: Re: Warm standby can't start because logs stream too quickly from the master
  In-Reply-To: <777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com>
  References: <CAK-a08qW5B0Pj52y0j4V=wsyKOsQcf9Vas50DkUHQkQEVmP7WA@mail.gmail.com> <777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.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