Ironic: Add parameter to tune workers
Change-Id: I9d4ace7d1d841ac294fbf09679d184f5af395cb5
This commit is contained in:
parent
b36d30e898
commit
7494f74928
@ -90,6 +90,10 @@ parameters:
|
||||
type: string
|
||||
constraints:
|
||||
- allowed_values: ['oslo', 'json-rpc']
|
||||
IronicWorkers:
|
||||
default: 0
|
||||
description: Number of workers for Ironic services.
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
cors_allowed_origin_set:
|
||||
@ -102,6 +106,8 @@ conditions:
|
||||
equals: [{get_param: IronicAuthStrategy}, 'http_basic']
|
||||
rpc_transport_json_rpc:
|
||||
equals: [{get_param: IronicRpcTransport}, 'json-rpc']
|
||||
ironic_workers_set:
|
||||
not: {equals : [{get_param: IronicWorkers}, 0]}
|
||||
|
||||
resources:
|
||||
ApacheServiceBase:
|
||||
@ -232,6 +238,10 @@ outputs:
|
||||
params:
|
||||
$NETWORK: {get_param: [ServiceNetMap, IronicApiNetwork]}
|
||||
ironic::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
||||
ironic::wsgi::apache::workers:
|
||||
if:
|
||||
- ironic_workers_set
|
||||
- {get_param: IronicWorkers}
|
||||
ironic::cors::max_age: 3600
|
||||
ironic::cors::allow_methods: 'GET,POST,PUT,DELETE,OPTIONS,PATCH'
|
||||
ironic::cors::allow_headers: 'Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Auth-Token'
|
||||
|
5
releasenotes/notes/ironic-workers-e752707221a86c36.yaml
Normal file
5
releasenotes/notes/ironic-workers-e752707221a86c36.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``IronicWorkers`` parmaeter has been added. This parameter can be
|
||||
used to tune number of workers for Ironic services.
|
Loading…
x
Reference in New Issue
Block a user