Moved static vars to group_vars
This commit is contained in:
parent
b76fb24200
commit
3f751961da
@ -9,3 +9,6 @@ num_workers: "{{ lookup('env','NUM_WORKERS') }}"
|
|||||||
#
|
#
|
||||||
connmon: True
|
connmon: True
|
||||||
connmon: "{{ lookup('env','CONNMON') }}"
|
connmon: "{{ lookup('env','CONNMON') }}"
|
||||||
|
|
||||||
|
rabbitmq_fd: 16238
|
||||||
|
mariadb_max_connections: 4096
|
||||||
|
@ -11,11 +11,10 @@
|
|||||||
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
|
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
|
||||||
register: max_connections_result
|
register: max_connections_result
|
||||||
- fail: "The database does not have max_connections set properly"
|
- fail: "The database does not have max_connections set properly"
|
||||||
failed_when: max_connections_result.stdout|int < 4096
|
failed_when: max_connections_result.stdout|int < mariadb_max_connections
|
||||||
|
|
||||||
- name : Check rabbitmq file descriptors
|
- name : Check rabbitmq file descriptors
|
||||||
shell: rabbitmqctl status | grep file_descriptors | awk -F',' '{print $3}' | sed 's/.$//'
|
shell: rabbitmqctl status | grep file_descriptors | awk -F',' '{print $3}' | sed 's/.$//'
|
||||||
register: rabbitmq_fd_result
|
register: rabbitmq_fd_result
|
||||||
- fail: "RabbitMQ does not have fd setup proerply"
|
- fail: "RabbitMQ does not have fd setup proerply"
|
||||||
failed_when: rabbitmq_fd_result.stdout|int < 16284
|
failed_when: rabbitmq_fd_result.stdout|int < rabbitmq_fd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user