From e1e2c60f2ef48c83c8b18185a4f787c70aeb42e8 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Fri, 27 Feb 2026 14:45:57 -0500 Subject: [PATCH] AAP-66379 Include scaledown fix from dispatcherd (#16305) Include scaledown fix from dispatcherd --- awx/main/dispatch/config.py | 4 ++++ requirements/requirements.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/main/dispatch/config.py b/awx/main/dispatch/config.py index e00f69c059..09343f4fde 100644 --- a/awx/main/dispatch/config.py +++ b/awx/main/dispatch/config.py @@ -27,6 +27,10 @@ def get_dispatcherd_config(for_service: bool = False, mock_publish: bool = False "pool_kwargs": { "min_workers": settings.JOB_EVENT_WORKERS, "max_workers": max_workers, + # This must be less than max_workers to make sense, which is usually 4 + # With reserve of 1, after a burst of tasks, load needs to down to 4-1=3 + # before we return to min_workers + "scaledown_reserve": 1, }, "main_kwargs": {"node_id": settings.CLUSTER_HOST_ID}, "process_manager_cls": "ForkServerManager", diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 8b9c52620d..b8037cbbe9 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -116,7 +116,7 @@ cython==3.1.3 # via -r /awx_devel/requirements/requirements.in daphne==4.2.1 # via -r /awx_devel/requirements/requirements.in -dispatcherd[pg-notify]==2026.01.27 +dispatcherd[pg-notify]==2026.02.26 # via -r /awx_devel/requirements/requirements.in distro==1.9.0 # via -r /awx_devel/requirements/requirements.in