tripleo-common/scripts
Alex Schultz 7994173916 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)

 Conflicts:
	tripleo_common/image/image_uploader.py

Change-Id: I60507eba9884a0660fe269da5ad27b0e57a70ca8
Related-Bug: #1844446
(cherry picked from commit 60afc0eec4)
2019-10-14 22:28:32 -04:00
..
README-tripleo.sh Remove tripleo.sh (now in tripleo-ci repo) 2016-03-15 08:01:22 -04: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 A script that pulls the latest puppet source 2017-01-09 21:03:13 -05:00
run-validation Implement Ansible fact cache for Mistral executor 2019-10-04 07:45:48 +00:00
tripleo-build-images Fix build-image script output 2016-12-06 16:22:01 +01:00
tripleo-config-download Config download support for all deployments 2017-10-17 13:59:53 -04:00
tripleo-container-image-prepare Make executor type dynamic 2019-10-14 22:28:32 -04:00
tripleo-deploy-openshift Mount openshift-ansible working dir with 'z' option 2019-03-23 08:28:44 +01: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