Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4qpR-0002md-LG for pgsql-admin@arkaria.postgresql.org; Thu, 10 Nov 2016 14:59:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4qpQ-0002NR-6J for pgsql-admin@arkaria.postgresql.org; Thu, 10 Nov 2016 14:59:48 +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 1c4qnj-0000Sd-CD for pgsql-admin@postgresql.org; Thu, 10 Nov 2016 14:58:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4qng-0004Dj-Ie for pgsql-admin@postgresql.org; Thu, 10 Nov 2016 14:58:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAAEvvQI004752; Thu, 10 Nov 2016 09:57:57 -0500 From: Tom Lane To: Craig James cc: "pgsql-admin@postgresql.org" Subject: Re: WAL size many times data size? In-reply-to: References: Comments: In-reply-to Craig James message dated "Thu, 10 Nov 2016 06:17:48 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4750.1478789877.1@sss.pgh.pa.us> Date: Thu, 10 Nov 2016 09:57:57 -0500 Message-ID: <4751.1478789877@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Craig James writes: > Our streaming replication and WAL archiving keep having trouble because of > the sheer size of the WAL files. The number of bytes in the WAL files seems > to be a large multiplier, like 5x or 10x, the amount of data that we load. My first instinct would be to check how often checkpoints are happening, and increase the checkpoint control parameters so that they're at least 5 to 15 minutes apart. A short checkpoint interval leads directly to WAL bloat because it means more full-page images get inserted into WAL. (The first change of any given page after a checkpoint requires an FPI.) regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin