pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Les <nagylzs@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: replication primary writting infinite number of WAL files
Date: Fri, 24 Nov 2023 16:00:40 +0100
Message-ID: <d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at> (raw)
In-Reply-To: <CAKXe9UDZKGevV6t+Y0adUgy2-k-1gMdRUi4Baz=4BMKX1Oig_A@mail.gmail.com>
References: <CAKXe9UDZKGevV6t+Y0adUgy2-k-1gMdRUi4Baz=4BMKX1Oig_A@mail.gmail.com>

On Fri, 2023-11-24 at 12:39 +0100, Les wrote:
> Under normal circumstances, the number of write operations is relatively low, with an
> average of 4-5 MB/sec total write speed on the disk associated with the data directory.
> Yesterday, the primary server suddenly started writing to the pg_wal directory at a
> crazy pace, 1.5GB/sec, but sometimes it went up to over 3GB/sec.
> [...]
> Upon further analysis of the database, we found that we did not see any mass data
> changes in any of the tables. The only exception is a sequence value that was moved
> millions of steps within a single minute.

That looks like some application went crazy and inserted millions of rows, but the
inserts were rolled back.  But it is hard to be certain with the clues given.

Yours,
Laurenz Albe





view thread (20+ messages)  latest in thread

Message-ID: <d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at>
Permalink:  ../d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at/
Also on:    postgresql.org/message-id/d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, nagylzs@gmail.com
  Subject: Re: replication primary writting infinite number of WAL files
  In-Reply-To: <d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at>
  References: <CAKXe9UDZKGevV6t+Y0adUgy2-k-1gMdRUi4Baz=4BMKX1Oig_A@mail.gmail.com> <d0e8eda7fbfd52ee70c783bffe6fdabfda885e35.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox