摘要: mha高可用 数据库 vim /etc/mha_manager/app1.cnf [server default]manager_log=/etc/mha_manager/manager.logmanager_workdir=/etc/mha_managermaster_ip_failover_sc 阅读全文
posted @ 2019-05-25 16:27 小蒙米 阅读(351) 评论(0) 推荐(0) 编辑
摘要: mycat读写分离(mysql数据库) grant select on *.* to 'read'@'%' IDENTIFIED BY 'dear'; 安装依赖包yum install java-1.8.0-openjdk vim /usr/local/mycat/conf/schema.xml < 阅读全文
posted @ 2019-05-25 16:11 小蒙米 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 192.168.1.14:8066 和 192.168.1.15:8066 先同时启动mycat读写分离 haproxy 配置 # # Example configuration for a possible web application. See the# full configuration 阅读全文
posted @ 2019-05-25 16:04 小蒙米 阅读(124) 评论(0) 推荐(0) 编辑
摘要: keepalived 配置,vip 配置A主机:! Configuration File for keepalivedglobal_defs { router_id mycat}vrrp_script chk_haproxy { script "killall -0 haproxy" #cheape 阅读全文
posted @ 2019-05-25 15:59 小蒙米 阅读(2926) 评论(0) 推荐(0) 编辑