
The mysqlcheck allows deployers the ability to perform a cluster health check from anywhere using simple http requests on a specific port. This change makes it possible for deployers to enable or disable this check capability. This also allows deployers to change the port used for the mysqlcheck running within xinetd. New options: + galera_monitoring_check_enabled - bool + galera_monitoring_check_port - int The new options retains the hard-coded values as defaults, it will be enabled and run on port 9200. Change-Id: Ic966fbe5dfb39a35ecd10ece2901bb317c905c84 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
21 lines
531 B
Django/Jinja
21 lines
531 B
Django/Jinja
# default: on
|
|
# description: mysqlchk
|
|
# {{ ansible_managed }}
|
|
service mysqlchk
|
|
{
|
|
disable = no
|
|
flags = REUSE
|
|
socket_type = stream
|
|
port = {{ galera_monitoring_check_port }}
|
|
wait = no
|
|
user = nobody
|
|
server = /usr/local/bin/clustercheck
|
|
log_on_failure += USERID
|
|
{% if galera_monitoring_allowed_source is defined %}
|
|
only_from = {{ galera_monitoring_allowed_source }}
|
|
{% else %}
|
|
no_access
|
|
{% endif %}
|
|
per_source = UNLIMITED
|
|
}
|