Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XcGyu-0001PJ-19 for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Oct 2014 16:54:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XcGyt-0003w4-Hh for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Oct 2014 16:54:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XcGys-0003vy-SQ for pgsql-bugs@postgresql.org; Thu, 09 Oct 2014 16:54:23 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XcGyp-0000vX-LM for pgsql-bugs@postgresql.org; Thu, 09 Oct 2014 16:54:21 +0000 Received: from anarazel.de (p54AF4407.dip0.t-ipconnect.de [84.175.68.7]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0Lutwv-1YKRMv1jc1-0102VS; Thu, 09 Oct 2014 18:54:16 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 9AD7E1009AE; Thu, 9 Oct 2014 18:54:15 +0200 (CEST) Date: Thu, 9 Oct 2014 18:54:15 +0200 From: Andres Freund To: mdglange@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11603: replication, pg_basebackup and high load Message-ID: <20141009165415.GE29124@awork2.int> References: <20141008131927.2563.36952@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141008131927.2563.36952@wrigleys.postgresql.org> X-Provags-ID: V02:K0:/XViuvPLID7hZrVHH6CkZvoJ4O/c56Vsm6lcyaLJGEJ 4f/+LrqHkrY1vShYG7Vo2wOAiSce/3SgaYpoexf7shttlRo0yH UkglBnKle0H/swRiM3J3XdJGlDiXELcPTf42YBfnNx/YDmFA6/ 1kxHiAogA41GqliWoh2HXQNuDIv2jzS6W1RbTS4cZj40W8vnl5 KKxVYVQc3J72NDOoMWxiHQMkaZMqFemtqiaD3KuBR+hLzxGaBY KU8a2tF8gTvuS5siR9lHCD2pOS3dKU9tdO2duMgUDwf68+FyAY JAqx99CXzMQQhkDPdmqdWVxen9Vi2BCpufD+pBzyKtljfPzJ3r oDzWk/zFqhhIpf779/OE= X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-10-08 13:19:27 +0000, mdglange@gmail.com wrote: > The test I did involved the following: a master database with two slaves. On > the master two replication slots have been configured as per the > documentation. One slave active before I put some "heavy" load (the > environment is scaled such, that inserting a few gigabytes of insert > statements is a heavy load. This is on purpose) Replication slots currently only reserve resources after they've been used the first time. I.e. when you create a physical replication slot it doesn't immediately reserve resources - a client needs to connect to it once, telling it from where on to reserve resources. You can see the slot's reserved resources in the pg_replication_slots view. So, what you could do is to connect to the slots once, for a short time, using pg_receivexlog --slots. Or just use the -X stream method for pg_basebackup. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs