tripleo-common/scripts
Alex Schultz 60afc0eec4 Make executor type dynamic
When we run the tripleo-container-image-prepare script, it performs
better under python2 when the process leverages a ProcessPoolExecutor.
Rather than using threading, we should be using processes to handle the
image upload processing. Currently when we're processing the images, we
end up being single threaded due to the GIL when processing the data. By
switching to the ProcessPoolExecutor, we eliminate the locking that is
occuring during the data processing as it'll be handled in each process.

Unfortunately, we cannot leverage the ProcessPoolExecutor when the same
code is run under Mistral. In order to make the code work for both
methods, we need to make the execution type dynamic. This change creates
two types of lock objects that are used to determine what type of
executor to ultimately use when processing the images for uploading.

Additionally this change limits the number of concurrent image upload
processes to 4 if using the ProcessPoolExecutor and caps the number of
threads at a max of 8 based on (cpu count / 2)

Change-Id: I60507eba9884a0660fe269da5ad27b0e57a70ca8
Related-Bug: #1844446
2019-10-08 08:25:21 -06:00
..
README-tripleo.sh Remove tripleo.sh (now in tripleo-ci repo) 2016-03-15 08:01:22 -04:00
bindep-install Add bindep support to tox 2019-06-07 15:14:01 -05:00
bootstrap_host_exec Add bashate in gate jobs and fix existing errors 2018-09-17 11:36:57 +02:00
bootstrap_host_only_eval Add bashate in gate jobs and fix existing errors 2018-09-17 11:36:57 +02:00
bootstrap_host_only_exec Add bashate in gate jobs and fix existing errors 2018-09-17 11:36:57 +02:00
container-update.py Address python3 string issues with subprocess 2018-12-12 13:38:14 -07:00
pull-puppet-modules Replace git.openstack.org URLs with opendev.org URLs 2019-05-31 10:51:20 +08:00
run-validation Implement Ansible fact cache for Mistral executor 2019-10-02 15:37:18 +01:00
tripleo-build-images Fix bashate and flake8 errors 2019-06-14 19:23:53 +01:00
tripleo-config-download Fix bashate and flake8 errors 2019-06-14 19:23:53 +01:00
tripleo-container-image-prepare Make executor type dynamic 2019-10-08 08:25:21 -06:00
upload-puppet-modules Change default deploy artifacts container name 2016-09-05 21:02:27 +01:00
upload-swift-artifacts Add bashate in gate jobs and fix existing errors 2018-09-17 11:36:57 +02:00