Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XloEU-0005Qv-0h for pgsql-admin@arkaria.postgresql.org; Wed, 05 Nov 2014 00:13:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XloET-0005gT-Hj for pgsql-admin@arkaria.postgresql.org; Wed, 05 Nov 2014 00:13:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XloES-0005gN-QZ for pgsql-admin@postgresql.org; Wed, 05 Nov 2014 00:13:52 +0000 Received: from timia.de ([46.19.37.103] helo=timia.eu) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XloEP-0003DX-Ah for pgsql-admin@postgresql.org; Wed, 05 Nov 2014 00:13:51 +0000 Received: from mia (dslb-188-099-206-208.188.099.pools.vodafone-ip.de [188.99.206.208]) by timia.eu (Postfix) with ESMTPSA id 2A03F409E for ; Wed, 5 Nov 2014 01:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=timia.de; s=mail; t=1415146428; bh=5TlJyLNXoeeg2W8uCpIEH2MgumH4zbAdPEqvzVQU5Rs=; h=Message-ID:From:To:Subject:Date:MIME-Version:Content-Type; b=EUwIYPTZSpai06RUEkwdFslU3p2+vws3Qn1AxjfGL1mZw2b4I3jMx3WjQnri2v//P Z5jeOl8la5cvyCFONEoZGI4P0FBvrpl435mQqEc6D2ToYjt6o81W4r6KjTmwtbLRQd V5as5SUi4aRpdh3x2C2wV+yccI810RrlpzC0UeAc= Message-ID: From: "Tom Fischer" To: Subject: xlog-cleanup problem Date: Wed, 5 Nov 2014 01:13:49 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0C85_01CFF895.C162B1C0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Pg-Spam-Score: 0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Dies ist eine mehrteilige Nachricht im MIME-Format. ------=_NextPart_000_0C85_01CFF895.C162B1C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, we have some problems with the xlog-directory (size 5 GB). When we take = a backup from one of our databases (about 80 GB data) and use an own = script called by recovery.conf it begins to start the consumation of the = wal-files fetched from our nas at a rate of about 2 per second. Postgres just will not clean up the xlog-directory in time, so it runs = full and next essential wal-file file could not be copied. So my script stops for 5 minutes and sometimes the xlog is cleaned up a = bit (from 100% to 84%) and the game starts again, there also has been = some kind of lock and nothing happened until I restarted the cluster. On = a restart the directory is cleaned up and about one half of the 5 GB = will become available. Checkpoint_segments are set to 64, wal-file-size is 16 MB, so at about = 300 wal-files the whole game is over even if there should never be more = then 3 * 64 + xxx, what should be under 200. Why do we get a lot more then 300 wal-files and what can we do against = this, even 10 GB xlog-size is not enough to keep up some kind of = balance. With friendly regards=20 Tom Fischer ------=_NextPart_000_0C85_01CFF895.C162B1C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
we have some problems with the xlog-directory (size 5 GB). When we = take a=20 backup from one of our databases (about 80 GB data) and use an own = script called=20 by recovery.conf it begins to start the consumation of the wal-files = fetched=20 from our nas at a rate of about 2 per second.
 
Postgres just will not clean up the xlog-directory in time, so it = runs full=20 and next essential wal-file file could not be copied.
So my script stops for 5 minutes and sometimes the xlog is cleaned = up a bit=20 (from 100% to 84%) and the game starts again, there also has been some = kind of=20 lock and nothing happened until I restarted the cluster. On a restart = the=20 directory is cleaned up and about one half of the 5 GB will become=20 available.
 
Checkpoint_segments are set to 64, wal-file-size is 16 MB, so at = about 300=20 wal-files the whole game is over even if there should never be more then = 3 * 64=20 + xxx, what should be under 200.
Why do we get a lot more then 300 wal-files and what can we do = against=20 this, even 10 GB xlog-size is not enough to keep up some kind of = balance.
 
With friendly regards
Tom Fischer
------=_NextPart_000_0C85_01CFF895.C162B1C0--