From f0537397dae57453b441dcfc54ad029b4d553ee2 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Tue, 26 Mar 2024 16:56:08 +0100 Subject: [PATCH] openscanhub: increase number of workers to 128 ... in staging. This is done for load testing purpose and should be reverted to a lower value in the future. Signed-off-by: Siteshwar Vashisht --- .../openscanhub/templates/etc-resallocserver-pools.yaml | 4 ++-- roles/openshift-apps/openscanhub/templates/settings_local.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/openshift-apps/openscanhub/templates/etc-resallocserver-pools.yaml b/roles/openshift-apps/openscanhub/templates/etc-resallocserver-pools.yaml index 1ff3c21358..7b1933e8b0 100644 --- a/roles/openshift-apps/openscanhub/templates/etc-resallocserver-pools.yaml +++ b/roles/openshift-apps/openscanhub/templates/etc-resallocserver-pools.yaml @@ -7,13 +7,13 @@ openscanhub_aws_spot_x86_64: # This should be the same value for `MAX_SINGLE_USE_WORKERS` in `settings_local.py`. {% if env == 'staging' %} - max: 4 + max: 128 {% else %} max: 32 {% endif %} {% if env == 'staging' %} - max_starting: 4 + max_starting: 128 {% else %} max_starting: 32 {% endif %} diff --git a/roles/openshift-apps/openscanhub/templates/settings_local.py b/roles/openshift-apps/openscanhub/templates/settings_local.py index 485bd2d381..d8e67744f6 100644 --- a/roles/openshift-apps/openscanhub/templates/settings_local.py +++ b/roles/openshift-apps/openscanhub/templates/settings_local.py @@ -136,7 +136,7 @@ ENABLE_SINGLE_USE_WORKERS = True # This number should be same as the `max` field in the `/etc/resallocserver/pools.yaml` # on the resalloc server. Otherwise, we may end up with too less or too many tickets # being opened. -MAX_SINGLE_USE_WORKERS = 4 +MAX_SINGLE_USE_WORKERS = 128 # TODO: This url is used to dynamically generate worker configuration files. SINGLE_USE_WORKER_OSH_HUB_URL = "https://openscanhub.stg.fedoraproject.org/xmlrpc"