Deprecate api_workers config option
Since we moved to cheroot, we can't start more than one worker. Change-Id: Ia3869dec4f4fba6c090050125eee1df17e188427 Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
This commit is contained in:
@@ -148,6 +148,11 @@ api_opts = [
|
|||||||
),
|
),
|
||||||
cfg.IntOpt(
|
cfg.IntOpt(
|
||||||
'api_workers',
|
'api_workers',
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason='This option has become useless and mistral-api'
|
||||||
|
'will start only one worker now. If you want '
|
||||||
|
'more workers, consider starting mistral-wsgi-api '
|
||||||
|
'with a wsgi server instead.',
|
||||||
help=_('Number of workers for Mistral API service '
|
help=_('Number of workers for Mistral API service '
|
||||||
'default is equal to the number of CPUs available if that can '
|
'default is equal to the number of CPUs available if that can '
|
||||||
'be determined, else a default worker count of 1 is returned.')
|
'be determined, else a default worker count of 1 is returned.')
|
||||||
|
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
Deprecate the ``api_workers`` option for mistral-api. This option was used
|
||||||
|
to spawn multiple workers when using oslo.service wsgi server.
|
||||||
|
Since we moved to cheroot, this is not possible anymore.
|
||||||
|
If you want to use more than one process to handle Mistral API requests,
|
||||||
|
you should consider using mistral-wsgi-api behind a wsgi server.
|
Reference in New Issue
Block a user