3e8db91a1e
Render {{ openstack_service_workers }} for workers of each openstack service is not enough. There are several services which has to have more workers because there are more requests sent to them. This patch is just adding default value for workers for each service and sets {{ openstack_service_workers }} as default, so value can be overrided in hostvars per server. Nothing changed for normal user. Change-Id: Ifa5863f8ec865bbf8e39c9b2add42c92abe40616
72 lines
2.6 KiB
Django/Jinja
72 lines
2.6 KiB
Django/Jinja
{% set nova_log_dir = '/var/log/kolla/nova' %}
|
|
{% set wsgi_directory = '/var/lib/kolla/venv/bin' %}
|
|
{% if nova_enable_tls_backend | bool %}
|
|
{% if kolla_base_distro in ['centos'] %}
|
|
LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so
|
|
{% else %}
|
|
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
|
|
{% endif %}
|
|
{% endif %}
|
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ nova_api_listen_port }}
|
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ nova_metadata_listen_port }}
|
|
|
|
ServerSignature Off
|
|
ServerTokens Prod
|
|
TraceEnable off
|
|
TimeOut {{ kolla_httpd_timeout }}
|
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
|
|
|
<Directory "{{ wsgi_directory }}">
|
|
<FilesMatch "^nova-(api-wsgi|metadata-wsgi)$">
|
|
Options None
|
|
Require all granted
|
|
</FilesMatch>
|
|
</Directory>
|
|
|
|
ErrorLog "{{ nova_log_dir }}/apache-error.log"
|
|
<IfModule log_config_module>
|
|
CustomLog "{{ nova_log_dir }}/apache-access.log" common
|
|
</IfModule>
|
|
|
|
{% if nova_logging_debug | bool %}
|
|
LogLevel info
|
|
{% endif %}
|
|
|
|
<VirtualHost *:{{ nova_api_listen_port }}>
|
|
WSGIDaemonProcess nova-api processes={{ nova_api_workers }} threads=1 user=nova group=nova display-name=nova-api
|
|
WSGIProcessGroup nova-api
|
|
WSGIScriptAlias / {{ wsgi_directory }}/nova-api-wsgi
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog "{{ nova_log_dir }}/nova-api-error.log"
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
|
CustomLog "{{ nova_log_dir }}/nova-api-access.log" logformat
|
|
{% if nova_enable_tls_backend | bool %}
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/nova/certs/nova-cert.pem
|
|
SSLCertificateKeyFile /etc/nova/certs/nova-key.pem
|
|
{% endif %}
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:{{ nova_metadata_listen_port }}>
|
|
WSGIDaemonProcess nova-metadata processes={{ nova_metadata_api_workers }} threads=1 user=nova group=nova display-name=nova-metadata-api
|
|
WSGIProcessGroup nova-metadata
|
|
WSGIScriptAlias / {{ wsgi_directory }}/nova-metadata-wsgi
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog "{{ nova_log_dir }}/nova-metadata-error.log"
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
|
CustomLog "{{ nova_log_dir }}/nova-metadata-access.log" logformat
|
|
{% if nova_enable_tls_backend | bool %}
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/nova/certs/nova-cert.pem
|
|
SSLCertificateKeyFile /etc/nova/certs/nova-key.pem
|
|
{% endif %}
|
|
</VirtualHost>
|