Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YWkl7-0004dg-8H for pgsql-admin@arkaria.postgresql.org; Sat, 14 Mar 2015 12:01:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YWkl6-0002Qp-NS for pgsql-admin@arkaria.postgresql.org; Sat, 14 Mar 2015 12:01:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YWkl4-0002Nl-Tl for pgsql-admin@postgresql.org; Sat, 14 Mar 2015 12:01:35 +0000 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YWkkx-0003Rf-OS for pgsql-admin@postgresql.org; Sat, 14 Mar 2015 12:01:32 +0000 Received: by wggv3 with SMTP id v3so6751285wgg.1 for ; Sat, 14 Mar 2015 05:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=trIcELc5au10SexAFtGd0qsO/X2cEqWaxyfXEaracjM=; b=b3t6lTn6DnPnWGDPn4E/0wDOzE5phNcJ5z8yL/sPNKZRJIETLYml0UgNXq3ngF2YId OvwG1706WWaGqfiAJagFJ01UQkff8J0sjiQBKCsn/m1X/53Jwr9wK/jCpFkZN8Anzfc1 9aH1ytPLsOL3MWE9jhgF2nRb/h8ExK+DwDCWvK5dIA+57PzRYKBZ3paqurM3D8WQCtzi XxoHI6iPRMlPlmklP4wiW8A3Ad9WbGDcZ7sKXNBo0FUSJI1l2Z1+LaUUWspMFzn4blP7 YsnKGxjfV34WzzNXo8l1rf3YwEXZR3wMtqTCxd3V4U1FVj0mKL+U13FDjhr0OAUA9Kc8 c5fQ== X-Received: by 10.181.8.75 with SMTP id di11mr148824217wid.26.1426334486056; Sat, 14 Mar 2015 05:01:26 -0700 (PDT) Received: from enterprisedb01 (84.125.177.156.dyn.user.ono.com. [84.125.177.156]) by mx.google.com with ESMTPSA id j7sm6741040wix.4.2015.03.14.05.01.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Mar 2015 05:01:25 -0700 (PDT) Message-ID: <1426334484.3775.6.camel@gmail.com> Subject: Re: WAL log management w/ multiple slaves From: jaime soler Reply-To: jaime.soler@gmail.com To: Wells Oliver Cc: pgsql-admin@postgresql.org Date: Sat, 14 Mar 2015 13:01:24 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.7 (-) 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 El mar, 02-12-2014 a las 10:30 -0800, Wells Oliver escribió: > Hi all. I currently have one master and one slave, and the slave > cleans up the unneeded WAL files via pg_archivecleanup. > > > I'm adding a third slave and I was wondering what the best practices > are in terms of managing these WAL files when there's more than one > dependent server, in a situation where you can't have a slave removing > the files. Maybe you should use new feature of postgresql 9.4, replication slot: "Replication slots provide an automated way to ensure that the master does not remove WAL segments until they have been received by all standbys, and that the master does not remove rows which could cause a recovery conflict even when the standby is disconnected." > > I thought I could just cron up a removal of logs older than X days, > which seems pretty easy, but not sure. > > > Thanks! > > > -- > Wells Oliver > wellsoliver@gmail.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin