Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRO5u-0004qa-Cc for pgsql-general@arkaria.postgresql.org; Wed, 22 Apr 2020 22:43:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRO5t-0006k3-A5 for pgsql-general@arkaria.postgresql.org; Wed, 22 Apr 2020 22:43:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRO5t-0006jw-2Z for pgsql-general@lists.postgresql.org; Wed, 22 Apr 2020 22:43:49 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRO5i-0004Bu-G3 for pgsql-general@lists.postgresql.org; Wed, 22 Apr 2020 22:43:47 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id D363F26EE; Thu, 23 Apr 2020 00:43:32 +0200 (CEST) Date: Thu, 23 Apr 2020 00:43:32 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: how to slow down parts of Pg Message-ID: <20200422224332.GA4048@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-04-21 21:16:57 +0000, Kevin Brannen wrote: > From: Michael Loftis > > drbdsetup allows you to control the sync rates. >=20 > I was hoping not to have to do that, but the more I think about this I'm > realizing that it won't hurt because the network cap is effectively limit= ing me > anyway. :) Alternatively you might consider traffic shaping. DRBD can only set a fixed limit (because it knows only about its own traffic). Traffic shaping can adjust the limit depending on other traffic (it can also prioritize traffic, etc.). However, to be effective, it needs to run on a router as close to the bottleneck as possible - typically that means either the border router or the firewall. So it is something the customer's network guy should set up. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl6gyI8ACgkQ8g5IURL+ KF0oqg/+KMfT+y/KF76Scw7TY9lqP3A3DSdnbIluHwzwY0eKLCAnkA+DnJbD2cfR hS67Sv9OGr0kOqdTCUII5t9aN9Vwq4MdIfpzsjhOEb/egXSc4BqoxnUFQShyjaDM RIxIq518CLSJdRKaT7BO8irC91/5tJ+HUJF0hGN31TbHGhIpeLkQRhpBIo462bNX REPApbQgKkVKgrQWJYOKUJdcFEOkrvsQWQS7cGq3JnSPGmINRuCrryfTGZay12Vr GaUZef7cFKY3RjvMhPgeSOxjl5y2RpVc9LimInWlgAMdYCVoL4V0m+ra9jJ0P6gp CIvGLUOIbV1JHRYHFFRr8VXQQBc0G6xcZgy6bO1P3glQ5LrXv/IbaN18Nom+M9Wd 3pPTFiahDeyQ5Uwy1lJHcDJ2aoCxUJs3kxCOYrMcnadvD/U3DzN0Js4oSd3TZDWj eMGro6pokTfiMn++mZa10IlZl6q9gP/MX1LoMVXUjFvpUUjLciG2QNdf+QY3En4A dunCyER07dLZ8tGguoxESq7YnLkx7Ucj64d5qbk53bF4wEzG67/pFZ9TYPO8qzOj 2ElEZDr5rpQaTxi6PpgqEMiCibIurblIcegE1cTWX0rRRxcWqe3djo3TLClCy4LO y2jFUWr2ztTQHBjR6ch3nIJiF2B5pRkKCzXeh2nOQS04n0eCNZA= =q6ZU -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--