glance/glance/tests/unit
Erno Kuvaja ef841b6704 Limit default workers to 8
With modern servers it's not uncommon to see environments that has
dozens of logical processors. Glance defaults workers to number of
these logical processors seen by OS and each worker spins up pool
of 1000 threads. Having dozens of these thread pools consuming
resources is total overkill for most of the environments.

This change limits the amount of workers used by default to 8 which
should be plenty for most of the deployments. This limitation does
not affect if more workers is specifically configured in the config
file.

Change-Id: I6fcf2f8a416e34c0c719e1abd73f0525e686be5e
Closes-Bug: #1748916
(cherry picked from commit 6f87c7d567)
2018-02-13 22:06:03 +00:00
..
api Remove use of deprecated optparse module 2017-10-01 07:08:00 -05:00
async Replace xml defusedxml 2018-01-31 14:49:13 +00:00
common Limit default workers to 8 2018-02-13 22:06:03 +00:00
image_cache Handle file delete races in image cache 2017-07-10 11:37:55 -05:00
v1 Remove unused None from dict.get() 2017-07-05 12:49:10 +00:00
v2 Use configured value for import-methods header 2018-02-12 20:51:48 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py Don't use config option sqlite_db 2016-08-16 13:42:02 +08:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
fixtures.py Add fixture to only emit DeprecationWarning once 2017-12-12 15:49:04 +00:00
test_auth.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_cache_middleware.py Fix glance image-download error 2017-07-11 11:01:48 -05:00
test_cached_images.py Improved coverage for glance.api.* 2014-06-15 17:44:09 +00:00
test_context.py Use new oslo.context arg names 2017-11-27 10:20:10 -06:00
test_context_middleware.py Support Unicode request_id on Python 3 2015-11-27 15:44:54 +01:00
test_data_migration_framework.py Modify glance manage db sync to use EMC 2018-02-05 17:00:57 +05:30
test_db.py Prevent v1_api from making requests to v2_registry 2017-02-09 18:44:08 +00:00
test_db_metadef.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
test_domain.py Glare-ectomy 2017-03-01 21:46:52 +00:00
test_domain_proxy.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
test_glance_manage.py Provide user friendly message for FK failure 2017-04-05 15:56:32 +05:30
test_glance_replicator.py Add fixture to only emit DeprecationWarning once 2017-12-12 15:49:04 +00:00
test_image_cache.py Add fixture to only emit DeprecationWarning once 2017-12-12 15:49:04 +00:00
test_image_cache_client.py Do not use service catalog for cache client 2016-11-07 16:38:52 +00:00
test_manage.py Implementation of db check command 2018-02-08 17:32:33 +05:30
test_misc.py Port v1.test_registry_api to Python 3 2015-10-22 22:53:05 +02:00
test_notifier.py Merge "Added unit tests for disabled notifications in Notifier" 2016-11-22 04:03:23 +00:00
test_policy.py Move 'upload_image' policy check to the controller 2017-12-11 19:58:18 +05:30
test_quota.py Tests: Remove the redundant methods 2017-06-20 15:55:01 +08:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Scrubber refactor 2018-01-11 10:04:16 +08:00
test_store_image.py Use cursive for signature verification 2016-08-31 12:18:10 -07:00
test_store_location.py Upgrade to hacking 0.10 2015-01-13 15:03:27 +01:00
test_versions.py Enable Image Import per default and make current 2018-01-24 13:01:55 +00:00
utils.py Merge "Delete data if image is deleted after staging call" 2018-02-08 19:47:12 +00:00