Enable multi-processing by default.
In realistic production environments, multi-processing is likely to be enabled. A default setting of one worker would allow the multi-processing codepath to be followed by default, without changing the number of processes actually servicing API requests (i.e. the single parent process will just wait on the child). For most functional tests, we continue to explicitly configure zero workers, so as to avoid spawning twice as many glance-api processes during a test run. Change-Id: I1c327805f8fb975a3175e9a8b40aeddd21d5ef91
This commit is contained in:
parent
8f42dacecd
commit
72f54521e4
@ -62,7 +62,7 @@ sql_idle_timeout = 3600
|
||||
# may improve performance (especially if using SSL with
|
||||
# compression turned on). It is typically recommended to set
|
||||
# this value to the number of CPUs present on your machine.
|
||||
workers = 0
|
||||
workers = 1
|
||||
|
||||
# Role used to identify an authenticated user as administrator
|
||||
#admin_role = admin
|
||||
|
@ -58,7 +58,7 @@ socket_opts = [
|
||||
cfg.StrOpt('key_file'),
|
||||
]
|
||||
|
||||
workers_opt = cfg.IntOpt('workers', default=0)
|
||||
workers_opt = cfg.IntOpt('workers', default=1)
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.register_opts(bind_opts)
|
||||
|
@ -364,6 +364,7 @@ class RegistryServer(Server):
|
||||
self.log_file = os.path.join(self.test_dir, "registry.log")
|
||||
self.owner_is_tenant = True
|
||||
self.server_control_options = '--capture-output'
|
||||
self.workers = 0
|
||||
self.conf_base = """[DEFAULT]
|
||||
verbose = %(verbose)s
|
||||
debug = %(debug)s
|
||||
@ -376,6 +377,7 @@ sql_idle_timeout = 3600
|
||||
api_limit_max = 1000
|
||||
limit_param_default = 25
|
||||
owner_is_tenant = %(owner_is_tenant)s
|
||||
workers = %(workers)s
|
||||
[paste_deploy]
|
||||
flavor = %(deployment_flavor)s
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user