Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFXgx-005ctF-VB for pgsql-admin@arkaria.postgresql.org; Thu, 15 May 2025 12:28:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uFXgw-00ECU0-MR for pgsql-admin@arkaria.postgresql.org; Thu, 15 May 2025 12:28:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFXgw-00ECTs-AP for pgsql-admin@lists.postgresql.org; Thu, 15 May 2025 12:28:02 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFXgt-0021e3-0F for pgsql-admin@lists.postgresql.org; Thu, 15 May 2025 12:28:01 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-ad243cdbe98so141332466b.0 for ; Thu, 15 May 2025 05:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1747312078; x=1747916878; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=zpWqt7zOHWuoelWdmgB7Rk6cvrU/Cj5AtDi6G75jeY0=; b=FehZEBnxQsE+9SHK5tx8fmZ7+IKsgtj/dXU5aGT7svZgMMNSWFTgZnhE/FRjqN1iV9 6+7wW3a6EuJFmtc2BqdHeU9XycFELAQ8bZO2SE1sEi/vVBrIUxzWFGd4I+yKkD30oWxm Kt0DFKMuiUc0z9dLQU0Sj3pQSjqDYyq8xpNP7Hn+gPg84fbvJEsfaDNOLdH7k+I2ptUA pXphrhmKYqc9m306NH7gezSvRvBBdmtX/y+ahPH9wfajtnyYRJ4Ui3id8aTMg694bt0A SUDusdkzNuTX8O2FkVDCtmL/MQwWn9/BgF18qsSahaTN4nMWi7CMChicG/tk4cUVeqJL XJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747312078; x=1747916878; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=zpWqt7zOHWuoelWdmgB7Rk6cvrU/Cj5AtDi6G75jeY0=; b=NnQ0sU2OQhwz6ZoSnait/174g9STBfEd+RFHGIFUFax6Zbo4gtQikHzNwkC5FmpRl1 u+4EYyCEr1NXn86yos7Iqv5J6JLuiw4rv/vOjFnJ10SCJqk0bvtbPVCAp7KRvIL6RCa5 IG2H06PZW99KrULai6eVcP5KDsnZqTlK+5ghNfAvPx8fBCXsDuQCas/hUffy3YJ5mUhN ChHvQmrFDzeGoEz7V/bmM6OozbHXGFof4H6TqHMFMZmU1oAoB4yxNMmbQmNYhmrrd14s Gonecn3caD4hMIKJCU0eozn7wUs24xCdbwWgCsWmJV7NOPVjLelcRBlYZF3D8Dyf/7V3 KtrQ== X-Forwarded-Encrypted: i=1; AJvYcCXtI1FSriCL65YqyXyJxTdTviq65yVtuc87iPG4oWitZ3HZqIxDnnwldXJoqARDNZ6RDToPgtB69+VFbQ==@lists.postgresql.org X-Gm-Message-State: AOJu0YxhLvfGQ/V4mHm7lsHiw5VRmdMKJLNjF+1nIWMHvuazRhYPCK2s Z8PCt45/ih/IQb0kAKyInB6AF4el1nsctRukxIrfUm9vPeuydw6zxkdpXg1AC60= X-Gm-Gg: ASbGnctPUWT6Gh9KOpXJ5hdPrhZa5DA5/e/AmdYOPa24r2pMBrXJ0UkmpomU97Pfde5 +NJhE2rN1WoOUdhsCLFPUliRqBqfzldqwKNRpi0Lwq46pRaiPtNuZzrZtkZLvVKzqLauZzwQu0v m1dcEoa1mHDc0Hp4ENS27g3PMnYzUylG/TvwygBr/Y1C5CFdP34Jd6k/ptiK62fnzsHQbhR2xL8 o5stOITuTw5DQwcExv/z/QZKJ68Iu6vMBz4KOWP/a1ycdA+O8UWO+9cAs7mflKXqm8KjN56CrJT pW91trRgchhGtopFA4RLILuZdpXX6XGsf6IHtGFv2oEYDDdSQ9OFlki/IBgabJNw5cxRIPxCkw4 mqCAAs/WMa2ctfs4= X-Google-Smtp-Source: AGHT+IGIX8jrz8CH1CzoaBZXGssiuSMqK0EqYEa4goLCZTx+OETdiRoGIynkEFLWKd/rU3PC42Zwlw== X-Received: by 2002:a17:907:9704:b0:ad2:1371:ff34 with SMTP id a640c23a62f3a-ad4f7516a43mr725720166b.38.1747312078145; Thu, 15 May 2025 05:27:58 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:5e:8636:6efd:7453:bbcf:999c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad21de21ba7sm1064797866b.35.2025.05.15.05.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 May 2025 05:27:57 -0700 (PDT) Message-ID: <0ec3ad712a1b8bd63b807091e61e11e5e069b720.camel@cybertec.at> Subject: Re: Postgre's replica holding huge amount of WAL From: Laurenz Albe To: Mendbayar Alzakhgui , Pgsql-admin Date: Thu, 15 May 2025 14:27:57 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.1 (3.56.1-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-05-15 at 06:21 +0000, Mendbayar Alzakhgui wrote: > My PostgreSQL is a cluster that managed by Patroni and etcd. While it has= 2 replica server > both of the replica=E2=80=99s are holding huge amount of WAL file (curren= t 55GB since 29th April). > I=E2=80=99ve checked the replay delay, wal_keep_size, replication slot, m= ax_wal_size but all of > them were fine there=E2=80=99s no slot keeping that wal in replica for su= re even in master there=E2=80=99s > no slot holding that WAL, wal_keep_size is 5GB and max_wal_size is 8GB an= d delay is almost > 0.02 second almost no delay. But there=E2=80=99s no that size of WAL in m= aster node. > What=E2=80=99s the troubleshoot of this case, how to check it? https://www.cybertec-postgresql.com/en/why-does-my-pg_wal-keep-growing/ Yours, Laurenz Albe