-
-
Save eRadical/8e3a6ddcdbbf9d21fa96caed28673d3e to your computer and use it in GitHub Desktop.
Revisions
-
sts created this gist
Nov 30, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # /etc/systemd/system/clustercheck.socket [Unit] Description=MySQL Clustercheck Socket [Socket] ListenStream=9200 Accept=true [Install] WantedBy=sockets.target This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # /etc/systemd/system/[email protected] [Unit] Description=MySQL Clustercheck After=network.target [Service] User=nobody ExecStart=-/usr/bin/clustercheck clustercheck AoWdTTItrUqNo9aNY StandardInput=socket This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # /etc/rsyslog.d/mysql_clustercheck.conf # # systemd log fixup - No, we don't want to log mysql clustercheck systemd # messages everytime haproxy connects (every 500ms per LB in our case) if $programname == 'systemd' and $msg contains 'Starting MySQL Clustercheck' then stop if $programname == 'systemd' and $msg contains 'Started MySQL Clustercheck' then stop This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ## Systemd Clustercheck Clustercheck is a script to make a proxy (ie. haproxy) capable of monitoring Percona XtraDB Cluster nodes properly. This is a config to run clustercheck/mysqlchk from systemd instead of xinetd. ## INSTALL ``` cp clustercheck.socket /etc/systemd/system cp [email protected] /etc/systemd/system systemctl enable clustercheck.socket systemctl start clustercheck.socket ```