Check if Gnocchi api processes is > 1.
This does check if gnocchi is in the httpd configuration directory (which should indicate if gnocchi is installed on the system, though it may still not be setup to be running) Change-Id: I8eacbe66769758e1667165b0629d7051cf98ad9d
This commit is contained in:
parent
956d89ccb5
commit
39ae793fd9
@ -9,6 +9,7 @@ nova_vif_timeout: 300
|
||||
netdev_max_backlog: 100000
|
||||
keystone_threads: 6
|
||||
keystone_processes: 2
|
||||
gnocchi_api_processes: 2
|
||||
|
||||
checks :
|
||||
bz1095811 :
|
||||
@ -96,3 +97,8 @@ checks :
|
||||
description: "Overcloud deployed with keystone as single process leads to abysmal performance"
|
||||
severity: "Critical"
|
||||
impact: "Not tuning the workers properly can cause degraded performance"
|
||||
bz1372821:
|
||||
url: "https://bugzilla.redhat.com/show_bug.cgi?id=1372821"
|
||||
description: "Gnocchi API processes tuned to 1 process"
|
||||
severity: "Suggestion"
|
||||
impact: "Not tuning the workers properly can cause degraded performance"
|
||||
|
15
ansible/check/roles/gnocchi/tasks/main.yml
Normal file
15
ansible/check/roles/gnocchi/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
#
|
||||
# Gnocchi tasks for performance checks
|
||||
#
|
||||
|
||||
- name: Get httpd configuration files
|
||||
shell: 'ls /etc/httpd/conf.d/'
|
||||
register: httpd_confd_files
|
||||
|
||||
- name: Gnocchi API httpd process count
|
||||
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*gnocchi_wsgi.conf | egrep -o "[0-9]+"
|
||||
register: bz1372821
|
||||
failed_when: bz1372821.stdout|int < gnocchi_api_processes and 'gnocchi' in httpd_confd_files.stdout
|
||||
when: (inventory_hostname in groups.controller)
|
||||
ignore_errors: True
|
@ -33,6 +33,7 @@
|
||||
- neutron
|
||||
- nova
|
||||
- glance
|
||||
- gnocchi
|
||||
|
||||
- hosts: compute
|
||||
name: Checking Compute Nodes for common Performance Issues
|
||||
|
Loading…
x
Reference in New Issue
Block a user