Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruvdW-008Znp-Td for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2024 14:42:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ruvdW-001Ujr-3J for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2024 14:42:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruvdV-001Ujh-Qf for pgsql-hackers@lists.postgresql.org; Thu, 11 Apr 2024 14:42:45 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ruvdT-002MPT-6O for pgsql-hackers@postgresql.org; Thu, 11 Apr 2024 14:42:44 +0000 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-36afd27170fso2888015ab.1 for ; Thu, 11 Apr 2024 07:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712846562; x=1713451362; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=i4vbFwySGxTDXqQJeg8jGRUB3nBV6v65AEJBHDtEbak=; b=WQIcHkP4KOLjv9T9XYWXq0CqWEXgg32VxyC0ZsSeMMsTraV4hUP9jDOpcapvQeQqiJ oQfiQcZkt1KI6ryDUBKEk3Me6DizEW6fSkKEyN4PBgrpO9ofyOOvKcahjWVPZN9JZxpI 5C/sRT75oS0KL7L9Otn+yF1v7xQsWFZCRxHZb2JYyesPqfQH0t5UYWXc+9nVbKS/IBgy IsB0Xy7Uj6A+2RRCxGaAeXAuM5Phor+oFDu81kcXIfzP27HVQOQmV679MUwCIJ/t8GRg y4JDWqkURyQUiGOBMiUIrfbMxMW3nqdNiN6rXc5oWLOkELnvWGkw1O8SffrxtrF2NcFh 30RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712846562; x=1713451362; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i4vbFwySGxTDXqQJeg8jGRUB3nBV6v65AEJBHDtEbak=; b=pAEFamTuAJjv8Ix1fJluCyx7gmL2gQJyGzoOuHhxlGP2H51FBaO9xaBKCaA5RvLMdj VXpb2VU+HiuILUFTZpMABPGRPB2BunB3mie9/MRpF4AOcIQlxZozCcNnXt3QGt3bAm88 wEma/H4X25veDVCRJZSf65MMwLXEuc4d0EX/WKHYhQJi74kxaJqv1LgiPyZlbXavWg0W xPhsh3dPS2VlVXlXOfHNCzA1PafY08aqARnuLBsoc2pYLoZxCOEgG4A8E+HpexMAEtM2 GF7CB+OXPrJET/mxG1spqCz5p/qxJ33AuSqSCUxlcZ6TyyIIN24/Z1gLauFqG/407LeI oBeQ== X-Gm-Message-State: AOJu0Yx8OlaqhlOXKvcY4IW6aU06QirRxOWCHEpqDIlCz9+AfnXIjKAS AFONZgqqC17jjytilkKjtOsXrMHgUcG+DtYZBFsJ2LRBfDTJHQtF X-Google-Smtp-Source: AGHT+IG0ry9xPhqS7R3gBN/qVM8lWkeBd1K9HPU80Z3U/7OjdcOf872UPC1iAHBC4kC7NU1Bg/RCzQ== X-Received: by 2002:a05:6e02:1c0d:b0:36a:232e:4065 with SMTP id l13-20020a056e021c0d00b0036a232e4065mr6463208ilh.27.1712846562382; Thu, 11 Apr 2024 07:42:42 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id n9-20020a056e0208e900b0036a232d4fc9sm409015ilt.31.2024.04.11.07.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:42:42 -0700 (PDT) Date: Thu, 11 Apr 2024 09:42:40 -0500 From: Nathan Bossart To: "Imseih (AWS), Sami" Cc: "pgsql-hackers@postgresql.org" Subject: Re: allow changing autovacuum_max_workers without restarting Message-ID: <20240411144240.GD1882158@nathanxps13> References: <20240410212344.GA1824549@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 11, 2024 at 02:24:18PM +0000, Imseih (AWS), Sami wrote: > max_worker_processes defines a pool of max # of background workers allowed. > parallel workers and extensions that spin up background workers all utilize from > this pool. > > Should autovacuum_max_workers be able to utilize from max_worker_processes also? > > This will allow autovacuum_max_workers to be dynamic while the user only has > to deal with an already existing GUC. We may want to increase the default value > for max_worker_processes as part of this. My concern with this approach is that other background workers could use up all the slots and prevent autovacuum workers from starting, unless of course we reserve autovacuum_max_workers slots for _only_ autovacuum workers. I'm not sure if we want to get these parameters tangled up like this, though... -- Nathan Bossart Amazon Web Services: https://aws.amazon.com