Add new mysql checks
+ add buffer_pool_size check + Added FD check Change-Id: If66a1b333b9eaa15883957800030c07da5fd08c9
This commit is contained in:
parent
25d51fafd7
commit
f0963dcd84
@ -4,6 +4,7 @@ tuned_profile: throughput-performance
|
||||
rabbitmq_fd: 1600
|
||||
haproxy_max_connections: 4096
|
||||
mariadb_max_connections: 4096
|
||||
mysqld_soft_fd: 16384
|
||||
nova_vif_timeout: 300
|
||||
netdev_max_backlog: 100000
|
||||
|
||||
@ -20,6 +21,12 @@ checks :
|
||||
bz1266253 :
|
||||
url: "https://bugzilla.redhat.com/show_bug.cgi?id=1266253"
|
||||
name: "increase mariadb max_connection default value"
|
||||
buffer_pool_size:
|
||||
url: "none"
|
||||
name: "mariadb buffer pool size tuning"
|
||||
mysqld_safe_soft_fd:
|
||||
url: "none"
|
||||
name: "mariadb file descriptor setting not high enough"
|
||||
bz1293712 :
|
||||
url: "https://bugzilla.redhat.com/show_bug.cgi?id=1293712"
|
||||
name: "/etc/udev/rules.d/99-dhcp-all-interfaces.rules causes a slow and miserable degradation until things fail"
|
||||
|
@ -10,6 +10,26 @@
|
||||
failed_when: bz1266253.stdout|int < mariadb_max_connections
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Suggested buffer_pool_size
|
||||
shell: mysql -Bse "SELECT CEILING(Total_InnoDB_Bytes*1.6/POWER(1024,2)) RIBPS FROM (SELECT SUM(data_length+index_length) Total_InnoDB_Bytes FROM information_schema.tables WHERE engine='InnoDB') A;"
|
||||
register: suggested_buffer_pool_size
|
||||
changed_when: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name : Current buffer_pool_size
|
||||
shell: echo $(mysql -Bse " select @@innodb_buffer_pool_size")/1024/1024 | bc
|
||||
register: buffer_pool_size
|
||||
failed_when: buffer_pool_size.stdout|int < suggested_buffer_pool_size.stdout|int
|
||||
changed_when: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name : File descriptors for the mysql process
|
||||
shell: cat /proc/$(pgrep mysqld_safe)/limits | grep "open files" | awk '{print $4}'
|
||||
register: mysqld_safe_soft_fd
|
||||
failed_when: mysqld_safe_soft_fd.stdout|int < mysqld_soft_fd
|
||||
changed_when: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name : Check rabbitmq file descriptors
|
||||
shell: rabbitmqctl status | grep file_descriptors | awk -F',' '{print $3}' | sed 's/.$//'
|
||||
register: bz1282491
|
||||
|
Loading…
Reference in New Issue
Block a user