Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i05Jd-0001Ac-6Z for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 14:40:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i05Jb-0005JL-U6 for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 14:40:51 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1i05Jb-0005F8-Ht for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 14:40:51 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i05JY-0005LM-2o for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 14:40:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 36D145F79F; Tue, 20 Aug 2019 10:40:46 -0400 (EDT) Date: Tue, 20 Aug 2019 10:40:46 -0400 From: Stephen Frost To: Vikas Sharma Cc: pgsql-general@lists.postgresql.org Subject: Re: pg_xlog on slaves has grown to 200GB Message-ID: <20190820144045.GQ16436@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GWLOz4aYYhiuVukd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --GWLOz4aYYhiuVukd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Vikas Sharma (shavikas@gmail.com) wrote: > We are using postgresql 9.5 with repmgr 3.3.2 in streaming replication > setup with 1 master and 2 slaves. I have noticed that the pg_xlog on slav= es > has grown to 200GB and is still growing. >=20 > Please advise why pg_xlog is growing and not pruning itself, is there any > parameter I need to setup to accomplish this? or repmgr will control it > itself. >=20 > I am not 100% sure but feel it pg_xlog never used to grow this much or was > clearing itself, I can see there are WALs since May 2019 but not before > that. I want to understand why the WALs started accumulating since then. = we > have this setup since more than a year. Check your logs. Seems most likely that something broke archiving, though it may also be simply that you have an old replication slot that's holding back the removal of the WAL. Thanks, Stephen --GWLOz4aYYhiuVukd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdXAZtAAoJEO1sijiDR2RV1c4QAKQTfoxvGdczyLe1HPQDilKE nxAUvyWoPk60nXEk8TADtjymx368kSDV1Gi20r95hozBlxFWhLRZmpeg7IQgQvuw OJOrrQ1EMB9p5EXXuIk5ZlrqZpH62RpepLsVX8webZu5sRT7ZND1cWni/qtw0Gkf zI9oSwNjoYhC4iK/RC1f1qUV3CsYvg943YmD26G0YfFtqete4hU7MYIHxxONkAJt phjKGvPHWVDWTwKlpxZtVDHzTBUCoYqpYneaffKjETQl7QQY5/3mc7fAa8r/gDGT 6P8ROqpmTpQDM0gnuBVZFnQF+lE54DWWmzy3h9MXdpKV5P98BLwVzYzKU/1FThkT FwEQU5kymryUCv6lOjzAVB4YlNPafxNG8N7S71MG0ywX3hNLOx+Mq2wyWBHOxJfB PpiQS4R+Z7IptoEjGuiwFxHK+BQI62xOyV+umgws/iTMaQeGuObQOVh3S7of088+ d06m+GMD1u0X1adKgJT/Mi5XcjRK70LvJtqD6ESueQ9wUyR93ZoPD+j9UcLgtPY6 AwJKp5GB976OTccFEWxVrXuZ9Z4++ahznjwlEij7Bj78jCUTi0Z1xkT43L8D2JM8 wHuLyL3t/Y7RUuKvYV4IuE7JA0cmLLW7gY1QuiWS3HcMiVpRm43n7fXZi5VIbTn0 6500P6r4gpssL0IZ3YtU =BV1q -----END PGP SIGNATURE----- --GWLOz4aYYhiuVukd--