Skip to content
Snippets Groups Projects
Commit 4e7d1ab9 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Add variable for changing Apache HTTP timeout"

parents cef8c8b3 647ff667
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 0 deletions
...@@ -794,6 +794,7 @@ haproxy_backend_cacert_dir: "/etc/ssl/certs" ...@@ -794,6 +794,7 @@ haproxy_backend_cacert_dir: "/etc/ssl/certs"
# Backend options # Backend options
################## ##################
kolla_httpd_keep_alive: "60" kolla_httpd_keep_alive: "60"
kolla_httpd_timeout: "60"
###################### ######################
# Backend TLS options # Backend TLS options
......
...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ aodh_api_l ...@@ -5,6 +5,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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ aodh_log_dir }}/apache-error.log" ErrorLog "{{ aodh_log_dir }}/apache-error.log"
......
...@@ -10,6 +10,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cinder_api ...@@ -10,6 +10,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cinder_api
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
{% if cinder_logging_debug | bool %} {% if cinder_logging_debug | bool %}
......
...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cloudkitty ...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ cloudkitty
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ cloudkitty_log_dir }}/apache-error.log" ErrorLog "{{ cloudkitty_log_dir }}/apache-error.log"
......
...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ freezer_ap ...@@ -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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ freezer_log_dir }}/apache-error.log" ErrorLog "{{ freezer_log_dir }}/apache-error.log"
......
...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ gnocchi_ap ...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ gnocchi_ap
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ gnocchi_log_dir }}/apache-error.log" ErrorLog "{{ gnocchi_log_dir }}/apache-error.log"
......
...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_c ...@@ -12,6 +12,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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
<Directory "{{ binary_path }}"> <Directory "{{ binary_path }}">
......
...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_l ...@@ -12,6 +12,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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
<Directory "{{ binary_path }}"> <Directory "{{ binary_path }}">
......
...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api ...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
<Directory "{{ wsgi_directory }}"> <Directory "{{ wsgi_directory }}">
......
...@@ -13,6 +13,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ keystone_a ...@@ -13,6 +13,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ keystone_a
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ keystone_log_dir }}/apache-error.log" ErrorLog "{{ keystone_log_dir }}/apache-error.log"
......
...@@ -6,6 +6,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ masakari_a ...@@ -6,6 +6,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ masakari_a
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ masakari_log_dir }}/apache-error.log" ErrorLog "{{ masakari_log_dir }}/apache-error.log"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ monasca_log_dir }}/apache-api-error.log" ErrorLog "{{ monasca_log_dir }}/apache-api-error.log"
......
...@@ -13,6 +13,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ nova_metad ...@@ -13,6 +13,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ nova_metad
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
<Directory "{{ wsgi_directory }}"> <Directory "{{ wsgi_directory }}">
......
...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ panko_api_ ...@@ -5,6 +5,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ panko_api_
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ panko_log_dir }}/apache-error.log" ErrorLog "{{ panko_log_dir }}/apache-error.log"
......
...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ placement_ ...@@ -12,6 +12,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ placement_
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
{% if placement_logging_debug | bool %} {% if placement_logging_debug | bool %}
......
...@@ -4,6 +4,7 @@ Listen {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ vitrage_ap ...@@ -4,6 +4,7 @@ Listen {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ vitrage_ap
ServerSignature Off ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ vitrage_log_dir }}/apache-error.log" ErrorLog "{{ vitrage_log_dir }}/apache-error.log"
......
...@@ -4,6 +4,7 @@ Listen {{ api_interface_address | put_address_in_context('url') }}:{{ zun_api_po ...@@ -4,6 +4,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
TimeOut {{ kolla_httpd_timeout }}
KeepAliveTimeout {{ kolla_httpd_keep_alive }} KeepAliveTimeout {{ kolla_httpd_keep_alive }}
ErrorLog "{{ zun_log_dir }}/apache-error.log" ErrorLog "{{ zun_log_dir }}/apache-error.log"
......
...@@ -214,6 +214,7 @@ ...@@ -214,6 +214,7 @@
# Backend options # Backend options
################## ##################
#kolla_httpd_keep_alive: "60" #kolla_httpd_keep_alive: "60"
#kolla_httpd_timeout: "60"
##################### #####################
# Backend TLS options # Backend TLS options
......
---
features:
- |
Adds configuration parameter ``kolla_httpd_timeout`` to configure the
``TimeOut`` directive for services that use Apache HTTP server to
handle HTTP requests. The default value is 60 seconds which matches
the original default, but you may wish to increase this.
fixes:
- |
Fixes an issue where it was not easily possible to set the Apache
HTTP timeout directive, where the default of 60s would cause
problems in slow running services. See
`LP#1917648 <https://launchpad.net/bugs/1917648>`__.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment