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 1vERYd-00BiV8-Nu for pgsql-admin@arkaria.postgresql.org; Thu, 30 Oct 2025 12:15:11 +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 1vERYc-0084zI-MM for pgsql-admin@arkaria.postgresql.org; Thu, 30 Oct 2025 12:15:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vERYc-0084yu-AX for pgsql-admin@lists.postgresql.org; Thu, 30 Oct 2025 12:15:09 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vERYZ-004Ypr-1p for pgsql-admin@lists.postgresql.org; Thu, 30 Oct 2025 12:15:08 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-b6d3effe106so24090266b.2 for ; Thu, 30 Oct 2025 05:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1761826504; x=1762431304; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=F6zr2GaE9TVoJMBW58/XvQ6mGjRjO2bFGQR7M9MB9gI=; b=SPayafHwMsGYOusnsWQtAas0AVQ4BPG4JNdWgCB6egMAqfizP+c+9z+MDmt3k/iA0m 1tuwCJTQ8cFpU0rs5punaA/xPzWY8GoMSfIhFeJ3No8hKS3NPD/kpKLOTSXgJ8c/Evpr OlAEbCmBCS8bIA3pklxWcPezP1W8Qg8v6oPBf+wTq6ocwYXtSCNlKxjM2ChKXz+qHneI Wc8iEpj/88lnUC0+SePGnr8bHSsjXEtYH3+6mB98i87OVbji1Q5vzjJ46nUiKOt3aHBr EyjXiy9Q56929bcufdvqJFld0xA5ceylda6ER4ZuPBzlN3912n2UAYqwSPwheGsmtsLR WzCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761826504; x=1762431304; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=F6zr2GaE9TVoJMBW58/XvQ6mGjRjO2bFGQR7M9MB9gI=; b=w+nFm7GWy75ONa7QtXo8yDg0wXrvvOmmq7dXlEcwm/5X4eYsj9NQh4FZ4+iT6uFvX4 xOsIy2Cm6cHAf1i2W3yg7TaBoFA/jOGPXc4hpXt8aRNZGUEMrvPyQaTFLAw0tbrVaijM HDUxVzHRmT4TIGh+DnTELnSs7Z/PuXb+54/lD+mLvIvOvqmKd2GBmNAQYkWFBPakgo52 SnECRgNeSvS9Nj2dujRJ0R0R5rRkS1I6JNh99kD4sxN4InqDCYAcx3fqJbs3R9RUQwnW MYoKJvLpr1xm4YakrwqsC5WHSbXPJ72sK67VlIVRo/gqgt98mfMyjabmarMNe/Q6gp6p 5B+A== X-Gm-Message-State: AOJu0YzhTw1dA7TVx376y/M5yUW/BTWCizTIjkZesYJP93LW2ad33MKh /w2Zzso6OkTUFdeyg8C2JelXb24h7PFpsermo3EvqWw3aSK3AlYy9SmoQfSSCgjgb8FaD1x8FcN Dh2dL X-Gm-Gg: ASbGnct4c06BfNZV09ePYtmihox6BOhVf3EuNJ/q7zrPUHS7pG95PDvu4aJMWuihs/o /LW4EMXZzgMZawqD9r3sVOtR5xezMARTAWDA8s7xD6zaqkm+J85JLXQPQCNKQ1dcY+r3qw1aT/F i52SkAosYAWx1OC4aZG5q36o23jzCYFduaGc8d3rUuhI5Ar8DNBrcMUYa0Yb/xgEHXUZMuvx3zU NoqIjwxRp044s9d2ZiRyW+gFc92+jML57JNoMGov+56mR6BLkvEMHcr/3P0CxJ0P5jLme4g+MyM S/e1beNWAfOHVh9asNbYbBlvOF+5Bp6REKnbjuwGlmrsQibXMUNwHyJNlvg7+whlgRS9GoSJBED mqVcdDIYfJ21+2oNgN9BvqmLUNQcmx/Q54fH2tD/HXzqMuyxSCoozmVof/INqoN3KX2rDHR/pT8 YcmfZ1M15GZIylhzuKUGrUC81mM+yW X-Google-Smtp-Source: AGHT+IH1BX1galF9BcGuWymFNyThLtdroEabcLVDEDdkahG7OWPXHsStb4Crm4/DtM1NCvxfwavsnQ== X-Received: by 2002:a17:907:86a5:b0:b1d:285d:185d with SMTP id a640c23a62f3a-b703d04caf0mr633950666b.0.1761826504255; Thu, 30 Oct 2025 05:15:04 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:3448:be1a:44:7171:3d57]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b6d853c549fsm1754893666b.37.2025.10.30.05.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Oct 2025 05:15:03 -0700 (PDT) Message-ID: Subject: Re: WAL replay is too slow on secondary server From: Laurenz Albe To: Shubhang Joshi , OMPRAKASH SAHU Cc: pgsql-admin@lists.postgresql.org Date: Thu, 30 Oct 2025 13:15:03 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-10-30 at 17:08 +0530, Shubhang Joshi wrote: > On Thu, 30 Oct, 2025, 10:07=E2=80=AFam OMPRAKASH SAHU, wrote: > > We have a postgresql cluster setup using patroni. > > The DB is being used for heavy transactional application, now the probl= em=C2=A0is that on replica server WAL replay is too slow. > > We have increased the IOPS to 6k and Throughput to 600 on nvme EBS volu= me of wal directory and 10k &800 on data directory. > >=20 > > but the WAL is being accumulated on the replica as usual and applying w= al is having no improvement. > > Please check the network speed =E2=80=94 we faced a similar issue earlier= , and it turned out to be related to network performance. > Kindly verify the network latency with your network team as well. If WAL is piling up on the standby, how can network speed be the problem? Yours, Laurenz Albe