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

Merge "Add support for configuring tuned profile"

parents 1f1f2422 769c2efb
No related branches found
No related tags found
No related merge requests found
Showing
with 179 additions and 0 deletions
...@@ -127,6 +127,13 @@ compute_lvm_group_data_lv_docker_volumes_fs: ext4 ...@@ -127,6 +127,13 @@ compute_lvm_group_data_lv_docker_volumes_fs: ext4
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
compute_sysctl_parameters: {} compute_sysctl_parameters: {}
###############################################################################
# Compute node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-host.
compute_tuned_active_builtin_profile: "virtual-host"
############################################################################### ###############################################################################
# Compute node user configuration. # Compute node user configuration.
......
...@@ -149,6 +149,13 @@ controller_lvm_group_data_lv_docker_volumes_fs: ext4 ...@@ -149,6 +149,13 @@ controller_lvm_group_data_lv_docker_volumes_fs: ext4
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
controller_sysctl_parameters: {} controller_sysctl_parameters: {}
###############################################################################
# Controller node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is throughput-performance.
controller_tuned_active_builtin_profile: "throughput-performance"
############################################################################### ###############################################################################
# Controller node user configuration. # Controller node user configuration.
......
...@@ -165,6 +165,13 @@ infra_vm_lvm_group_data_lv_docker_volumes_fs: ext4 ...@@ -165,6 +165,13 @@ infra_vm_lvm_group_data_lv_docker_volumes_fs: ext4
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
infra_vm_sysctl_parameters: {} infra_vm_sysctl_parameters: {}
###############################################################################
# Infrastructure VM node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-guest.
infra_vm_tuned_active_builtin_profile: "virtual-guest"
############################################################################### ###############################################################################
# Infrastructure VM node user configuration. # Infrastructure VM node user configuration.
......
...@@ -88,6 +88,13 @@ monitoring_lvm_groups_extra: "{{ controller_lvm_groups_extra }}" ...@@ -88,6 +88,13 @@ monitoring_lvm_groups_extra: "{{ controller_lvm_groups_extra }}"
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
monitoring_sysctl_parameters: "{{ controller_sysctl_parameters }}" monitoring_sysctl_parameters: "{{ controller_sysctl_parameters }}"
###############################################################################
# Monitoring node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is throughput-performance.
monitoring_tuned_active_builtin_profile: "throughput-performance"
############################################################################### ###############################################################################
# Monitoring node user configuration. # Monitoring node user configuration.
......
...@@ -96,6 +96,13 @@ seed_lvm_group_data_lv_docker_volumes_fs: ext4 ...@@ -96,6 +96,13 @@ seed_lvm_group_data_lv_docker_volumes_fs: ext4
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
seed_sysctl_parameters: {} seed_sysctl_parameters: {}
###############################################################################
# Seed node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-guest.
seed_tuned_active_builtin_profile: "virtual-guest"
############################################################################### ###############################################################################
# Seed node user configuration. # Seed node user configuration.
......
...@@ -122,6 +122,13 @@ seed_hypervisor_libvirt_networks: > ...@@ -122,6 +122,13 @@ seed_hypervisor_libvirt_networks: >
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
seed_hypervisor_sysctl_parameters: {} seed_hypervisor_sysctl_parameters: {}
###############################################################################
# Seed hypervisor tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-host.
seed_hypervisor_tuned_active_builtin_profile: "virtual-host"
############################################################################### ###############################################################################
# Seed hypervisor user configuration. # Seed hypervisor user configuration.
......
...@@ -139,6 +139,13 @@ storage_lvm_group_data_lv_docker_volumes_fs: ext4 ...@@ -139,6 +139,13 @@ storage_lvm_group_data_lv_docker_volumes_fs: ext4
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
storage_sysctl_parameters: {} storage_sysctl_parameters: {}
###############################################################################
# Storage node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is throughput-performance.
storage_tuned_active_builtin_profile: "throughput-performance"
############################################################################### ###############################################################################
# Storage node user configuration. # Storage node user configuration.
......
---
###############################################################################
# Compute node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ compute_tuned_active_builtin_profile }}"
---
###############################################################################
# Controller node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ controller_tuned_active_builtin_profile }}"
---
###############################################################################
# Infrastructure VM node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ infra_vm_tuned_active_builtin_profile }}"
---
###############################################################################
# Monitoring node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: >
{{ controller_tuned_active_builtin_profile
if inventory_hostname in groups['controllers'] else
monitoring_tuned_active_builtin_profile }}
---
###############################################################################
# Seed hypervisor tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ seed_hypervisor_tuned_active_builtin_profile }}"
---
###############################################################################
# Seed node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ seed_tuned_active_builtin_profile }}"
---
###############################################################################
# Storage node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role.
tuned_active_builtin_profile: "{{ storage_tuned_active_builtin_profile }}"
---
- name: Configure tuned profile
hosts: seed:seed-hypervisor:overcloud:infra-vms
tags:
- tuned
roles:
- name: giovtorres.tuned
become: true
when:
- tuned_active_builtin_profile != ""
- ansible_facts.os_family == 'RedHat'
...@@ -428,6 +428,45 @@ In the following example, firewalld is enabled on controllers. ``public`` and ...@@ -428,6 +428,45 @@ In the following example, firewalld is enabled on controllers. ``public`` and
- service: http - service: http
zone: public zone: public
.. _configuration-hosts-tuned:
Tuned
=====
*tags:*
| ``tuned``
.. note:: Tuned configuration only supports CentOS systems for now.
Built-in ``tuned`` profiles can be applied to hosts. The following variables
can be used to set a ``tuned`` profile to specific types of hosts:
* ``seed_hypervisor_tuned_active_builtin_profile``
* ``seed_tuned_active_builtin_profile``
* ``compute_tuned_active_builtin_profile``
* ``controller_tuned_active_builtin_profile``
* ``monitoring_tuned_active_builtin_profile``
* ``storage_tuned_active_builtin_profile``
* ``infra_vm_tuned_active_builtin_profile``
By default, Kayobe applies a ``tuned`` profile matching the role of each host
in the system:
* seed hypervisor: ``virtual-host``
* seed: ``virtual-guest``
* infrastructure VM: ``virtual-guest``
* compute: ``virtual-host``
* controllers: ``throughput-performance``
* monitoring: ``throughput-performance``
* storage: ``throughput-performance``
For example, to change the ``tuned`` profile of controllers to
``network-throughput``:
.. code-block:: yaml
:caption: ``controllers.yml``
controller_tuned_active_builtin_profile: network-throughput
Sysctls Sysctls
======= =======
*tags:* *tags:*
......
...@@ -108,6 +108,13 @@ ...@@ -108,6 +108,13 @@
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
#compute_sysctl_parameters: #compute_sysctl_parameters:
###############################################################################
# Compute node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-host.
#compute_tuned_active_builtin_profile:
############################################################################### ###############################################################################
# Compute node user configuration. # Compute node user configuration.
......
...@@ -117,6 +117,13 @@ ...@@ -117,6 +117,13 @@
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
#controller_sysctl_parameters: #controller_sysctl_parameters:
###############################################################################
# Controller node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is throughput-performance.
#controller_tuned_active_builtin_profile:
############################################################################### ###############################################################################
# Controller node user configuration. # Controller node user configuration.
......
...@@ -134,6 +134,13 @@ ...@@ -134,6 +134,13 @@
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
#infra_vm_sysctl_parameters: #infra_vm_sysctl_parameters:
###############################################################################
# Infrastructure VM node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is virtual-guest.
#infra_vm_tuned_active_builtin_profile:
############################################################################### ###############################################################################
# Infrastructure VM node user configuration. # Infrastructure VM node user configuration.
......
...@@ -81,6 +81,13 @@ ...@@ -81,6 +81,13 @@
# Dict of sysctl parameters to set. # Dict of sysctl parameters to set.
#monitoring_sysctl_parameters: #monitoring_sysctl_parameters:
###############################################################################
# Monitoring node tuned configuration.
# Builtin tuned profile to use. Format is same as that used by giovtorres.tuned
# role. Default is throughput-performance.
#monitoring_tuned_active_builtin_profile:
############################################################################### ###############################################################################
# Monitoring node user configuration. # Monitoring node user configuration.
......
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