Fix workers to 4
This commit is contained in:
parent
5b8594e8b0
commit
626000dc6e
51
charms/nova-k8s/1
Normal file
51
charms/nova-k8s/1
Normal file
@ -0,0 +1,51 @@
|
||||
Listen {{ wsgi_config.public_port }}
|
||||
Listen {{ wsgi_nova_metadata.public_port }}
|
||||
<VirtualHost *:{{ wsgi_config.public_port }}>
|
||||
WSGIDaemonProcess nova-api processes=4 threads=1 user={{ wsgi_config.user }} group={{ wsgi_config.group }} \
|
||||
display-name=%{GROUP}
|
||||
WSGIProcessGroup nova-api
|
||||
{% if ingress_internal.ingress_path -%}
|
||||
WSGIScriptAlias {{ ingress_internal.ingress_path }} {{ wsgi_config.wsgi_public_script }}
|
||||
{% endif -%}
|
||||
WSGIScriptAlias / {{ wsgi_config.wsgi_public_script }}
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIPassAuthorization On
|
||||
<IfVersion >= 2.4>
|
||||
ErrorLogFormat "%{cu}t %M"
|
||||
</IfVersion>
|
||||
ErrorLog {{ wsgi_config.error_log }}
|
||||
CustomLog {{ wsgi_config.custom_log }} combined
|
||||
|
||||
<Directory /usr/bin>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
<VirtualHost *:{{ wsgi_nova_metadata.public_port }}>
|
||||
WSGIDaemonProcess nova-metadata processes=4 threads=1 user={{ wsgi_nova_metadata.user }} group={{ wsgi_nova_metadata.group }} \
|
||||
display-name=%{GROUP}
|
||||
WSGIProcessGroup nova-metadata
|
||||
WSGIScriptAlias / {{ wsgi_nova_metadata.wsgi_public_script }}
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIPassAuthorization On
|
||||
<IfVersion >= 2.4>
|
||||
ErrorLogFormat "%{cu}t %M"
|
||||
</IfVersion>
|
||||
ErrorLog {{ wsgi_nova_metadata.error_log }}
|
||||
CustomLog {{ wsgi_nova_metadata.custom_log }} combined
|
||||
|
||||
<Directory /usr/bin>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
</VirtualHost>
|
@ -38,6 +38,11 @@ region_name = {{ options.region }}
|
||||
[cells]
|
||||
enable = False
|
||||
|
||||
[conductor]
|
||||
workers = 4
|
||||
|
||||
[scheduler]
|
||||
workers = 4
|
||||
|
||||
[os_region_name]
|
||||
openstack =
|
||||
|
@ -1,7 +1,7 @@
|
||||
Listen {{ wsgi_config.public_port }}
|
||||
Listen {{ wsgi_nova_metadata.public_port }}
|
||||
<VirtualHost *:{{ wsgi_config.public_port }}>
|
||||
WSGIDaemonProcess nova-api processes=3 threads=1 user={{ wsgi_config.user }} group={{ wsgi_config.group }} \
|
||||
WSGIDaemonProcess nova-api processes=4 threads=1 user={{ wsgi_config.user }} group={{ wsgi_config.group }} \
|
||||
display-name=%{GROUP}
|
||||
WSGIProcessGroup nova-api
|
||||
{% if ingress_internal.ingress_path -%}
|
||||
@ -27,7 +27,7 @@ Listen {{ wsgi_nova_metadata.public_port }}
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
<VirtualHost *:{{ wsgi_nova_metadata.public_port }}>
|
||||
WSGIDaemonProcess nova-metadata processes=3 threads=1 user={{ wsgi_nova_metadata.user }} group={{ wsgi_nova_metadata.group }} \
|
||||
WSGIDaemonProcess nova-metadata processes=4 threads=1 user={{ wsgi_nova_metadata.user }} group={{ wsgi_nova_metadata.group }} \
|
||||
display-name=%{GROUP}
|
||||
WSGIProcessGroup nova-metadata
|
||||
WSGIScriptAlias / {{ wsgi_nova_metadata.wsgi_public_script }}
|
||||
|
Loading…
Reference in New Issue
Block a user