Add missing *Workers into low-memory footprint env
Similarly to other services, allow configuring custom service workers counts for Octavia API and Horizon. Also, add the corresponding low memory env configuration for those. Set missing *Workers conunts to 1 as well. Change-Id: Id9119ab6cfb8b2c85a097068777b4f96a34f5d3f Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
1caa1024e7
commit
ec5d0afa18
@ -137,6 +137,10 @@ parameters:
|
||||
default:
|
||||
tag: openstack.horizon
|
||||
file: /var/log/containers/horizon/horizon.log
|
||||
HorizonWorkers:
|
||||
default: 0
|
||||
description: Number of workers for Horizon service.
|
||||
type: number
|
||||
|
||||
parameter_groups:
|
||||
- label: deprecated
|
||||
@ -158,6 +162,8 @@ conditions:
|
||||
or:
|
||||
- {get_param: Debug}
|
||||
- {get_param: HorizonDebug}
|
||||
horizon_workers_set:
|
||||
not: {equals : [{get_param: HorizonWorkers}, 0]}
|
||||
|
||||
resources:
|
||||
|
||||
@ -233,6 +239,9 @@ outputs:
|
||||
- if:
|
||||
- horizon_domain_choices_set
|
||||
- horizon::keystone_domain_choices: {get_param: HorizonDomainChoices}
|
||||
- if:
|
||||
- horizon_workers_set
|
||||
- horizon::wsgi_processes: {get_param: HorizonWorkers}
|
||||
ansible_group_vars:
|
||||
keystone_enable_member: true
|
||||
service_config_settings:
|
||||
|
@ -92,6 +92,14 @@ parameters:
|
||||
description: |
|
||||
Use the advanced (eventlet safe) memcached client pool.
|
||||
default: true
|
||||
OctaviaWorkers:
|
||||
default: 0
|
||||
description: Number of workers for Octavia service.
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
octavia_workers_set:
|
||||
not: {equals : [{get_param: OctaviaWorkers}, 0]}
|
||||
|
||||
resources:
|
||||
ContainersCommon:
|
||||
@ -208,6 +216,9 @@ outputs:
|
||||
- if:
|
||||
- {get_param: OctaviaEnableDriverAgent}
|
||||
- {get_attr: [OctaviaProviderConfig, role_data, provider_driver_labels]}
|
||||
- if:
|
||||
- octavia_workers_set
|
||||
- octavia::wsgi::apache::workers: {get_param: OctaviaWorkers}
|
||||
service_config_settings:
|
||||
rsyslog:
|
||||
tripleo_logging_sources_octavia_api:
|
||||
|
@ -1,16 +1,23 @@
|
||||
# Lower the memory usage of overcloud.
|
||||
parameter_defaults:
|
||||
BarbicanWorkers: 1
|
||||
CinderWorkers: 1
|
||||
DesignateWorkers: 1
|
||||
GlanceWorkers: 1
|
||||
HeatWorkers: 1
|
||||
KeystoneWorkers: 1
|
||||
NeutronWorkers: 1
|
||||
NeutronMetadataWorkers: 1
|
||||
NovaWorkers: 1
|
||||
NovaSchedulerWorkers: 1
|
||||
SwiftWorkers: 1
|
||||
PlacementWorkers: 1
|
||||
GnocchiMetricdWorkers: 1
|
||||
HeatWorkers: 1
|
||||
HorizonWorkers: 1
|
||||
KeystoneWorkers: 1
|
||||
ManilaWorkers: 1
|
||||
MistralWorkers: 1
|
||||
NeutronMetadataWorkers: 1
|
||||
NeutronWorkers: 1
|
||||
NovaSchedulerWorkers: 1
|
||||
NovaWorkers: 1
|
||||
PlacementWorkers: 1
|
||||
SwiftWorkers: 1
|
||||
ZaqarWorkers: 1
|
||||
OctaviaWorkers: 1
|
||||
|
||||
ApacheMaxRequestWorkers: 100
|
||||
ApacheServerLimit: 100
|
||||
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
`OctaviaWorkers` and `HorizonWorkers` allow to configure the process
|
||||
workers count for the Octavia API and Horizon WSGI applications.
|
||||
fixes:
|
||||
- |
|
||||
Add the missing `*Workers` parameters into the low-memory footprint
|
||||
environment and set it to 1.
|
Loading…
Reference in New Issue
Block a user