Merge "Add support to tune the keystone apache MPM settings"
This commit is contained in:
commit
4cf8194f83
@ -164,6 +164,16 @@ keystone_apache_serversignature: "Off"
|
|||||||
keystone_wsgi_threads: 1
|
keystone_wsgi_threads: 1
|
||||||
keystone_wsgi_processes: "{{ ansible_processor_vcpus | default (1) * 2 }}"
|
keystone_wsgi_processes: "{{ ansible_processor_vcpus | default (1) * 2 }}"
|
||||||
|
|
||||||
|
## Apache MPM tunables
|
||||||
|
keystone_httpd_mpm_backend: event
|
||||||
|
keystone_httpd_mpm_start_servers: 2
|
||||||
|
keystone_httpd_mpm_min_spare_threads: 25
|
||||||
|
keystone_httpd_mpm_max_spare_threads: 75
|
||||||
|
keystone_httpd_mpm_thread_limit: 64
|
||||||
|
keystone_httpd_mpm_thread_child: 25
|
||||||
|
keystone_httpd_mpm_max_requests: 150
|
||||||
|
keystone_httpd_mpm_max_conn_child: 0
|
||||||
|
|
||||||
# set keystone_ssl to true to enable SSL configuration on the keystone containers
|
# set keystone_ssl to true to enable SSL configuration on the keystone containers
|
||||||
keystone_ssl: false
|
keystone_ssl: false
|
||||||
keystone_ssl_cert: /etc/ssl/certs/keystone.pem
|
keystone_ssl_cert: /etc/ssl/certs/keystone.pem
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Apache MPM tunable support has been added to the os-keystone
|
||||||
|
role in order to allow MPM thread tuning.
|
||||||
|
Default values reflect the current Ubuntu default settings:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
keystone_httpd_mpm_backend: event
|
||||||
|
keystone_httpd_mpm_start_servers: 2
|
||||||
|
keystone_httpd_mpm_min_spare_threads: 25
|
||||||
|
keystone_httpd_mpm_max_spare_threads: 75
|
||||||
|
keystone_httpd_mpm_thread_limit: 64
|
||||||
|
keystone_httpd_mpm_thread_child: 25
|
||||||
|
keystone_httpd_mpm_max_requests: 150
|
||||||
|
keystone_httpd_mpm_max_conn_child: 0
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Drop apache2 ports file
|
- name: Drop apache2 config files
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
@ -22,6 +22,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- { src: "keystone-ports.conf.j2", dest: "/etc/apache2/ports.conf" }
|
- { src: "keystone-ports.conf.j2", dest: "/etc/apache2/ports.conf" }
|
||||||
- { src: "keystone-httpd.conf.j2", dest: "/etc/apache2/sites-available/keystone-httpd.conf" }
|
- { src: "keystone-httpd.conf.j2", dest: "/etc/apache2/sites-available/keystone-httpd.conf" }
|
||||||
|
- { src: "keystone-httpd-mpm.conf.j2", dest: "/etc/apache2/mods-available/mpm_{{ keystone_httpd_mpm_backend }}.conf" }
|
||||||
notify:
|
notify:
|
||||||
- Restart Apache
|
- Restart Apache
|
||||||
tags:
|
tags:
|
||||||
|
9
templates/keystone-httpd-mpm.conf.j2
Normal file
9
templates/keystone-httpd-mpm.conf.j2
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<IfModule mpm_{{ keystone_httpd_mpm_backend }}_module>
|
||||||
|
StartServers {{ keystone_httpd_mpm_start_servers }}
|
||||||
|
MinSpareThreads {{ keystone_httpd_mpm_min_spare_threads }}
|
||||||
|
MaxSpareThreads {{ keystone_httpd_mpm_max_spare_threads }}
|
||||||
|
ThreadLimit {{ keystone_httpd_mpm_thread_limit }}
|
||||||
|
ThreadsPerChild {{ keystone_httpd_mpm_thread_child }}
|
||||||
|
MaxRequestWorkers {{ keystone_httpd_mpm_max_requests }}
|
||||||
|
MaxConnectionsPerChild {{ keystone_httpd_mpm_max_conn_child }}
|
||||||
|
</IfModule>
|
Loading…
Reference in New Issue
Block a user