diff --git a/manifests/api.pp b/manifests/api.pp index 479d77a..1f624f5 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -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, diff --git a/releasenotes/notes/os_workers_for_worker_count-6deab8168bc940c2.yaml b/releasenotes/notes/os_workers_for_worker_count-6deab8168bc940c2.yaml index 5616f0d..54678d9 100644 --- a/releasenotes/notes/os_workers_for_worker_count-6deab8168bc940c2.yaml +++ b/releasenotes/notes/os_workers_for_worker_count-6deab8168bc940c2.yaml @@ -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.