haproxy默认已支持MySQL的健康检查,对应的指令为option mysql-check,浏览下该指令语法: option mysql-check [ user <username> [ post-41 ] ] 1. 其中user是连接MySQL时使用的用户名,post-41是发送一种名为post v4.1的检查包。整个过程只检查haproxy能否连接到MySQL。 有时候,仅仅检查MySQL服务的连通性是不够...
utils.set_option("/etc/mysql/conf.d/mariadb.cnf","wsrep_cluster_address","'gcomm://'", section="mysqld") utils.set_option("/etc/mysql/conf.d/mariadb.cnf","wsrep_provider","/usr/lib/galera/libgalera_smm.so", section="mysqld") utils.set_option("/etc/mysql/conf.d/mariadb.cnf"...
utils.set_option("/etc/mysql/conf.d/mariadb.cnf","wsrep_cluster_address","'gcomm://'", section="mysqld") utils.set_option("/etc/mysql/conf.d/mariadb.cnf","wsrep_provider","/usr/lib/galera/libgalera_smm.so", section="mysqld") utils.set_option("/etc/mysql/conf.d/mariadb.cnf"...