Add Keep Alive Timeout for httpd
This patch introduces a global keep alive timeout value for services that leverage httpd + wsgi to handle http/https requests. The default value is one minute. Change-Id: Icf7cb0baf86b428a60a7e9bbed642999711865cd Partially-Implements: blueprint add-ssl-internal-network
This commit is contained in:
parent
644f74b185
commit
19b028e660
@ -758,10 +758,19 @@ kolla_external_fqdn_cert: "{{ kolla_certificates_dir }}/haproxy.pem"
|
|||||||
kolla_internal_fqdn_cert: "{{ kolla_certificates_dir }}/haproxy-internal.pem"
|
kolla_internal_fqdn_cert: "{{ kolla_certificates_dir }}/haproxy-internal.pem"
|
||||||
kolla_admin_openrc_cacert: ""
|
kolla_admin_openrc_cacert: ""
|
||||||
kolla_copy_ca_into_containers: "no"
|
kolla_copy_ca_into_containers: "no"
|
||||||
kolla_verify_tls_backend: "yes"
|
|
||||||
haproxy_backend_cacert: "{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
|
haproxy_backend_cacert: "{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
|
||||||
haproxy_backend_cacert_dir: "/etc/ssl/certs"
|
haproxy_backend_cacert_dir: "/etc/ssl/certs"
|
||||||
|
|
||||||
|
##################
|
||||||
|
# Backend options
|
||||||
|
##################
|
||||||
|
kolla_httpd_keep_alive: "60"
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Backend TLS options
|
||||||
|
######################
|
||||||
kolla_enable_tls_backend: "no"
|
kolla_enable_tls_backend: "no"
|
||||||
|
kolla_verify_tls_backend: "yes"
|
||||||
kolla_tls_backend_cert: "{{ kolla_certificates_dir }}/backend-cert.pem"
|
kolla_tls_backend_cert: "{{ kolla_certificates_dir }}/backend-cert.pem"
|
||||||
kolla_tls_backend_key: "{{ kolla_certificates_dir }}/backend-key.pem"
|
kolla_tls_backend_key: "{{ kolla_certificates_dir }}/backend-key.pem"
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ aodh_api_l
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ aodh_log_dir }}/apache-error.log"
|
ErrorLog "{{ aodh_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -15,6 +15,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cinder_api
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
{% if cinder_logging_debug | bool %}
|
{% if cinder_logging_debug | bool %}
|
||||||
LogLevel info
|
LogLevel info
|
||||||
|
@ -6,6 +6,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cloudkitty
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ cloudkitty_log_dir }}/apache-error.log"
|
ErrorLog "{{ cloudkitty_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ freezer_ap
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ freezer_log_dir }}/apache-error.log"
|
ErrorLog "{{ freezer_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -10,6 +10,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ gnocchi_ap
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ gnocchi_log_dir }}/apache-error.log"
|
ErrorLog "{{ gnocchi_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -17,6 +17,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_c
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
<Directory "{{ binary_path }}">
|
<Directory "{{ binary_path }}">
|
||||||
<FilesMatch "heat-wsgi-api-cfn">
|
<FilesMatch "heat-wsgi-api-cfn">
|
||||||
|
@ -17,6 +17,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_l
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
<Directory "{{ binary_path }}">
|
<Directory "{{ binary_path }}">
|
||||||
<FilesMatch "heat-wsgi-api">
|
<FilesMatch "heat-wsgi-api">
|
||||||
|
@ -18,6 +18,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ keystone_a
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ keystone_log_dir }}/apache-error.log"
|
ErrorLog "{{ keystone_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -11,6 +11,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ masakari_a
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ masakari_log_dir }}/apache-error.log"
|
ErrorLog "{{ masakari_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ monasca_api_port }}
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ monasca_api_port }}
|
||||||
|
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ monasca_log_dir }}/apache-api-error.log"
|
ErrorLog "{{ monasca_log_dir }}/apache-api-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -6,6 +6,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ panko_api_
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ panko_log_dir }}/apache-error.log"
|
ErrorLog "{{ panko_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -17,6 +17,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ placement_
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
{% if placement_logging_debug | bool %}
|
{% if placement_logging_debug | bool %}
|
||||||
LogLevel info
|
LogLevel info
|
||||||
|
@ -10,6 +10,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ qinling_ap
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ qinling_log_dir }}/apache-error.log"
|
ErrorLog "{{ qinling_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -5,6 +5,7 @@ Listen {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ vitrage_ap
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ vitrage_log_dir }}/apache-error.log"
|
ErrorLog "{{ vitrage_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ zun_api_po
|
|||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
||||||
|
|
||||||
ErrorLog "{{ zun_log_dir }}/apache-error.log"
|
ErrorLog "{{ zun_log_dir }}/apache-error.log"
|
||||||
<IfModule log_config_module>
|
<IfModule log_config_module>
|
||||||
|
@ -191,10 +191,19 @@
|
|||||||
#kolla_internal_fqdn_cert: "{{ kolla_certificates_dir }}/haproxy-internal.pem"
|
#kolla_internal_fqdn_cert: "{{ kolla_certificates_dir }}/haproxy-internal.pem"
|
||||||
#kolla_admin_openrc_cacert: ""
|
#kolla_admin_openrc_cacert: ""
|
||||||
#kolla_copy_ca_into_containers: "no"
|
#kolla_copy_ca_into_containers: "no"
|
||||||
#kolla_verify_tls_backend: "yes"
|
|
||||||
#haproxy_backend_cacert: "{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
|
#haproxy_backend_cacert: "{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
|
||||||
#haproxy_backend_cacert_dir: "/etc/ssl/certs"
|
#haproxy_backend_cacert_dir: "/etc/ssl/certs"
|
||||||
|
|
||||||
|
##################
|
||||||
|
# Backend options
|
||||||
|
##################
|
||||||
|
#kolla_httpd_keep_alive: "60"
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Backend TLS options
|
||||||
|
#####################
|
||||||
#kolla_enable_tls_backend: "no"
|
#kolla_enable_tls_backend: "no"
|
||||||
|
#kolla_verify_tls_backend: "yes"
|
||||||
#kolla_tls_backend_cert: "{{ kolla_certificates_dir }}/backend-cert.pem"
|
#kolla_tls_backend_cert: "{{ kolla_certificates_dir }}/backend-cert.pem"
|
||||||
#kolla_tls_backend_key: "{{ kolla_certificates_dir }}/backend-key.pem"
|
#kolla_tls_backend_key: "{{ kolla_certificates_dir }}/backend-key.pem"
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds configuration parameter ``kolla_httpd_keep_alive`` to configure the
|
||||||
|
keep-alive timeout for services that use httpd to handle HTTP requests.
|
||||||
|
The default value is 60 seconds.
|
Loading…
Reference in New Issue
Block a user