From patchwork Fri Apr 4 20:48:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 14038898 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E671634 for ; Fri, 4 Apr 2025 20:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743799710; cv=none; b=NMXgqX0BZ/BJWbwwQ8hionbvmfoXTcevryeZLTuusQbKobfD5Z8hawTJ6zDS3vbdYwbTsW6/XdSQh/w0W3tERYmQwcHv38fDGYzvr2oSVq0CkWGfpf5ZRiXYW2nLYKvHojoMnEBW97oPiqp0k8ser3LnrmamdaRsTdytlu4zITs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743799710; c=relaxed/simple; bh=SLvu/HfslYwVZi0cR0wCTGd01fFA+2bbZxpNz6zuZIM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KgQ8NqBbIv08oAwCQbgdDGQB9JGn9EgLSwGE7f6g6os7oI2Gp/yJZt6fOtfnNavj5LD/ZU2SRBMcDJKl4OM4TLSBEb0JnjkbSTk7SzSss+ddfUYTvaoIgaCj2I3j8H3zMukJq7h18o+SABmcbY3KnMInZEHlibKXxaSGleECrKc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PwDaqEg0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PwDaqEg0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78D13C4CEDD; Fri, 4 Apr 2025 20:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743799709; bh=SLvu/HfslYwVZi0cR0wCTGd01fFA+2bbZxpNz6zuZIM=; h=From:To:Cc:Subject:Date:From; b=PwDaqEg0Qit0bAjN+OhyANWFpMN1s0KERPJK5rNCyYsY7gqynkGvsgi2UxI5nigxp ZoojMUPUJ+O6RZ2VuvY9RHehAdIt/1L+/iAxO7O+28BYssMwtJ3ozXchWQ9HMgefsm Ck066HUX1DSn78+EVWDBKIIpVfftCM1MOcl2pkY8ecdaQYOWhu/NucD7w7FD1tJruU rLnPG+neKsTuVVZorMklHXZbjlk5CeWf15NfAUl7URqbmdtOHct5mCKNPxhqCVW0jL B/bcR7JuS1XBZdeE2twgmMSH55ONcS61yov24oqAP46ubbRpnoYp3ohijgS/as0E/C NwEOOzNWmy/gQ== From: cel@kernel.org To: Daniel Gomez Cc: , Chuck Lever Subject: [PATCH] ansible: Increase default task parallelism Date: Fri, 4 Apr 2025 16:48:27 -0400 Message-ID: <20250404204827.34941-1-cel@kernel.org> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever Enable workflows with more than 5 target nodes to run concurrently. Signed-off-by: Chuck Lever Reviewed-by: Luis Chamberlain --- kconfigs/Kconfig.ansible_cfg | 9 +++++++++ playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 | 1 + 2 files changed, 10 insertions(+) This will certainly conflict with other recent patches posted here, but I thought I would post for comments. I've been running with the "forks" setting elevated for a while, but the new ansible_cfg logic added here is untested. diff --git a/kconfigs/Kconfig.ansible_cfg b/kconfigs/Kconfig.ansible_cfg index 7286b0fe5025..34c8c93fadd6 100644 --- a/kconfigs/Kconfig.ansible_cfg +++ b/kconfigs/Kconfig.ansible_cfg @@ -108,6 +108,15 @@ config ANSIBLE_CFG_DEPRECATION_WARNINGS Toggle to control the showing of deprecation warnings https://docs.ansible.com/ansible/latest/reference_appendices/config.html#deprecation-warnings +config ANSIBLE_CFG_FORKS + int "forks" + otuput yaml + default 10 + help + Set the default maximum number of concurrent Ansible + operations (forks). + https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_strategies.html#setting-the-number-of-forks + if DISTRO_OPENSUSE config ANSIBLE_CFG_RECONNECTION_RETRIES diff --git a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 index e13931b5ce97..04ae67782c20 100644 --- a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 +++ b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 @@ -8,6 +8,7 @@ display_skipped_hosts = {{ ansible_cfg_callback_plugin_display_skipped_hosts }} show_custom_stats = {{ ansible_cfg_callback_plugin_show_custom_stats }} show_per_host_start = {{ ansible_cfg_callback_plugin_show_per_host_start }} show_task_path_on_failure = {{ ansible_cfg_callback_plugin_show_task_path_on_failure }} +forks = {{ ansible_cfg_forks }} {% if ansible_facts['distribution'] == 'openSUSE' %} [connection] retries = {{ ansible_cfg_reconnection_retries }}