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.92) (envelope-from ) id 1jDrfd-000104-WA for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 15:28:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDrfc-0007Q9-OV for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 15:28:48 +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 1jDrfc-0007Q1-Eq for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 15:28:48 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDrfa-0004Zo-97 for pgsql-general@postgresql.org; Mon, 16 Mar 2020 15:28:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3D68B5C0377; Mon, 16 Mar 2020 11:28:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 16 Mar 2020 11:28:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=R Ev5FiycKyC7Wj2zyDw8t6V4N/+ymmelJh37wc/1zFo=; b=GuiNiL1Zjfph16ZlT YQFgDZ2ARFLkD8NfCSGlYCPRoP4A/dKY/hurSXzYOnjDCoDD7kYqQnXb8AhcO5xE Z1ryKASUi6wGXdAifd1jWdxZB6Zytxi7Tx33tNwjS+a34EgnJniM7/7iLpRmWbAr ERDMsWi5FYX+M/xKoz7BfYTs0oEICdy+mnNNx7cIn5B959LGVGQwMLeqJA6+GyVW rovGzoGGA7NijvHIKeGqkUE/JnbhEQloE7jDO2r2XdUGJ2LKO5trQYXKWC7Ln7pq t8diOp09M9M6VpOm6PXsBSawP6dCCp1JF2HUam+OuXKuQekownW5Htp+sWuUboRM HKOyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=REv5FiycKyC7Wj2zyDw8t6V4N/+ymmelJh37wc/1z Fo=; b=POT3lChln3GNfb3qi6ybpWzvuICQ7r+Wqnm5LyEX1QbngUglV4rUc3yNQ WwnUEKfTy539u+0dL+zgKU5b+MQSrbk4L7aiPmntccer8kCX0j3SHDqRPntv7Zhg HkyLthRIhcl4jkLbZOwqoNQzwOiU4jyogR+9+1Wwajv2izkumuRp4VTddLs5MgF2 QduuMFA78kozjC38fz1M7DTXeoD6fQPA/RX9EIg6iCb0MdG45qJpevRE22MpZmbq kzKA4Y7ZficPuM4tInllu9BgtTwckrK/MbtuHWf+gBl5u2VLwiCNBnjGEAeV2+iF CidBCk1wkUI0hCi5eBONt1aQ2NEhw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgep udenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklh grvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 637673280063; Mon, 16 Mar 2020 11:28:44 -0400 (EDT) Subject: Re: Streaming replication - 11.5 To: Nicola Contu Cc: pgsql-general , Alessandro Aste References: <89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com> <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com> <5b5ef23c-31b8-6fe5-ffb2-610eddaa6e58@aklaver.com> <1152bf92-de1d-f5b1-fa47-b0c61ffbe29d@aklaver.com> <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 16 Mar 2020 08:28:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/16/20 2:57 AM, Nicola Contu wrote: > I was able to make pg_basebackup working using --max-rate=128M > > Still don't understand why. I guess it is related to the encryption and > slowness of the disk.. > Do you have any idea? I think your explanation fits. Encryption/decryption have overhead. > > Il giorno ven 13 mar 2020 alle ore 16:15 Adrian Klaver > > ha scritto: > > On 3/13/20 4:11 AM, Nicola Contu wrote: > > So in the logs I now see this : > > > > 2020-03-13 11:03:42 GMT [10.150.20.22(45294)] [27804]: [1-1] > > db=[unknown],user=replicator LOG:  terminating walsender process > due to > > replication timeout > > Yeah that's been showing up the log snippets you have been posting. > > To figure this out you will need to: > > 1) Make a list of what changed since the last time replication worked > consistently. > > 2) Monitor the changed components, start logging or increase logging. > > 3) Monitor the chain of replication as whole, to catch changes that you > do not know about. Since you seem to be operating across data centers > that would include verifying the network. > > > > > So I tried increasing the wal_sender_timeout to 300s but it did > not help > > > > Il giorno gio 12 mar 2020 alle ore 15:56 Nicola Contu > > > >> ha > scritto: > > > >     The encryption is at os level. So the drives are encrypted with a > >     password where the db saves data > > > >     Il gio 12 mar 2020, 15:51 Adrian Klaver > > >      >> ha scritto: > > > >         On 3/12/20 4:31 AM, Nicola Contu wrote: > >          > The replicator is ok and the replicated as well. > >          > %Cpu(s):  0.2 us,  1.0 sy,  0.0 ni, 94.8 id,  4.0 wa,  0.0 > >         hi,  0.0 si, > >          >   0.0 st > >          > > >          > CPU is really low on both. > >          > > >          > I am running pg_basebackup again everytime. > >          > Any other suggestions? > >          > > > > >         I have to believe their is a connection between changing to > >         encrypting > >         the disks and your issues. Not sure what, but to help how > is the > >         encryption being done and what program is being used? > > > > > >         -- > >         Adrian Klaver > > adrian.klaver@aklaver.com > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com