Switch mistral api to use os_workers

When not runing mistral under apache, we should use os_workers for the
number of workers to run by default. This change updates the api
configuration to use os_workers which is the larger of
(number of cpus/4) or 2 but is capped at 8.

Change-Id: I9ddb72c0424cfda539fcddf3c67f8f4b729a7ccb
This commit is contained in:
Alex Schultz
2016-10-14 10:34:29 -06:00
parent 18befb1945
commit 3b8015fee2
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
# (Optional) Number of workers for Mistral API service
# default is equal to the number of CPUs available if that can
# be determined, else a default worker count of 1 is returned.
# Defaults to $::os_service_default
# Defaults to $::os_workers
#
# [*bind_host*]
# (Optional) Address to bind the server. Useful when
@@ -47,7 +47,7 @@
#
class mistral::api (
$allow_action_execution_deletion = $::os_service_default,
$api_workers = $::os_service_default,
$api_workers = $::os_workers,
$bind_host = $::os_service_default,
$bind_port = $::os_service_default,
$enabled = true,

View File

@@ -3,3 +3,5 @@ other:
- Parameters that control the number of spawned child processes for
distributing processing have had their default value changed from
::processorcount to ::os_workers.
- Switched default api worker count for the api service when
not run under apache to use os_workers.