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 1jCm2W-0006th-94 for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 15:15:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCm2V-00018R-0m for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 15:15:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCm2U-00018K-Ka for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2020 15:15:54 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCm2S-0001pP-9J for pgsql-general@postgresql.org; Fri, 13 Mar 2020 15:15:53 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 081A175E; Fri, 13 Mar 2020 11:15:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 13 Mar 2020 11:15:51 -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=o Gs2Z0Ad4/8ye9ohcEtd5puBMCuLiD/zoQ9M0DdBYnE=; b=EGp5O2B5pj8l2qRrE t9hSEouU103jKgD7Kh27VATRfqC+5bQWmC/1/AGr3tW7rB+r/cxtxnPEc56bqKfW koXxZGse8wX/2Xu1O5TF73qZ4bJaGjlHdNPTYf0PKdXxRZ86udAtxGiAj/q0+aGr DbnldMWPtq0HwpUWn5S057tXjcKiqRh48oWvs9YGZsWNNP2kmq/ZKL8XJR1Bvnw0 e6JAlEItQneHCqfemkdsxi3xCC9vUZz5BmoK1s0Cmuc/MgRZNdH4MmMuxOoFRB1q /VJgjsM/Z+GySfL+uN+u8nKlx6tZy87o3C8uWR5dRx3mREzST/yTTCufUHCOsu9/ LUzOw== 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=oGs2Z0Ad4/8ye9ohcEtd5puBMCuLiD/zoQ9M0DdBY nE=; b=dbFzp70Z1BNBzw/xRbLnubBse44zR2m363PJCooKFI9OTV53+O8TXGtFk aNUbU9PxVRQYazPUsqD3ygKzK7MwEyoUOBMNLvUh2RpnaK+AYnNIbnRhN6DDEXG2 WFjirMR3BXEdt/5dyUUREkp2mT07dAPt5i/TySe9WQAJmyOSscR/0fOIKKqYU3gg 5WZHdSitva/4aevrGiL8ERUPgCIVMoS0ABL9eP7upPT63dU/MxyGZ/nFKC8VqzDd xaUdReVAV77ZkT7qNpp3+aQo//NUpqvZoErHgJ9fOaWXKbsE5d5wC1lK5s+w/JpA wO7mO4NfCjzfadCQVRIITKHcHBXTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvjedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklh grvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id C15643280068; Fri, 13 Mar 2020 11:15:49 -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> From: Adrian Klaver Message-ID: <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com> Date: Fri, 13 Mar 2020 08:15:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.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/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