Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLDt1-0004Yy-T8 for pgsql-general@arkaria.postgresql.org; Sat, 02 Dec 2017 19:55:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLDt0-0003XJ-Nk for pgsql-general@arkaria.postgresql.org; Sat, 02 Dec 2017 19:55:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLDt0-0003X8-GA for pgsql-general@lists.postgresql.org; Sat, 02 Dec 2017 19:55:42 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLDsr-00021z-GT for pgsql-general@postgresql.org; Sat, 02 Dec 2017 19:55:41 +0000 Received: from [192.168.1.8] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 1D75D253; Sat, 2 Dec 2017 11:55:28 -0800 (PST) Received: from c-67-170-3-120.hsd1.wa.comcast.net ([67.170.3.120] helo=[192.168.1.8]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 2 Dec 2017 11:55:27 -0800 Subject: Re: Warm standby can't start because logs stream too quickly from the master To: Zach Walton , PostgreSQL mailing lists References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <777ff115-047e-0dfe-c153-440d3f8f7fde@commandprompt.com> Date: Sat, 2 Dec 2017 11:55:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-44528-08379 X-Assp-Session: 7FEAC4EECA00 (mail 1) X-Assp-Original-Subject: Re: Warm standby can't start because logs stream too quickly from themaster X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. *****