Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6DVQ-0002lj-BE for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 11:01:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6DVO-0001rT-3W for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 11:01:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6DVN-0001rK-OO for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 11:01:33 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f6DVG-0004p9-6m for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 11:01:32 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 7A78D410D6; Wed, 11 Apr 2018 13:01:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id hiHf3qtzWfZ8; Wed, 11 Apr 2018 13:01:20 +0200 (CEST) Message-ID: <1523444479.2428.27.camel@cybertec.at> Subject: Re: Planning to change autovacuum_vacuum_scale_factor value to zero. Please suggest me if any negative impact. From: Laurenz Albe To: Raghavendra Rao J S V Cc: pgsql-general@lists.postgresql.org Date: Wed, 11 Apr 2018 13:01:19 +0200 In-Reply-To: References: <1523431746.2428.19.camel@cybertec.at> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Raghavendra Rao J S V wrote: > Are you suggesting me to keep "autovacuum_vacuum_cost_limit" to zero or > " autovacuum_vacuum_scale_factor" to zero or both? Please clarify me. autovacuum_vacuum_cost_limit is effectively 100 by default. You could raise it to 2000 or more. If that does not take care of your problems, set autovacuum_vacuum_cost_delay to 0. That will make autovacuum even more aggressive. Do *not* set autovacuum_vacuum_scale_factor to 0. That will just cause autovacuum to run all the time without getting anywhere. Sorry for trying to use irony in e-mail; I am aware I shouldn't do that. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com