Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfCs0-0006R7-Ad for pgsql-admin@arkaria.postgresql.org; Wed, 31 Aug 2016 21:16:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfCrz-0001Nj-Sb for pgsql-admin@arkaria.postgresql.org; Wed, 31 Aug 2016 21:16:27 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfCqI-0007V5-4F for pgsql-admin@postgresql.org; Wed, 31 Aug 2016 21:14:42 +0000 Received: from nm7.bullet.mail.ir2.yahoo.com ([212.82.96.69]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfCqE-0006Xx-CU for pgsql-admin@postgresql.org; Wed, 31 Aug 2016 21:14:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1472678076; bh=6klNULSoP7G09vwoLR6bLJ3IwXq55sbURAsk8W0hJ9I=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=qUHpoPw/G7Op4ViyeMxHbJLhNV+NuukKG0bdvu3+b57pokN7oQbYOLq7s/99lVk+wbH9wArf+vyNtAuZPV8n9JyjrHBNqkFUZtRmxHVUw1tDbhcpuxzFNSPvE13S0Ulf2kuQ/slrbTPT4H2CgffjWOAT5J+iJp5qknngR8wIwb6b1MTq7oE6b+SXl1CuapUoaByJtHkXO7OPSfyWGPvEZbYhWrjkhE/eNA/DcNuBKdtXssDZ4RmBgnS4RXcyUejAs38Zzz6SDAqtG6JvpRfXe74IEKKK8lpos2OQayIhCWTMjYc3KUQ9LzTUR2y4jnMqC7Xep5xDqXeC98vezK/7Ew== Received: from [212.82.98.126] by nm7.bullet.mail.ir2.yahoo.com with NNFMP; 31 Aug 2016 21:14:36 -0000 Received: from [46.228.39.67] by tm19.bullet.mail.ir2.yahoo.com with NNFMP; 31 Aug 2016 21:14:36 -0000 Received: from [127.0.0.1] by smtp104.mail.ir2.yahoo.com with NNFMP; 31 Aug 2016 21:14:36 -0000 X-Yahoo-Newman-Id: 643741.42114.bm@smtp104.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: S25PWn0VM1nv544ntt6LuTszQ9.AVR6uCikMXsI1V5IEw.k X3cuEN_aMiJNDSwVdG45_GQmKrk7K9T6mwXZ31H8dL1c3Z3tZycF2YVa0vaF w2IW27LLvy7iL7M_XNN2sgQ7ZF.7T0u_7cQ7L.24.z_S3MPqlFfVLfxiGoyu v2ZPBEGs9PI_og3aNxp3kS8EU8QnJWdt4lTTEK5Qb.Bq2qCq7MYVta0RFTlk TsSwFPPJTsxOsS7loWnBakkqY2kxDqU.5oyHKe9vj06LoAv5BQnhWpg96NHT Xh1n3tJ8W7aQyExo4btlaP.reuPRXbRBDulPx.EFngvelkVXCzKTumZwgzOE n0nv0ldhlpKxc.xyj2_v0C6vEJtWsIc_hgN8K_EN9AdqcZuXSCN8kJcYvDjy UpZxoLp5Pso1TdrUfWE4siklboIsjs6011OYiS02Xmc1j272Zd2RGOiQNmLw mM4Mu2xsvCDS58qateJL0VUwpLFPVx9mt0LzXnc8Mf0wvX0knBF8vNy6raLw Zh4dd.s454OHpZ7NcmaRngNFay6fHflGnMgeLXu.hDj14bm1YeWqbAP8JZNf 8DIvR X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Wed, 31 Aug 2016 23:14:34 +0200 From: Eduardo Morras To: pgsql-admin@postgresql.org Subject: Re: What causes streaming replication delay? [SOLVED, I think] Message-Id: <20160831231434.6a33f824d4d206394776526d@yahoo.es> In-Reply-To: <20160831162222.21288e76@hydrogen.roaringpenguin.com> References: <20160831114417.7fc1040d@hydrogen.roaringpenguin.com> <20160831131604.0f305404@hydrogen.roaringpenguin.com> <20160831162222.21288e76@hydrogen.roaringpenguin.com> X-Mailer: Sylpheed 3.5.1 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Wed, 31 Aug 2016 16:22:22 -0400 Dianne Skoll wrote: > Hi, > > I think I solved it. This is so ridiculous! > > The primary and standby databases are 200km apart and the path > between them has a bandwidth of only 100 Mb/s. We had bursts of > writes that created huge amounts of replication traffic. In addition > to streaming replication, we're still copying WAL files over for > safety (and also because this is 9.1...) > > We were hitting our bandwidth limit. > > By adding the --bwlimit parameter to the rsync command that copies > the WAL files, we can limit the bandwidth usage during the bursts > while still keeping it high enough for the WAL-file archiving to keep > up on average. > > Keeping an eye on it for 24h before I completely declare it solved. You were bitten by the RFC 1925 points 1, 2 and 9. A solution as is point 3 is "a bad idea". https://tools.ietf.org/html/rfc1925 > Regards, > > Dianne. > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin --- --- Eduardo Morras -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin