111 发表于 2018-9-28 10:57:54

MySQL - MMM 实现 MySQL 高可用

# yum -y install mysql-mmm*   //前面我们配置了epel源,直接yum安装  # vim /etc/mysql-mmm/mmm_common.conf//配置如下
  active_master_role      writer
  
  cluster_interface       ens33
  pid_path                /run/mysql-mmm-agent.pid
  bin_path                /usr/libexec/mysql-mmm/
  replication_user      replication
  replication_password    123456
  agent_user            mmm_agent
  agent_password          123456
  
  
  ip      172.168.100.200
  mode    master
  peer    db2
  
  
  ip      172.168.100.201
  mode    master
  peer    db1
  
  
  ip      172.168.100.202
  mode    slave
  
  
  ip      172.168.100.203
  mode    slave
  
  
  hosts   db1, db2
  ips   172.168.100.100
  mode    exclusive
  
  
  hosts   db3, db4
  ips   172.168.100.101, 172.168.100.102
  mode    balanced
  

页: [1]
查看完整版本: MySQL - MMM 实现 MySQL 高可用