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 1uolMG-009lVf-MY for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 16:08:18 +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 1uolME-009SHi-RW for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 16:08:15 +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 1uolME-009SGu-Gd for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 16:08:15 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uolMC-000wCF-1p for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 16:08:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=HZrcHJ3VQbblx9rw0q2/NoQSzBbn/ywNX4T96+8NStc=; b=AQ4BkOqWxAAS/U/nz1t4MC+8n8 KevFTr8o9BzqcZMay/JNHvAK8RDVxtK+tZHMch7VLTFQtyJvxUrUfBoWGBuuXyjm54DiEwDhvgRO/ Vg06FxgOPPa4I5LwFIUrBk/iX6U/MUozaaM3x4b4kTKUr3cs7VIDjbY+w1RHRl8UsytA=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1uolMB-00ECs3-1w; Wed, 20 Aug 2025 18:08:11 +0200 Date: Wed, 20 Aug 2025 18:08:11 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Adrian Klaver Cc: PostgreSQL General Subject: Re: Streaming replica hangs periodically for ~ 1 second - how to diagnose/debug Message-ID: Reply-To: depesz@depesz.com References: <05969854-0d19-4726-ae1b-586659dd443b@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <05969854-0d19-4726-ae1b-586659dd443b@aklaver.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 20, 2025 at 08:14:47AM -0700, Adrian Klaver wrote: > Hmm. > > From initial post: > > "For ~ 1 second there are no logs going to log (we usually have at 5-20 > messages logged per second), no connection, nothing. And then we get > bunch (30+) messages with the same milisecond time." > > Are the 30+ messages all coming in on one connection or multiple > connections? Multiple connections. > Also to be clear these are statements that are being run on the replica > locally, correct? What do you mean locally? Application servers are *not* on the same server as the db. So no, they are not local. > Does the AWS monitoring indicate any issues? Nope. All looks "fine". Same for our monitoring - CPU usage, iops, load. Best regards, depesz