Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWAl5-0004Sh-Kg for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Feb 2016 22:39:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWAl4-0005ej-OE for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Feb 2016 22:39:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWAl3-0005e1-Qb for pgsql-bugs@postgresql.org; Wed, 17 Feb 2016 22:39:41 +0000 Received: from esg01.rackspace.com ([192.237.132.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWAkw-0004eN-B4 for pgsql-bugs@postgresql.org; Wed, 17 Feb 2016 22:39:40 +0000 Received: from smtpout.rackspace.com (unknown [10.13.196.107]) by Websense Email Security Gateway with ESMTPS id 76E06D4700BD5; Wed, 17 Feb 2016 22:36:55 +0000 (UTC) Received: from [10.1.69.69] (10.1.69.69) by 616645-OEXCH03.ror-uc.rackspace.com (10.13.196.107) with Microsoft SMTP Server (TLS) id 15.0.1178.1; Wed, 17 Feb 2016 16:39:30 -0600 Subject: Re: BUG #13962: transaction logs growing on standby To: Venkata Balaji N , PostgreSQL Bugs References: <20160215222948.2605.39385@wrigleys.postgresql.org> <56C4BF07.6030403@rackspace.com> From: Nick Bales Message-ID: <56C4F6A5.2060106@rackspace.com> Date: Wed, 17 Feb 2016 16:39:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------080805060308030907070109" X-Originating-IP: [10.1.69.69] X-ClientProxiedBy: 543818-OEXCH01.ror-uc.rackspace.com (10.13.196.91) To 616645-OEXCH03.ror-uc.rackspace.com (10.13.196.107) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --------------080805060308030907070109 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Understood. Really thought I exhausted all potential issues before submitting this. However, does still seem like the orphaned xlogs should be cleaned up if they predate the latest checkpoint. On 02/17/2016 04:21 PM, Venkata Balaji N wrote: > > On Thu, Feb 18, 2016 at 5:42 AM, Nick Bales > wrote: > > I am not seeing any instances of where the standby nodes are > falling behind the primary. However, I do see several instances > each day where the standby is having to re-establish the streaming > connection to the primary: > > 2015-12-15 07:25:10 GMT 12969 XX000 566f9ae1.32a9 0 FATAL: could > not send data to WAL stream: server closed the connection > unexpectedly > 2015-12-15 07:25:10 GMT 33302 00000 566fc056.8216 0 LOG: started > streaming WAL from primary at 374/F1000000 on timeline 1 > 2015-12-15 10:05:13 GMT 33302 XX000 566fc056.8216 0 FATAL: could > not send data to WAL stream: server closed the connection > unexpectedly > 2015-12-15 10:05:13 GMT 5001 00000 566fe5d9.1389 0 LOG: started > streaming WAL from primary at 375/11000000 on timeline 1 > > Upon closer inspection, the number of times this is occurring per > day does correspond to the number of orphaned xlogs for the day(by > file's last updated timestamp), so there does seem to be some > relevance. Will need to investigate further as to what is causing > the streaming connection to drop. > > > Thats the issue, there is an interruption in streaming probably due to > network related issues. That needs to be fixed first. > So, this is not a BUG. Please note that this is not an appropriate > mailing list to send these technical queries. Please consider sending > across such technical queries to pgsql-general mailing list. > > Regards, > Venkata B N > > Fujitsu Australia > --------------080805060308030907070109 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit Understood.  Really thought I exhausted all potential issues before submitting this.  However, does still seem like the orphaned xlogs should be cleaned up if they predate the latest checkpoint.

On 02/17/2016 04:21 PM, Venkata Balaji N wrote:

On Thu, Feb 18, 2016 at 5:42 AM, Nick Bales <nick.bales@rackspace.com> wrote:
I am not seeing any instances of where the standby nodes are falling behind the primary.  However, I do see several instances each day where the standby is having to re-establish the streaming connection to the primary:
 
  2015-12-15 07:25:10 GMT 12969 XX000 566f9ae1.32a9 0 FATAL: could not send data to WAL stream: server closed the connection unexpectedly
  2015-12-15 07:25:10 GMT 33302 00000 566fc056.8216 0 LOG: started streaming WAL from primary at 374/F1000000 on timeline 1
  2015-12-15 10:05:13 GMT 33302 XX000 566fc056.8216 0 FATAL: could not send data to WAL stream: server closed the connection unexpectedly
  2015-12-15 10:05:13 GMT 5001 00000 566fe5d9.1389 0 LOG: started streaming WAL from primary at 375/11000000 on timeline 1

Upon closer inspection, the number of times this is occurring per day does correspond to the number of orphaned xlogs for the day(by file's last updated timestamp), so there does seem to be some relevance.  Will need to investigate further as to what is causing the streaming connection to drop.

Thats the issue, there is an interruption in streaming probably due to network related issues. That needs to be fixed first.
So, this is not a BUG. Please note that this is not an appropriate mailing list to send these technical queries. Please consider sending across such technical queries to pgsql-general mailing list. 

Regards,
Venkata B N

Fujitsu Australia


--------------080805060308030907070109--